On Tue, Sep 18, 2012 at 10:25:06AM +0200, Bjørn Mork wrote: > For example: > > bjorn@canardo:~$ grep localhost /etc/hosts > 127.0.0.1 localhost > ::1 ip6-localhost ip6-loopback > > bjorn@canardo:~$ host localhost > localhost has address 127.0.0.1 > localhost has IPv6 address ::1 > bjorn@canardo:~$ host ::1 > 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa > domain name pointer localhost. > > This is not good... Which addresses will a service listening on > "localhost" listen too? Seems it depends on whether DNS is available or > not. Isn't that seriously buggy?
Well, if you redefine localhost on your local DNS server, that's what you get… Is there an RfC that regulates localhost's definition? Kind regards Philipp Kern
signature.asc
Description: Digital signature