dhcp und dns

Michael Gruner stockraser at yahoo.de
Fre Mai 10 10:46:14 CEST 2002


Hallo Leute,

hab zum thema DHCP und dns zwei Fragen:
1. Ich habe einen bind9 aufgesetzt, der von einem dhcp v3 dynamisch
upgedatet wird, und das ist auch gut so! Jetzt die Frage: nehmen wir an,
der Bind steht in der Domaene gruner.schleiz und der Host heißt
prometheus. Wie kann ich erreichen, dasz ich nicht immer eingeben musz:
ping prometheus.gruner.schleiz, sondern dasz ein einfaches ping
prometheus reicht?

2. den dhcp habe ich so konfiguriert, dasz er Adressen innerhalb eines
bestimmten bereiches vergibt. Wenn ich nun den Bereich verkleinere, und
den dhcpd wieder neu starte und auf dem client ein rcdhclient restart
ausfuehre bekomme ich vom client ein dhcprequest auf die ip der alten
lease, die nun aber ausserhalb des bereiches liegt. Leider sendet der
Server kein dhcpnak damit der client wieder ein dhcpdiscover macht. Wie
kann ich erreichen, dasz der client sich eine neue ip holt? Hier mal
meine dhcpd.conf


# a minimal /etc/dhcpd.conf example

# this statement is needed by dhcpd-3 needs at least this statement.
# you have to delete it for dhcpd-2, because it does not know it.
ddns-update-style interim;
ddns-domainname "gruner.schleiz";
update-static-leases true;
one-lease-per-client true;
key dhcp_updater {
	algorithm HMAC-MD5.SIG-ALG.REG.INT;
	secret nothingthatsinteresting;);
};
zone gruner.schleiz. {
	primary 192.168.0.1;
	key dhcp_updater;
}
zone 0.168.192.in-addr.arpa. {
	primary 192.168.0.1;
	key dhcp_updater;
}

# this subnet is served by us
authoritative;			

# declare the lease times (the time after which a client will renew its
lease)
default-lease-time 		600;	# 10 minutes
max-lease-time 			7200;	# 2 hours

# let's give the local domain a name
# (which should correlate to your name server configuration)
option domain-name 		"gruner.schleiz";	

# this assumes that your dhcp server is also the router for the subnet
option routers 			192.168.0.1;

# clients shall use this host as nameserver, too
option domain-name-servers 	192.168.0.1;
option netbios-name-servers 192.168.0.1;
option netbios-dd-server 192.168.0.1;
option netbios-node-type 8;
option netbios-scope "";

# this can explicitely be specified
option broadcast-address 	192.168.0.255;	

# these 10 addresses will be given out dynamically
subnet 192.168.0.0 netmask 255.255.255.0 {
	pool {
		authoritative;
		range 192.168.0.2 192.168.0.5;
		# options may also be put here if they are not global


# this host is known by its hardware address and we want a fixed address
for it
		host prometheus {
			hardware ethernet 08:15:47:11:ab:cd;
			ddns-hostname "prometheus";
		}
	}
}


gruesze michael





_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
tlug Mailingliste
Archiv: http://www.tlug.de/archiv/
http://schwarz.thueday.de/mailman/listinfo/tlug_allgemein