Skip site navigation (1)Skip section navigation (2)
Date:      16 Feb 2004 14:57:08 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        "Evan Dower" <evantd@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: hostname and dhcp
Message-ID:  <44fzdaer1n.fsf@be-well.ilk.org>
In-Reply-To: <444qtw2dz6.fsf@be-well.ilk.org>
References:  <BAY8-F49ztmjUUNsr6Y00092ae6@hotmail.com> <444qtw2dz6.fsf@be-well.ilk.org>

next in thread | previous in thread | raw e-mail | index | archive | help

Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> writes:

> "Evan Dower" <evantd@hotmail.com> writes:
> 
> > Hmm... That is what I expected it to do, but when I tried it, I ended
> > up with an empty hostname. Of course, I don't remember now if I
> > commented out that line or just set it to empty. Actually, looking at
> > /etc/defaults/rc.conf I see that if I comment it out in /etc/rc.conf
> > it gets set to the empty string in the default, so it shouldn't
> > matter. Anyway, like I said, I tried that and just ended up with an
> > empty hostname. Perhaps that indicates something is wrong with my
> > configuration...
> 
> Well, I didn't *try* it, I just read through dhclient-script.
> I'll try to take a closer look.

I checked it out on my home network, and found that my DHCP server
wasn't sending the hostname back at all.  I am running my own DHCP
server (using the ISC port), so I configured it to do that (with the
"get-lease-hostnames" option).  If you don't run your own server, you
can't do anything about that, so if you want your hostname set to the
correct FQDN, you'd need to do a reverse lookup on the IP address you
found.  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44fzdaer1n.fsf>