Subject: Can't get dhcpd to work properly
To: None <netbsd-help@netbsd.org>
From: Wouter Vijvers <woutje@chello.nl>
List: netbsd-help
Date: 02/07/2001 22:59:21
Hi,
A while ago I set up a NetBSD gateway to connect my home-network to the
internet via a cable-modem. I need to distribute ip-adresses through DHCP,
because there are 2 laptops that occasionally get hooked up. The two laptops
run Win95, there's one Win95 PC and one Win2k PC. When I was running NetBSD
1.4.2, everything worked beautifully, but now that I have upgraded to 1.5
(fresh
install BTW), it doesn't anymore. Here's the deal:

The server gets it's ip, etc. from my ISP through DHCP (dhclient binded to
the "external" nic de0). It seems like it doesn't receive the domain
"a2000.nl" (my ISP), so I put that in /etc/defaultdomain. It's internal ip
(on ne0) is 192.168.0.1 (specified in ifconfig.ne0). The two PC's in my
network (named "kees" and "clara", because windows want me to give them a
name) now get ip's from my server (192.168.0.2 & 3), but the laptops don't.
Not unless I use "winipcfg" to manually renew them. When I did that the
first one got 192.168.0.7, which seems strange since 192.168.0.4 is
available. Why do I get "(not authoritative)" errors when a laptop boots up?

Does anybody see what I'm doing/goes wrong? How do I stop dhcpd from trying
to resolve the non-existing hostnames kees.a2000.nl and clara.a2000.nl? (=
workgroup-name.isp-domain)

Lots of thanks. dhcpd.conf and a piece of /var/log/messages below.

Wouter

================
/etc/dhcpd.conf
================
allow unknown-clients;

# Global options (for all subnets):
#option domain-name-servers 62.108.1.65, 62.108.1.66;
#option domain-name "a2000.nl";

#Set parameters for 192.168.0.0/24 subnet
subnet 192.168.0.0 netmask 255.255.255.0 {
 range 192.168.0.2 192.168.0.8;
 default-lease-time 21600;
 max-lease-time 86400;

 option subnet-mask 255.255.255.0;
 option broadcast-address 192.168.0.255;
 option domain-name-servers 62.108.1.65, 62.108.1.66;
 option domain-name "a2000.nl";
 option routers 192.168.0.1;
}

