Dns resolution not working

Thundercat

New Member
Jan 31, 2023
13
0
1
Hi!
I have a Proxmox server running a few virtual machines. The proxmox server itself can ping destinations such as 8.8.8.8 and google.com
The vm's cant. They can ping 8.8.8.8 but they cant ping google.com. This shouldnt be a problem when looking through my local DNS (Pihole) and my Router isnt detecting any problems.


Ive got my router (Edgerouter 10x) set up with a few Vlans, the proxmox server is on its own Vlan over at 10.10.70.7 and the vm's take ip-adresses within the same scope (after xx.xx.70.7 that is).


I cant for my life understand why the vms's can ping the outside world (and local machines) but cant seem to access a Domain name adress.
This is a new issue and i havent done anything to the proxmox install to cause this, ive added a second dns to the local Vlan (1.1.1.1) as to try and resolve adresses outside of my local DNS but that doesnt seem to help either.


Anyone with an idea as to whats going on?
 
Hi!
I have a Proxmox server running a few virtual machines. The proxmox server itself can ping destinations such as 8.8.8.8 and google.com
The vm's cant. They can ping 8.8.8.8 but they cant ping google.com. This shouldnt be a problem when looking through my local DNS (Pihole) and my Router isnt detecting any problems.


Ive got my router (Edgerouter 10x) set up with a few Vlans, the proxmox server is on its own Vlan over at 10.10.70.7 and the vm's take ip-adresses within the same scope (after xx.xx.70.7 that is).


I cant for my life understand why the vms's can ping the outside world (and local machines) but cant seem to access a Domain name adress.
This is a new issue and i havent done anything to the proxmox install to cause this, ive added a second dns to the local Vlan (1.1.1.1) as to try and resolve adresses outside of my local DNS but that doesnt seem to help either.


Anyone with an idea as to whats going on?


Probably Check your default gateway settings.

Are you talking about the VMs or the LXC Containers?

Please use a network scanner and check if the IP addresses are not conflicting.

I would also work around the VLAN configurations too, just to be sure.

Regards.
 
  • Like
Reactions: Thundercat
Probably Check your default gateway settings.

Are you talking about the VMs or the LXC Containers?

Please use a network scanner and check if the IP addresses are not conflicting.

I would also work around the VLAN configurations too, just to be sure.

Regards.
Vm's
There are no Ip conflicts, each machine has its own ip and i can ping those individual ip's without error. I can see the dhcp updating with new ip adresses on that Vlan for every new vm i start.

This is the output from one of them:
1675186533150.png
This is one that CAN resolve dns queries:
1675186589971.png
Could there still be network conflicts? And do you have a tool in mind?
 
So aparently i have 1 machine that does resolve properly and two that dont... Sounds like a conflict doesnt it.
Edit, make it 2 machines... Im getting dns errors when the third one starts:
DNSMASQ_WARNWarning in dnsmasq core:Ignoring query from non-local network
 
Last edited:
Vm's
There are no Ip conflicts, each machine has its own ip and i can ping those individual ip's without error. I can see the dhcp updating with new ip adresses on that Vlan for every new vm i start.

This is the output from one of them:
View attachment 46220
This is one that CAN resolve dns queries:
View attachment 46221
Could there still be network conflicts? And do you have a tool in mind?
Which OS are you running on these VMs?
 
Remove the /etc/resolv.conf symlink and use the public resolvers directly. Whatever is in /etc/resolv.conf is broken (and is using dnsmasq incorrectly according to your logs)

Bash:
sudo -i
rm -f /etc/resolv.conf
cat > /etc/resolv.conf << EOF
nameserver 1.1.1.1
nameserver 8.8.8.8
options edns0
EOF
 

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!