I can't seem to get the dhcp-dns system to work on my debian linux box.
DNS works, DHCP works, they won't work together?
I get a denied update in the syslog as shown below from the machine that has checked out one of the dhcp addresses? I'm not sure why it would be trying to update the named server?
The correct files seem to be generated in /var/lib/dhcp-dns, but
the update does not apply to my /etc/bind/db.mydomain files.
** Any help or ideas would be very greatly appreciated.
**
Please email the list and to me directly([EMAIL PROTECTED]) as
I am not on the Debian email lists.
Thanks,
---Dean Roman.
[EMAIL PROTECTED]
=============================================
SOFTWARE VERSIONS
=============================================
DNSSERVER
= 192.168.100.20 (srfs1 = debian linux)
DHCPSERVER
= 192.168.100.20 (srfs1 = debian linux)
DHCP CLIENT MACHINE = 192.168.100.100 (share02 = ms windows 2k)
OS
= DEBIAN POTATO 2.2
KERNEL
= 2.2.19pre17
BIND
= 8.2.3-0
DHCP
= 2.0pl4-2
DHCP-DNS
= .50-3
=================
SYSLOG
=================
Sep 6 15:07:31 srfs1 named[1944]: denied update from [192.168.100.100].1097
for "mydomain.com"
Sep 6 15:07:31 srfs1 named[1944]: denied update from [192.168.100.100].1103
for "100.168.192.in-addr.arpa"
======================================
/ETC/BIND/NAMED.CONF
======================================
acl dyn-update {
127.0.0.1;
192.168.100.20;
};
// add entries for other zones below here
zone "mydomain.com" {
type master;
file "/etc/bind/db.mydomain";
allow-update { dyn-update;
};
};
zone "100.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.192.168.100";
allow-update { dyn-update;
};
};
zone "110.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.192.168.110";
allow-update { dyn-update;
};
};
================================================
/ETC/DHCP-DNS.CONF
================================================
# edit these for your own system
# this conf file is 'required()' into perl scripts so
# perl syntax applies.
$DDNSHOME="/var/lib/dhcp-dns";
$DHCPD="/var/dhcp/dhcpd.leases";
$DOMAIN="mydomain.com";
$NSUPDATE="/usr/sbin/nsupdate";
=============================================
/VAR/LIB/DHCP-DNS/NSUPDATE.DATA
=============================================
prereq yxdomain share02.mydomain.com
update delete share02.mydomain.com
prereq yxdomain 100.100.168.192.in-addr.arpa
update delete 100.100.168.192.in-addr.arpa
update add share02.mydomain.com 3600 IN A 192.168.100.100
update add 100.100.168.192.in-addr.arpa 3600 IN PTR share02.mydomain.com
=============================================
/VAR/LIB/DHCP-DNS/DHCPD.LEASES.LAST
=============================================
# All times in this file are in UTC (GMT), not your local timezone.
This is
# not a bug, so please don't ask about it. There is
no portable way to
# store leases in the local timezone, so please don't request this
as a
# feature. If this is inconvenient or confusing to
you, we sincerely
# apologize. Seriously, though - don't ask.
# The format of this file is documented in the dhcpd.leases(5)
manual page.
lease 192.168.100.100 {
starts 4 2001/09/06
21:52:31;
ends 4 2001/09/06 23:52:31;
hardware ethernet 00:00:86:45:48:0c;
uid 01:00:00:86:45:48:0c;
client-hostname "SHARE02";
}
=============================================
LS -L /VAR/LIB/DHCP-DNS/
=============================================
srfs1:/var/lib/dhcp-dns# ls -lat
total 16
drwxr-xr-x 2 root root
4096 Sep 6 14:55 .
-rw-r--r-- 1 root root
596 Sep 6 14:55 dhcpd.leases.last
-rw-r--r-- 1 root root
299 Sep 6 14:55 nsupdate.data
-rw-r--r-- 1 root root
0 Sep 6 04:00 dns.last
drwxr-xr-x 20 root root
4096 Sep 3 15:28 ..
=============================================
BIND VERSION
=============================================
# dpkg -s bind
Package: bind
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 1292
Maintainer: Bdale Garbee <[EMAIL PROTECTED]>
Version: 1:8.2.3-0.potato.1
Depends: libc6 (>= 2.1.2), netbase
Suggests: dnsutils, bind-doc
Conffiles:
/etc/init.d/bind 09693e161a121f6c4e071d60fce07079
/etc/bind/named.conf 42e0b56ca933d2d1d195d6b9995794a4
/etc/bind/db.0 8aba258068c8c60a7ade3952a285f57d
/etc/bind/db.127 64f5cf50e8d8192109dad43b779e5e36
/etc/bind/db.255 8aba258068c8c60a7ade3952a285f57d
/etc/bind/db.local 4d038e5af0aa465bdfce60a0d2a7c816
/etc/bind/db.root cffd2baffb5af8411b011fac3ab5d670
Description: Internet Domain Name Server
The Berkeley Internet Name Domain (BIND) implements an Internet
domain
name server. BIND is the most widely-used name server
software on the
Internet, and is supported by the Internet Software Consortium,
www.isc.org.
=============================================
DHCP-DNS VERSION
=============================================
#dpkg -s dhcp-dns
Package: dhcp-dns
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 43
Maintainer: Craig Sanders <[EMAIL PROTECTED]>
Version: 0.50-3
Depends: bind, perl | perl5, dhcp
Conffiles:
/etc/dhcp-dns.conf 8a71de4be70ce96125410ccaefa33966
/etc/cron.d/dhcp-dns 2be8ad8b2d0223c03362a1e5d31d4747
Description: Dynamic DNS updates for DHCP
dhcp-dns uses bind 8's dynamic update features to update
a zonefile
with hostnames from the dhcp leases file.
=============================================
DHCP VERSION
=============================================
# dpkg -s dhcp
Package: dhcp
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 388
Maintainer: Eloy A. Paris <[EMAIL PROTECTED]>
Version: 2.0pl4-2
Replaces: dhcpd, dhcp-beta
Provides: dhcpd, dhcp
Depends: libc6 (>= 2.1.2)
Conflicts: dhcpd, dhcp-beta, dhcp-relay, dhcp-relay-beta
Conffiles:
/etc/dhcpd.conf 88a5f72a4dbf70d7583b7aa8fa3548c0
/etc/init.d/dhcp ea1d2af163cbaddaaa90b6caf186850f
Description: DHCP server for automatic IP address assignment
DHCP is a protocol like BOOTP (actually dhcpd includes much
of
the functionality of BOOTPD!). It assigns IP addresses to
clients
based on lease times. DHCP is used extensively by Microsoft
and more
recently also by Apple. It is probably essential in any multi-platform
environment.
.
Multiple Ethernet Interfaces are supported by this DHCP package.
You need
to run Linux 2.0.32 or later.
begin:vcard n:Roman;Dean tel;work:707-527-8949 x-mozilla-html:FALSE org:Roman Systems adr:;;2116 Crosspoint Ave.;Santa Rosa;California;95403;USA version:2.1 email;internet:[EMAIL PROTECTED] title:Owner x-mozilla-cpt:;-31008 fn:Dean Roman end:vcard