================
/var/log/messages
================
Feb  4 12:42:39 node184a dhclient: DHCPREQUEST on de0 to 62.108.1.19 port 67
Feb  4 12:42:39 node184a dhclient: DHCPACK from 62.108.1.86
Feb  4 12:42:39 node184a dhclient: bound to 62.108.24.74 -- renewal in 20561
seconds.
Feb  4 14:03:30 node184a dhcpd: Internet Software Consortium DHCP Server
V3.0b2pl9
Feb  4 14:03:30 node184a dhcpd: Copyright 1995-2000 Internet Software
Consortium.
Feb  4 14:03:30 node184a dhcpd: All rights reserved.
Feb  4 14:03:30 node184a dhcpd: For info, please visit
http://www.isc.org/products/DHCP
Feb  4 14:03:30 node184a dhcpd: Wrote 3 leases to leases file.
Feb  4 14:03:30 node184a dhcpd: Listening on
BPF/ne0/00:20:18:55:1d:2b/192.168.0.0
Feb  4 14:03:30 node184a dhcpd: Sending on
BPF/ne0/00:20:18:55:1d:2b/192.168.0.0
Feb  4 14:03:30 node184a dhcpd: Sending on   Socket/fallback/fallback-net
Feb  4 14:03:50 node184a dhcpd: DHCPRELEASE of 192.168.0.2 from
00:20:18:54:de:a2 (clara) via ne0 (found)
Feb  4 14:03:51 node184a dhcpd: DHCPDISCOVER from 00:20:18:54:de:a2 (clara)
via ne0
Feb  4 14:03:52 node184a dhcpd: DHCPOFFER on 192.168.0.2 to
00:20:18:54:de:a2 (clara) via ne0
Feb  4 14:03:52 node184a dhcpd: if IN A clara.a2000.nl doesn't exist add
10800 IN A clara.a2000.nl 192.168.0.2: resolver failed.
Feb  4 14:03:52 node184a dhcpd: DHCPREQUEST for 192.168.0.2 from
00:20:18:54:de:a2 (clara) via ne0
Feb  4 14:03:52 node184a dhcpd: DHCPACK on 192.168.0.2 to 00:20:18:54:de:a2
(clara) via ne0
Feb  4 14:10:24 node184a dhcpd: if IN A kees.a2000.nl doesn't exist add
10800 IN A kees.a2000.nl 192.168.0.3: resolver failed.
Feb  4 14:10:24 node184a dhcpd: DHCPREQUEST for 192.168.0.3 from
52:54:ab:24:eb:bc (kees) via ne0
Feb  4 14:10:24 node184a dhcpd: DHCPACK on 192.168.0.3 to 52:54:ab:24:eb:bc
(kees) via ne0
Feb  4 14:11:10 node184a dhcpd: DHCPRELEASE of 192.168.0.3 from
52:54:ab:24:eb:bc (kees) via ne0 (found)
Feb  4 14:11:24 node184a dhcpd: DHCPDISCOVER from 52:54:ab:24:eb:bc (kees)
via ne0
Feb  4 14:11:24 node184a dhcpd: DHCPOFFER on 192.168.0.3 to
52:54:ab:24:eb:bc (kees) via ne0
Feb  4 14:11:24 node184a dhcpd: if IN A kees.a2000.nl doesn't exist add
10800 IN A kees.a2000.nl 192.168.0.3: resolver failed.
(...snip...)
Feb  4 17:03:50 node184a dhcpd:
/work/trees/netbsd-1-5/usr.sbin/dhcp/common/dns.c(426): non-null pointer
Feb  4 17:03:50 node184a dhcpd: if IN A clara.a2000.nl doesn't exist add
10800 IN A clara.a2000.nl 192.168.0.2: resolver failed.
Feb  4 17:03:50 node184a dhcpd: Wrote 3 leases to leases file.
(...snip...)
Feb  4 17:57:08 node184a dhcpd: DHCPREQUEST for 195.109.61.108 from
00:50:04:58:41:56 via ne0: ignored (not authoritative).
(...snip...)
Feb  4 18:41:04 node184a dhcpd: DHCPREQUEST for 195.109.61.108 from
00:50:04:58:41:56 via ne0: ignored (not authoritative).
Feb  4 18:43:26 node184a dhcpd: DHCPDISCOVER from 00:50:04:58:41:56 via ne0
Feb  4 18:43:27 node184a dhcpd: DHCPOFFER on 192.168.0.7 to
00:50:04:58:41:56 (RSN2) via ne0
Feb  4 18:43:27 node184a dhcpd:
/work/trees/netbsd-1-5/usr.sbin/dhcp/common/dns.c(426): non-null pointer
Feb  4 18:43:32 node184a dhcpd: if IN A RSN2.a2000.nl doesn't exist add
10800 IN A RSN2.a2000.nl 192.168.0.7: resolver failed.
Feb  4 18:43:32 node184a dhcpd: Wrote 4 leases to leases file.
Feb  4 18:43:32 node184a dhcpd: DHCPREQUEST for 192.168.0.7 from
00:50:04:58:41:56 (RSN2) via ne0
Feb  4 18:43:32 node184a dhcpd: DHCPACK on 192.168.0.7 to 00:50:04:58:41:56
(RSN2) via ne0
Feb  4 18:43:32 node184a dhcpd: if IN A RSN2.a2000.nl doesn't exist add
10800 IN A RSN2.a2000.nl 192.168.0.7: resolver failed.
(...snip...)