[SOLVED] change DNS to a LXC

piviul

Active Member
Mar 19, 2020
50
3
28
Hi all, in a LXC unprivileged container I would like to change the DNS. If I change the resolv.conf I fear that at every restart of the CT I find resolv.conf in a reversed state so I would ask you what's the standard way to change DNS in a LXC.

Best regards

Piviul
 
Proxmox is handling the config file, change the dns in the gui. Your container -> DNS

If you want to use something like ansible to automate config changes, create a .pve-ignore file, read the lxc docs.
 
Glad that resolved so easily :) - please mark the thread as 'SOLVED' - it helps other users with similar questions

Thanks!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!