Hostname configuration on DHCP/DNS server: /etc/hosts vs. /etc/hostname
Tom H
tomh0665 at gmail.com
Sun Mar 27 14:29:48 UTC 2011
On Sun, Mar 27, 2011 at 10:11 AM, Niki Kovacs <contact at kikinovak.net> wrote:
> Le 27/03/2011 15:44, Tom H a écrit :
>>
>> I don't know what the canonical (not Canonical!) way of doing this is
>> because the last time that I checked even the Debian developers were
>> arguing over this. It's something of a religious debate.
>>
>> You can put either. The only functional difference that I know of is
>> that the output of "hostname" will differ ("hostname -s" and hostname
>> -f" will be the same).
>
> Looks like my first impression is confirmed. Thanks to you and to Chris G
> for the detailed answers!
You're welcome. The contents of "/etc/hostname" and "/etc/hosts" (both
the "127.0.0.1" and "127.0.1.1" lines) are pretty much religious
arguments. You just have to use what works.
More information about the ubuntu-users
mailing list