0

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?

9
  • Are the IPv6 addresses obtained through DHCPv6 Commented May 9, 2023 at 7:10
  • I am not sure, actually. How do I know this? DHCP and DNS are served via dnsmasq on the LXC host machine. Commented May 9, 2023 at 7:15
  • but how are you getting IPv6 addresses - I didn't think dnsmasq did DHCPv6 Commented May 9, 2023 at 8:06
  • Hmm, I actually thought 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. Commented May 9, 2023 at 8:51
  • Could be getting the IPv6 using SLAAC, does your router send Router Advertisements (RA) Commented May 9, 2023 at 9:05

0

You must log in to answer this question.

Browse other questions tagged .