Add IPv6 support to hosts addon

Update ::1 as well as 127.0.0.1 for the added hostname to enable both
stacks for the hostname.