Please sign in to comment.
[debops.lxc] Change DNS configuration for lxc-net
The 'lxc-net' service sets up a 'dnsmasq' instance on the 'lxcbr0' network interface to provide DNS and DHCP services for LXC containers. The 'debops.dnsmasq' and 'debops.unbound' roles can use that 'dnsmasq' instance to allow name resolution for LXC containers from the LXC host. Unfortunately, 'dnsmasq' does not provide a "view" functionality, and both the LXC host and LXC containers see the same information. This caused a problem with previous implementation where the 'lxcbr0' interface would use the name of the LXC host to generate the FQDN. This could cause the LXC host name resolution to "switch over" from its previous domain, to 'lxc.<domain>' and break the host configuration. To avoid this, 'lxcbr0' interface will now use the LXC domain itself, without the LXC host own hostname, as the interface name. This should avoid issues with name resolution switching over.
- Loading branch information...
Showing with 38 additions and 23 deletions.