LXC DNS server

kosta88

New Member
Sep 5, 2025
24
5
3
Hello,
I am trying to figure out how this is supposed to work...
I have created an LXC container and set it to DHCP. Nothing under Options except the hostname.
And when I check /etc/resolv.conf in the LXC container (which is Debian13 btw), it doesn't show me what DHCP is delivering.
And even if I set DNS server in Options, it still doesn't use it according to /etc/resolv.conf.

When I go full static, all is fine. It's like LXC containers don't like DHCP, especially when it comes to DNS.

What am I doing wrong?
Thanks
 
Last edited: