Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jul 1996 10:23:31 +0000 ()
From:      James Raynard <fqueries@jraynard.demon.co.uk>
To:        Red Barchetta <paradox@pegasus.rutgers.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: running system with no hostname...
Message-ID:  <199607221023.KAA01102@jraynard.demon.co.uk>
In-Reply-To: <CMM-RU.1.5.838000404.paradox@pegasus.rutgers.edu> from "Red Barchetta" at Jul 21, 96 09:53:24 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Anyway, my question/problem stems from the fact that I connect to the
> internet via a dialup PPP link (haven't tried yet under FreeBSD) and that I
> therefore do not have a hostname assigned to my machine.  For now, I have
> placed an arbitrary name in the "hostname" field of /etc/sysconfig, but I get
> all sorts of daemons telling me on botup that the hostname (obviously)
> doesn't exist.  I know I can turn off things like sendmail until I get a
> permanent link in the fall, but can someone warn me as to what types of
> problems running without a "real" hostname can cause (the comments in
> sysconfig and the installer both stress the importance of this value)?
 
Just put an entry in /etc/hosts, using one of the reserved IP addresses
for your fictitious host name, eg

127.0.0.1	localhost
192.168.0.1	foobar

Also, change your /etc/host.conf to read

hosts
bind

so that it'll look in /etc/hosts first instead of doing a DNS query.

> Also, is there any way to tell FreeBSD's network daemons *not* to perform a
> hostname lookup (i.e. just use the dynamic IP address instead)?

If you've set PPP up correctly (see the Handbook for details), your
machine should magically set itself up on connection so it appears to 
have the correct IP address.




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