jpkotta wrote:
> I think the script would have to make the first line of /etc/hosts and
> /etc/hostname agree
> in order to be successful, i.e. '127.0.0.1 localhost.localdomain localhost
> foobar' and 'foobar',
> respectively.
/etc/hostname and /etc/hosts should indeed agree, but not in the way you
suggest,
since that is non-standard for Debian and Ubuntu.
/etc/hosts should look like this, where /etc/hostname contains "foo":
127.0.0.1 localhost
127.0.1.1 foo
There is no need to list "localhost.localdomain" since that is a RedHat-
ism.
Do not list "foo" as an alias for "localhost", otherwise there is no unique IP
address
for "foo" and/or the canonical hostname of "foo" becomes "localhost", which is
bad.
If foo has a permanent IP address (e.g., 123.45.67.89) and fully
qualified domain name ("foo.bar.com") then /etc/hosts should look like
this:
127.0.0.1 localhost
123.45.67.89 foo.bar.com foo
See http://www.debian.org/doc/manuals/reference/ch-gateway.en.html and
hosts(5).
--
Installer should have an easy tool to restore root/sudo settings on existing
system
https://bugs.launchpad.net/bugs/19553
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs