Subject: Re: Can't get dhcpd to work properly
To: Wouter Vijvers <woutje@chello.nl>
From: Chris Jones <chris@cjones.org>
List: netbsd-help
Date: 02/07/2001 15:59:19
"Wouter Vijvers" <woutje@chello.nl> writes:

> 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?

First, defaultdomain is only used for NIS; it has nothing to do with
your FQDN or DNS domain name.  It's just a poor choice of terms.  You
could consider altering your dhclient.conf to set your domain name.  I
don't remember the exact syntax, but you're able to specify values
that always get "inserted" into the reply you receive from the
server.  Check the dhclient or dhclient.conf man pages.

Second, you probably want to put
authoritative;
at the top of your dhcpd.conf file.  This has changed since the
version of dhcpd in 1.4.  I'm sure it's documented somewhere, but I
don't remember where.

Chris

-- 
----------------------------------------------------- chris@cjones.org
Chris Jones                                           Mad scientist at large