Date: 12 Feb 2004 13:04:38 -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: <44ekt0cgy1.fsf@be-well.ilk.org> In-Reply-To: <BAY8-F104vdeD8i2Gqf0000f6da@hotmail.com> References: <BAY8-F104vdeD8i2Gqf0000f6da@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44ekt0cgy1.fsf>