Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2004 10:14:30 -0800
From:      "Evan Dower" <evantd@hotmail.com>
To:        freebsd-questions-local@be-well.ilk.org
Cc:        freebsd-questions@freebsd.org
Subject:   Re: hostname and dhcp
Message-ID:  <BAY8-F49ztmjUUNsr6Y00092ae6@hotmail.com>

next in thread | raw e-mail | index | archive | help
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...
Thanks very much for the help (any other ideas?),
--
Evan Dower
Undergraduate, Computer Science
University of Washington
Public key: http://students.washington.edu/evantd/pgp-pub-key.txt
Key fingerprint = D321 FA24 4BDA F82D 53A9  5B27 7D15 5A4F 033F 887D




>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
>Date: 12 Feb 2004 13:04:38 -0500
>
>"Evan Dower" <evantd@hotmail.com> writes:
>
> > I've actually been running FreeBSD for quite a while now, but I've
> > never known exactly how to handle this. In rc.conf, one must specify a
> > hostname. If you're using DHCP to set up your network though, your
> > FQDN (fully qualified domain name) can change without notice. It seems
> > like a Good Idea to have your hostname be your FQDN, since some things
> > will do a reverse lookup on your IP to verify that it matches the
> > hostname you supplied. In particular I'm thinking of SMTP servers
> > here. (send-pr doesn't work for me because my mail gets rejected.) So,
> > when you're autoconfiguring your network interfaces, what should you
> > put in rc.conf's hostname variable? Is there something else I can do
> > that would allow me to have something nicer looking, but still send my
> > FQDN when asked?
>
>If you don't set your hostname in rc.conf, dhclient should change it
>for you when it finds out what it is.
>
>--
>Lowell Gilbert, embedded/networking software engineer, Boston area:
>		resume/CV at http://be-well.ilk.org:8088/~lowell/resume/
>		username/password "public"

_________________________________________________________________
Check out the great features of the new MSN 9 Dial-up, with the MSN Dial-up 
Accelerator. http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/



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