Greetings, My DNS doesn't get updated immediatly when DHCP assigns an IP to a sysem, Is this possible or is it a manual process? What I would favour is that the dhcp assigns an IP to a system, and then updates dns with a system name linked to the IP. When the system is diconnected the lease is freed and the dns entry removed. I have tried the two options in the dhcpd.conf file that I know of but niether is working... they are ddns-update-style interim ddns-update-style ad-hoc Thanks
On 11/07/2005 04:33 AM, Chadley Wilson wrote:
Greetings,
My DNS doesn't get updated immediatly when DHCP assigns an IP to a sysem,
Is this possible or is it a manual process?
What I would favour is that the dhcp assigns an IP to a system, and then updates dns with a system name linked to the IP. When the system is diconnected the lease is freed and the dns entry removed.
I have tried the two options in the dhcpd.conf file that I know of but niether is working...
they are ddns-update-style interim ddns-update-style ad-hoc
Thanks
I would suggest using dhclient as your dhcp client program -- it is trivial to set up, and the config file is very straightforward. As far as I can tell, dhclient is the preferred client program to use if you have only one NIC being configured by dhcp -- which should be suitable for the vast majority of users (so it is a mystery to me why the default SuSE installation uses dhcpcd instead). The default dhclient configuration in SuSE is to request (and require) a DNS update with each dhcp request. I've used dhclient "out of the box" since getting my high-speed connection, and have not had to change one line of the config file. If your service provider does not honour a DNS update request in dhcp queries (you will have to check with them, of course), then you will have to enter them manually in your /etc/resolv.conf file, and configure your system not to update that file.
Chadley Wilson wrote:
ddns-update-style interim
Interim works. But this is not the only option you need. There has to be a key that allows updates, and "ddns updates on" etc etc. Here are the relevant sections from a working system. /etc/named.conf include "/etc/rndc.key"; zone "whatever.za" in { file "dyn/whatever.za"; type master; allow-update { key "rndc-key"; }; }; zone "1.168.192.in-addr.arpa" in { file "dyn/1.168.192.in-addr.arpa"; type master; allow-update { key "rndc-key"; }; }; /etc/rndc.key key "rndc-key" { algorithm hmac-md5; secret "some random stuff that I won't put up on a public list"; }; /etc/dhcpd.conf ddns-update-style interim; ddns-updates on; include "/etc/rndc.key"; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.100 192.168.1.254; default-lease-time 604800; max-lease-time 2592000; zone whatever.za. { primary 127.0.0.1; key rndc-key; } zone 1.168.192.in-addr.arpa. { primary 127.0.0.1; key rndc-key; } }
Greetings,
My DNS doesn't get updated immediatly when DHCP assigns an IP to a sysem,
Is this possible or is it a manual process?
Yes, read /usr/share/doc/packages/dhcp-server/DDNS-howto.txt
What I would favour is that the dhcp assigns an IP to a system, and then updates dns with a system name linked to the IP. When the system is diconnected the lease is freed and the dns entry removed.
I have tried the two options in the dhcpd.conf file that I know of but niether is working...
they are ddns-update-style interim ddns-update-style ad-hoc
Thanks
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- L. de Braal BraHa Systems NL - Terneuzen T +31 115 649333 F +31 115 649444
participants (4)
-
Chadley Wilson
-
Darryl Gregorash
-
Leen de Braal
-
Silviu Marin-Caea