touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #89029
[Bug 1447160] Re: lxc-create template does not include /etc/hosts hostname resolution
[Expired for lxc (Ubuntu) because there has been no activity for 60
days.]
** Changed in: lxc (Ubuntu)
Status: Incomplete => Expired
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1447160
Title:
lxc-create template does not include /etc/hosts hostname resolution
Status in lxc package in Ubuntu:
Expired
Bug description:
1) Ubuntu 14.04 creating an Ubuntu 12.04 lxc container.
2) Version: 1.0.7-0ubuntu0.1
3) /etc/hosts should have been:
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
127.0.1.1 <hostname>
4) /etc/hosts was:
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
127.0.1.1 <hostname>
According to http://www.debian.org/doc/manuals/debian-
reference/ch05.en.html#_the_hostname_resolution the loopback address
to use in this case is 127.0.1.1 and it is what for example maas
provisioning does. This would help software that expects the hostname
be resolvable work inside lxc containers.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1447160/+subscriptions
References