cloud-init and resolv.conf

Aug 7, 2017
Hi, we have a Centos7 template with cloud-init integration. cloud-init is awful ;) but it does what it should do. We face just one problem which we could not solve till now. It is the automatic configuration of nameserver in resolv.conf.

Our cloud-init template has a nameserver in resolv.conf. cloud-init *add* the nameserver from the target config file. As a result the already existing nameserver from the template is the first entry. It is a nameserver which is only available in our LAN. Connectivity is then a bit sub optimal... After cloning we have to manually remove the entry from resolv.conf.

Does anyone have an idea how to fix this situation? What do we miss?


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!