Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to Set FQDN in DHCPD for DDNS

Reply
Thread Tools Display Modes

How to Set FQDN in DHCPD for DDNS

 
 
Trouble@Mill
Guest
Posts: n/a

 
      08-21-2003, 04:50 PM
Hi,

I'm playing around with setting up DHCP and DDNS on my Slack 9 system
and having a problem with one of the devices, a print server, in my
network. Other devices, and my laptop, appear to work correctly.

The symptoms are that DHCP only uses the client-hostname when sending
requests to Bind, but only for this print server. For the other
device it sends a FQDN. Neither of the devices have any options that
allow me to specify a Domain name in their setup, so it doesn'y come
from there.

Here's the relevent sections from the DHCPD log (FLASHBOY is the print
server, cd3o-... is a networked mp3 player):

DHCPDISCOVER from 00:c0:02:38:52:31 (FLASHBOY) via eth0
DHCPOFFER on 192.168.0.216 to 00:c0:02:38:52:31 via eth0
if IN A FLASHBOY domain doesn't exist add 30 IN A FLASHBOY
192.168.0.216 add 30
IN TXT FLASHBOY "0026953e1adbbcf2440cca012cea73a0e8": timed out.
DHCPREQUEST for 192.168.0.216 (192.168.0.4) from 00:c0:02:38:52:31 via
eth0
DHCPACK on 192.168.0.216 to 00:c0:02:38:52:31 (FLASHBOY) via eth0

DHCPDISCOVER from 00:90:4b:23:79:a2 (cd3o-23-79-a2) via eth0
DHCPOFFER on 192.168.0.217 to 00:90:4b:23:79:a2 (cd3o-23-79-a2) via
eth0
if IN A cd3o-23-79-a2.BogoLinux.net domain doesn't exist add 30 IN A
cd3o-23-79-a2.BogoLinux.net 192.168.0.217 add 30 IN TXT
cd3o-23-79-a2.BogoLinux.net "3193e9c2e86d45961f708c4e86958310db":
success.
delete IN PTR 217.0.168.192.in-addr.arpa. add 30 IN PTR
217.0.168.192.in-addr.arpa. cd3o-23-79-a2.BogoLinux.net: success.
DHCPREQUEST for 192.168.0.217 (192.168.0.4) from 00:90:4b:23:79:a2
(cd3o-23-79-a2) via eth0
DHCPACK on 192.168.0.217 to 00:90:4b:23:79:a2 (cd3o-23-79-a2) via eth0

As you can see, both of the DHCPDISCOVERs only come in with a
client-name. But when it comes to send the request to Bind, only one
of them gets the Domain Name added.

Now, here's the relevant portions of the leases file:

lease 192.168.0.216 {
starts 3 2003/08/20 20:45:38;
ends 3 2003/08/20 20:46:38;
tstp 3 2003/08/20 20:46:38;
binding state free;
hardware ethernet 00:c0:02:38:52:31;
client-hostname "FLASHBOY";
}
lease 192.168.0.216 {
starts 3 2003/08/20 20:59:20;
ends 3 2003/08/20 21:00:20;
binding state active;
next binding state free;
hardware ethernet 00:c0:02:38:52:31;
client-hostname "FLASHBOY";
}
lease 192.168.0.216 {
starts 3 2003/08/20 20:59:20;
ends 3 2003/08/20 21:00:20;
tstp 3 2003/08/20 21:00:20;
binding state free;
hardware ethernet 00:c0:02:38:52:31;
client-hostname "FLASHBOY";
}

lease 192.168.0.217 {
starts 3 2003/08/20 20:38:44;
ends 3 2003/08/20 20:39:44;
tstp 3 2003/08/20 20:39:44;
binding state free;
hardware ethernet 00:90:4b:23:79:a2;
uid "\001\000\220K#y\242";
client-hostname "cd3o-23-79-a2";
}
lease 192.168.0.217 {
starts 3 2003/08/20 21:05:47;
ends 3 2003/08/20 21:06:47;
binding state active;
next binding state free;
hardware ethernet 00:90:4b:23:79:a2;
uid "\001\000\220K#y\242";
set ddns-rev-name = "217.0.168.192.in-addr.arpa.";
set ddns-txt = "3193e9c2e86d45961f708c4e86958310db";
set ddns-fwd-name = "cd3o-23-79-a2.BogoLinux.net";
client-hostname "cd3o-23-79-a2";
}
lease 192.168.0.217 {
starts 3 2003/08/20 21:05:47;
ends 3 2003/08/20 21:06:47;
tstp 3 2003/08/20 21:06:47;
binding state free;
hardware ethernet 00:90:4b:23:79:a2;
uid "\001\000\220K#y\242";
client-hostname "cd3o-23-79-a2";
}

The only difference that I can see, before the request comes in, is
that the device that works has a "uid" assigned. (BTW. What is that
??).

In both case I switched them back to static IPs immediately after they
grabbed the lease.

Here's my dhcpd.conf file:

# dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
#

# option definitions common to all supported networks...
authoritative;
ddns-update-style interim;

option domain-name "BogoLinux.net";
option domain-name-servers The-Tardis.BogoLinux.net;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers The-Tardis.BogoLinux.net;

default-lease-time 60;
max-lease-time 720;

key BogoLinux.net {
algorithm hmac-md5;
secret "There is a key here, really";
}

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.201 192.168.0.220;
}

zone bogolinux.net. {
key BogoLinux.net;
}

zone 0.168.192.in-addr.arpa. {
key BogoLinux.net;
}

I tried adding a "ddns-domainname BogoLinux.net;" directive to my
dhcpd.conf file, but that had no effect.

Thoughts ??

Cheers.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I want to set my own DDNS service alike Linux Networking 18 01-15-2012 05:14 PM
DDNS error J.kG Linux Networking 11 01-02-2007 03:07 PM
MN-700 Basestation and DDNS Scott Wireless Networks 0 02-16-2006 09:16 PM
DDNS redundant? erniehannell@yahoo.ca Linux Networking 0 09-23-2005 04:20 PM
DDNS redundant? erniehannell@yahoo.ca Linux Networking 0 09-23-2005 04:20 PM



1 2 3 4 5 6 7 8 9 10 11