VMs inside of Promox aren't getting passed the right DNS server

Daysis447

New Member
Jan 27, 2023
1
0
0
Hello,

I'm running into a issue where VMs I create aren't able to resolve hostnames because they're getting passed the wrong DNS server information. I'm not sure why that's happening so I was wondering if anybody could point me in the right direction.

My home set up is fairly complex for a home network but I think this is most relevant information:

I have a Raspberry Pi configured as a DHCP server set that hands out 192.168.2.0 /24 addresses, a DNS server address of 192.168.1.148(my local DNS), and a gateway of 192.168.2.1 that's plugged into a Cisco switch.

This appears to be working correctly, every device plugged into the switch is getting handed an a valid address in the 192.168.2.0 /24 range with the correct DNS server address, has network connectivity and is able to resolve hostnames.

I have the server Proxmox is installed on connected via the switch and it appears to be pulling a valid DHCP configuration. I have full network connectivity to both LAN and WAN addresses. I am able to resolve host names.

Here's the contents of the /etc/resolv.conf file
root@pve:~# cat /etc/resolv.conf
search proxmox.local
nameserver 192.168.1.148

It appears hosts I create inside of Proxmox are being passed a DNS address of 192.168.2.1 which is the same address as the default gateway and isn't set up to handle DNS queries so it's basically sinking all my requests. I'm not sure why the incorrect address is getting passed or how to fix it.

Besides the DNS server being passed incorrectly the VM's have full connectivity as far as I can tell. I can ping on both LAN and WAN addresses. If I manually change the the DNS server to the correct address it starts working but I don't want to manually change the address on every VM I create.

Please let me know if you need more information and thank you for your help!
 
Last edited:

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!