Refresh /etc/resolv.conf automatically

janvv

Active Member
Jun 21, 2020
63
10
28
66
52.24154182722349, 5.117853866801705
Earlier today, I changed the DHCP settings in my router because I have a new local DNS server.
I have set the lease time in my router to 10 minutes.
I would have expected that this change was propagated through my netwerk, but the proxmox host did not pick it up, apparently.
/etc/resolv.cont still has the ip address of the old DNS server, which does not exist anymore.

It is not difficult to fix, but how could I have avoided this?
 
I did. I am using option 6 in the DHCP setting, which works for the other systems in the network.
is your PVE taking its IP address also from DHCP? if not then the DHCP option won't do much..
 

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!