templates: lxc-system-manage: Send correct DNS over dhcp

We should set the correct DNS IP address via DHCP so containers can get
a valid entry. This fixes a problem where the DNS inherits the DNS
server from the host and the host uses the localhost IP in case it's
running a local DNS caching resolver such as dnsmasq.

Depends-On: Ied7632037f737c3f32c34dac70531065c54496c9
Change-Id: I14f8373897da28dea2ea03500c2be46c5b40d51c
This commit is contained in:
Markos Chandras 2018-03-05 15:08:43 +00:00
parent bf143155f4
commit f5c39d087e

View File

@ -173,6 +173,7 @@ function start_dnsmasq {
--conf-file="${LXC_DHCP_CONFILE}" \ --conf-file="${LXC_DHCP_CONFILE}" \
--listen-address="${LXC_ADDR}" \ --listen-address="${LXC_ADDR}" \
--dhcp-range="${LXC_DHCP_RANGE}" \ --dhcp-range="${LXC_DHCP_RANGE}" \
--dhcp-option="6,${LXC_ADDR}" \
--dhcp-lease-max="${LXC_DHCP_MAX}" \ --dhcp-lease-max="${LXC_DHCP_MAX}" \
--except-interface="lo" \ --except-interface="lo" \
--interface="${LXC_BRIDGE}" \ --interface="${LXC_BRIDGE}" \