Sample Header Ad - 728x90

Configure IPv6 DNS server via DHCP in LXC container

0 votes
0 answers
274 views
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 properly receive the IPv6 DNS server via DHCP?
Asked by carlfriedrich (153 rep)
May 9, 2023, 07:04 AM
Last activity: Mar 20, 2025, 10:05 AM