Networking Forums

Networking Forums > Computer Networking > Linux Networking > BIND not being updated by ISC DHCP

Reply
Thread Tools Display Modes

BIND not being updated by ISC DHCP

 
 
Alexander Burke
Guest
Posts: n/a

 
      03-13-2006, 11:44 AM
I'm having trouble getting DNS to update automatically; neither forward
nor reverse are updating when DHCP leases are handed out. (All of the
hardcoded entries are working, though.)

The packages in question are bind-9.2.5-1 and dhcp-3.0.1-42_FC3.

Can anyone spot where I'm going wrong?

Thanks in advance!



/etc/dhcpd.conf:

## Master DHCP Server Configuration File
authoritative;
server-identifier penguin.home.foobar.ca;
ddns-update-style interim;
## deny client-updates;
default-lease-time 43200;
max-lease-time 43200;
option domain-name "home.foobar.ca";
option domain-name-servers penguin.home.foobar.ca;
option routers router.home.foobar.ca;
option lpr-servers printer.home.foobar.ca;
option tftp-server-name "penguin.home.foobar.ca";
option ntp-servers penguin.home.foobar.ca;
option option-150 code 150 = ip-address;
use-host-decl-names on;


key DHCP_UPDATER {
algorithm hmac-md5;
secret [REMOVED];
};


zone home.foobar.ca. {
primary 127.0.0.1;
key DHCP_UPDATER;
}

zone 0.0.10.in-addr.arpa. {
primary 127.0.0.1;
key DHCP_UPDATER;
}


subnet 10.0.0.0 netmask 255.255.255.0 {
range dynamic-bootp 10.0.0.101 10.0.0.199;
}


host PAP2 {
hardware ethernet 00:12:17:FC:42:46;
fixed-address 10.0.0.51;
}

// Many more hosts exist in the file




/etc/named.conf:

// Custom named.conf

options {
directory "/var/named";
// version statement for security to avoid hacking known
weaknesses
version "get lost";
// optional - disables all transfers - slaves allowed in zone
clauses
allow-transfer {none;};
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
};
include "/etc/rndc.key";

key DHCP_UPDATER {
algorithm hmac-md5;
secret [REMOVED];
};

// required zone for recursive queries
zone "." {
type hint;
file "root.hints";
};

// Somewhat important.
zone "home.foobar.ca" in {
type master;
// notify no;
file "home.foobar.ca.zone";
allow-update { key DHCP_UPDATER; };
};

// reverse map for our RFC1918 space
zone "0.0.10.in-addr.arpa" in {
type master;
// notify no;
file "10.0.0.rev";
allow-update { key DHCP_UPDATER; };
};

// required localhost domain
zone "localhost" in {
type master;
// notify no;
file "localhost.zone";
allow-update { key DHCP_UPDATER; };
};

// localhost reverse map
zone "0.0.127.in-addr.arpa" in {
type master;
// notify no;
file "localhost.rev";
allow-update { key DHCP_UPDATER; };
};

// END OF FILE //





home.foobar.ca.zone:

$TTL 86400
@ IN SOA penguin.home.foobar.ca. dns.foobar.ca.
(
2006031305 ; serial
10800 ; refresh (3 hours)
15 ; retry (15 seconds)
604800 ; expire (1 week)
10800 ; minimum (3 hours)
)
IN NS penguin.home.foobar.ca.
IN MX 10 mail.foobar.ca.
fileserver IN A 10.0.0.11
ftp IN CNAME fileserver
penguin IN A 10.0.0.10
router IN A 10.0.0.1
; There are more, but they don't matter for our purposes.




10.0.0.rev:

$TTL 86400
@ IN SOA penguin.home.foobar.ca. dns.foobar.ca.
(
2006031305 ; serial
10800 ; refresh (3 hours)
15 ; retry (15 seconds)
604800 ; expire (1 week)
10800 ; minimum (3 hours)
)
IN NS penguin.home.foobar.ca.
1 IN PTR router.home.foobar.ca.
10 IN PTR penguin.home.foobar.ca.
11 IN PTR fileserver.home.foobar.ca.





some /var/log/messages output indicating DHCP lease granted but no DNS
activity for it:

Mar 13 06:40:47 penguin named: named startup succeeded
Mar 13 06:41:19 penguin dhcpd: DHCPDISCOVER from 00:12:17:fc:42:46 via
eth0
Mar 13 06:41:19 penguin dhcpd: DHCPOFFER on 10.0.0.51 to
00:12:17:fc:42:46 via eth0
Mar 13 06:41:19 penguin dhcpd: DHCPREQUEST for 10.0.0.51 (10.0.0.10)
from 00:12:17:fc:42:46 via eth0
Mar 13 06:41:19 penguin dhcpd: DHCPACK on 10.0.0.51 to
00:12:17:fc:42:46 via eth0
Mar 13 11:41:26 penguin in.tftpd[5749]: RRQ from 10.0.0.51 filename
/init.cfg
Mar 13 11:41:26 penguin in.tftpd[5749]: sending NAK (1, File not found)
to 10.0.0.51

(Does anyone know why in.tftpd insists upon using GMT, when everything
else on the box recognizes that we're in GMT-0500?)

 
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
Setting the bind and dhcp for use as dns/ddns alike Linux Networking 4 01-02-2012 12:10 PM
dns/dhcp odd issue with 2003 server.. dns entry not being updated markm75 Windows Networking 2 12-15-2007 03:33 AM
DHCP won't bind to NIC team w/ static IP andrew@technodevil.com Windows Networking 2 09-06-2007 05:29 PM
radvd, BIND and DHCP Mark Hackett Linux Networking 4 05-21-2004 07:47 AM
DHCP server will not bind to Network Interface. Bob H. Windows Networking 1 02-13-2004 02:44 AM



1 2 3 4 5 6 7 8 9 10 11