Re: localhost in /etc/hosts
On 12.11.06 23:28, Hans du Plooy wrote:
> Just wondering, which is correct:
>
> 127.0.0.1 localhost.localdomain localhost
>
> or
>
> 127.0.0.1 localhost
I think that the second one is correct. Imho, 127.0.0.1 should always map to
'localhost' without domain, even if some other named resolve to 127.0.0.1
> The linux networking howto
> (http://www.tldp.org/HOWTO/NET3-4-HOWTO-5.html) muddies the water even
> more:
>
> 127.0.0.1 localhost loopback
>
> I was always under the impression the first is the proper way. I seem
> to be having issues with resovling localhost for some web applications
> on my Sarge server (127.0.0.1 localhost) but when I fix the hosts file,
> it works, but breaks other things (like mysql usernames).
And that's it :)
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
42.7 percent of all statistics are made up on the spot.
Reply to: