nameserver IPv6 overwriting config from Proxmox

codycook

Member
Feb 21, 2015
3
0
21
Hi everyone.

I am currently using Proxmox VE 4.2-15/6669ad2c.
I'm having a similar problem to this thread but I am not running any either of those three services on any of my containers.
All of my containers are Debian 8.

When I restart a container, it appears that IPv6 DNS is overwriting all of my resolv.conf files. That's not usually a problem, but it affects services that run in those that only communicate over IPv4. As such, I'm stuck having to manually overwrite the resolv.conf files on restart of those. I'm trying to find out what is causing the resolv.conf to be overwritten, when it should just be written from PVE.
PVE > Node > DNS shows the specified DNS entries I tell it to (one IPv4 and one IPv6) but the IPv6 address overwrites anything.
I do see that the PVE-set resolv.conf get set at initial boot, but then is overwritten shortly after.

Strangely enough, I used pct push to replace them all at once, and now it reloads this one file somehow every time I start up the container. Not sure how it knows that I pushed that file. I removed all contents from the resolv.conf file and then shutdown/restarted the container... then saw the PVE resolv.conf then saw the one I pushed to it.

Any suggestions/ideas?
 
If you want to keep the container settings in the PVE gui the way they are but don't want it to overwrite the just the resolv.conf file, then you can mark it like this inside the container:
Code:
root@container # /etc/.pve-ignore.resolv.conf
Needs pve-container >= 1.0-59
 

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!