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!
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: