hostname is fqdn

Carl Karsten carl at personnelware.com
Tue Mar 21 07:12:27 UTC 2006


I thought I had things working (thanks to all that helped), but I just noticed I 
am not doing something quite right:

# /etc/dhcp3/dhclient.conf
send host-name "tp";

# /etc/dhcp3/dhcpd.conf
# Option 12: Host Name = "dhcp254"
option host-name=concat("dhcp", binary-to-ascii(10, 8, "-", 
suffix(leased-address,1) ) ) ;
ddns-updates on;
ddns-update-style interim;
do-forward-updates on;
ddns-domainname "personnelware.com.";
ddns-rev-domainname "in-addr.arpa.";
ddns-hostname=pick(option fqdn.hostname, option host-name);


This "works", but only because I am not doing it right:
# /etc/dhcp3/dhclient.conf
send host-name "foo.personnelware.com";

But when I do that, here is what I get in /var/log/messages


Mar 21 00:45:40 localhost dhcpd: DHCPDISCOVER from 00:04:75:cc:25:70 via eth0
Mar 21 00:45:41 localhost dhcpd: DHCPOFFER on 192.168.1.104 to 00:04:75:cc:25:70 
(tp.personnelware.com) via eth0
Mar 21 00:45:41 localhost dhcpd: Added new forward map from 
tp.personnelware.com.personnelware.com. to 192.168.1.104
Mar 21 00:45:41 localhost dhcpd: added reverse map from 
104.1.168.192.in-addr.arpa. to tp.personnelware.com.personnelware.com.
Mar 21 00:45:41 localhost dhcpd: DHCPREQUEST for 192.168.1.104 (192.168.1.7) 
from 00:04:75:cc:25:70 (tp.personnelware.com) via eth0
Mar 21 00:45:41 localhost dhcpd: DHCPACK on 192.168.1.104 to 00:04:75:cc:25:70 
(tp.personnelware.com) via eth0

# /etc/bind/personnelware.com.db
amd15                   A       192.168.1.35
                         TXT     "31a52ae2f9a7ed18c8a75d4a15c0e41aea"
tp.personnelware.com    A       192.168.1.104
                         TXT     "007c37a9e9eae7bbd79d729677f9126622"
cp600                   A       192.168.1.118


I am guessing my problem is:
ddns-hostname=pick(option fqdn.hostname, option host-name);

So... where did I drop the ball?

CarlFK


More information about the dhcp-users mailing list