I have an LXC container created and started as follows:
sudo lxc-create -t debian -n mylxc -- --release bullseye
sudo lxc-start -n mylxc
sudo lxc-attach -n mylxc
On the LXC host I have a DHCP server running which provides IPv4 and IPv6 IP addresses and announces IPv4 and IPv6 DNS servers.
The LXC correctly gets both an IPv4 and an IPv6 address. It adds only the IPv4 DNS server to /etc/resolv.conf
, though.
How can I get my LXC container to correctly receive the IPv6 DNS server via DHCP?
dnsmasq
on the LXC host machine.dnsmasq
would serve these. Why do you assume it doesn't serve them? I actually get useful IPv6 addresses on my devices and there is no other DHCP server running in my network. I am an IPv6 newbie, though, so I might overlook something.