[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian /etc/hosts Behavior



On Sat, Apr 17, 2004 at 10:32:29AM -0700, ms419@freezone.co.uk wrote:
> ---
> 127.0.0.1	kas	localhost
> ---
> This realized, it was a quick fix:
> ---
> 127.0.0.1	localhost
> ---
> 
> If this entry prevents "hostname -f" and "hostname -d" from working, 
> why does Debian create it?

Debian doesn't, on any of my machines:

[ 9:26 am][pts/492][/home/mwilson]
rei $ hostname -f
rei.moonkingdom.net
[ 9:26 am][pts/492][/home/mwilson]
rei $ hostname -d
moonkingdom.net
[ 9:26 am][pts/492][/home/mwilson]
rei $ ssh filehost
[ 9:31 am][pts/1][/home/mwilson]
filehost $ grep "127.0.0.1" /etc/hosts
127.0.0.1       localhost       localhost.localdomain
[ 9:32 am][pts/1][/home/mwilson]
filehost $ hostname -f
filehost.moonkingdom.net
[ 9:32 am][pts/1][/home/mwilson]
filehost $ hostname -d
moonkingdom.net
[ 9:32 am][pts/1][/home/mwilson]
filehost $ exit
logout
Connection to filehost closed.
[ 9:30 am][pts/492][/home/mwilson]
rei $ ssh mailhost
[ 9:28 am][pts/1][/home/mwilson]
mailhost $ grep "127.0.0.1" /etc/hosts
127.0.0.1       localhost       localhost.localdomain
[ 9:28 am][pts/1][/home/mwilson]
mailhost $ hostname -f
mailhost.moonkingdom.net
[ 9:28 am][pts/1][/home/mwilson]
mailhost $ hostname -d
moonkingdom.net
[ 9:28 am][pts/1][/home/mwilson]
mailhost $ 

What is it they say?  Works great, lasts long time.

Personally, what YOU had in /etc/hosts looks like something that was added
locally.

-- 
 Marc Wilson |     BOFH excuse #100: IRQ dropout
 msw@cox.net |



Reply to: