cancel
Showing results for 
Search instead for 
Did you mean: 

Re: ddns - zone file update

 
Highlighted
Super Advisor

ddns - zone file update

Hi there
When I add a new Windows machine or Ubuntu machine to my network then the dhcpd updates the zone file fine:

Nov 22 21:57:37 localhost dhcpd: DHCPOFFER on 10.10.20.205 to 00:0c:29:8b:d9:5e (testhost) via eth0
Nov 22 21:57:38 localhost named[5049]: client 127.0.0.1#39824: updating zone 'testdomain.com/IN': adding an RR at 'testhost.testdomain.com' A
Nov 22 21:57:38 localhost named[5049]: client 127.0.0.1#39824: updating zone 'testdomain.com/IN': adding an RR at 'testhost.testdomain.com' TXT
Nov 22 21:57:38 localhost named[5049]: zone testdomain.com/IN: sending notifies (serial 144)
Nov 22 21:57:38 localhost dhcpd: Added new forward map from testhost.testdomain.com. to 10.10.20.205


It's not doing that if a new CentOS machine is added to the network:

Dec 27 20:22:20 localhost dhcpd: DHCPREQUEST for 10.10.20.242 from 00:0c:29:8f:e9:7c via eth0
Dec 27 20:22:20 localhost dhcpd: DHCPACK on 10.10.20.242 to 00:0c:29:8f:e9:7c via eth0

Any ideas on what would be the reason of that strange behavior ?

Regards

Peter
Jesus is the King
2 REPLIES 2
Highlighted
Honored Contributor

Re: ddns - zone file update

> Nov 22 21:57:37 localhost dhcpd: DHCPOFFER on 10.10.20.205 to 00:0c:29:8b:d9:5e (testhost) via eth0

> Dec 27 20:22:20 localhost dhcpd: DHCPREQUEST for 10.10.20.242 from 00:0c:29:8f:e9:7c via eth0

Hmm... looks like the first one has a name (testhost) associated with it in the dhcpd configuration, but perhaps the other hasn't?

It might be rather difficult for dhcpd to create a DDNS update request if there is no hostname configured for that DHCP client.

MK
MK
Honored Contributor

Re: ddns - zone file update

hi

as Matti says

some linux OS need to set the name in other for the OS to register his name on the DHCP

check the leases you will find that Windows logs its name but not the same for Ubuntu

/var/lib/dhcpd/dhcpd.leases

so do this well this work for RH-Centos.... don't know for Ubuntu

set hostname in /etc/sysconfig/network
HOSTNAME=machine.testdomain.com

and ifcfg-eth0
DHCP_HOSTNAME=machine

and do a dhclient or service network reload and check your DHCP Logs

Didn't your momma teach you to say thanks!