Comment 22 for bug 12709

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Fri, 11 Feb 2005 10:59:48 +0100
From: Thomas Hood <email address hidden>
To: <email address hidden>, <email address hidden>
Subject: Standard network configurations

Please note that the standard way of setting up a Debian system that
lacks a permanent network card is:

$ cat /etc/hostname
foo
$ hostname
foo
$ cat /etc/hosts
127.0.0.1 localhost.localdomain localhost foo
...
$ hostname -f
localhost.localdomain

The setup that I recommend, and which I plan to promote as the future
standard, for machines without permanent network cards is:
$ cat /etc/hostname
foo
$ hostname
foo
$ cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
127.0.1.1 foo
...
$ hostname -f
foo

If the machine has a permanent network card with a permanent IP address
(i.e., not assigned by DHCP) but no permanent domain name then the
standard configuration is:

$ cat /etc/hostname
foo
$ hostname
foo
$ cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
202.13.55.88 foo
...
$ hostname -f
foo

If the machine has a permanent network card with a permanent IP address
and a permanent domain name then the standard configuration is:

$ cat /etc/hostname
foo
$ hostname
foo
$ cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
202.13.55.88 foo.foodomain foo
...
$ hostname -f
foo.foodomain

On installation, squid should be able to handle all these standard
configurations without failing in order to be considered fit for
release.
--
Thomas Hood <email address hidden>