AAAA record for localhost or not?

Jeroen Massar jeroen at unfix.org
Tue Sep 18 11:18:13 CEST 2012


On 2012-09-18 11:13 , Bjørn Mork wrote:
> An interesting discussion just came up on Debian lists relating to the
> odd traditional mapping they've used in /etc/hosts:
> 
>  127.0.0.1       localhost
>  ::1     ip6-localhost ip6-loopback

See:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=427067

As such you should find:

127.0.0.1	localhost
::1     localhost ip6-localhost ip6-loopback

[..]
> So what is the best current practice?  Should "localhost" have both an A
> and AAAA record?

Yes.

But do note that it might break crappy software which does not handle
IPv6 as they do not check the address family. But the fix is to fix that
software then.

Greets,
 Jeroen



More information about the ipv6-ops mailing list