[Lxc-users] Container name as DNS name
Serge Hallyn
serge.hallyn at canonical.com
Thu Jun 28 22:11:02 UTC 2012
Quoting Ben Butler-Cole (ben at bridesmere.com):
> Hello
>
> I'm using LXC on EC2, with Ubuntu host and guests. Currently using 11.10
> and now upgrading to 12.04. The new functionality to set up the bridge
> network automatically is great and should make my life a lot easier.
>
> However the default dnsmasq configuration, combined with the way EC2's DNS
> servers behave, means that my containers are getting EC2-like DNS names
> assigned automatically (like ip-10-0-3-97.eu-west-1.compute.internal).
I think you need to give more details on the network setup you were and
are using. You talk about the new bridge (i assume you mean lxcbr0), but
the new bridge has its own dnsmasq already, whereas the url below shows
to use a NATed custom br0 (which also has its own dnsmasq configuration).
> I was previously using a configuration[1] which had dnsmasq manage a domain
> itself and resulted in assigning the container name as the DNS name.
>
> Is there a simple way to recover this behaviour without ignoring the
> provided network configuration entirely?
>
> I can't see a way to easily modify the dnsmasq configuration that LXC uses
> without hacking the Upstart script. Would it be reasonable to move the
> dnsmasq configuration from the script into a separate file so that it could
> be modified independently?
That might be nice and I wouldn't object, but I suspect if you want to
customize the bridge, you're better off disabling lxcbr0 (in
/etc/default/lxc) and using your own bridge as you were doing before.
> Thanks for you help.
> -Ben
>
> [1] mostly stolen from
> http://www.activestate.com/blog/2011/10/virtualization-ec2-cloud-using-lxc
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users
More information about the lxc-users
mailing list