Unable to resolve anything (DNS not working)

Brokeda

New Member
Oct 22, 2019
1
0
1
29
Hello everyone,

I have a single Proxmox host that is running in Hetzner bare metal servers for about 7 months. Recently, I tried to download some ISOs from the Proxmox host using wget and I discovered that the host wasn't resolving domains at all. Also, nslookup and dig gives me errors:

nslookup not found:
root@mglab ~ # nslookup google.com
-bash: nslookup: command not found

dig not found message:
root@mglab ~ # dig google.com
-bash: dig: command not found

Host command is working, but the dns resolution doesn't work (it just remain stuck and it goes in timeout):
root@mglab ~ # host google.com
;; connection timed out; no servers could be reached

This is my /etc/resolv.conf

root@mglab ~ # cat /etc/resolv.conf
search mglab
nameserver 213.133.98.98
nameserver 213.133.99.99
nameserver 213.133.100.100
### Hetzner Online GmbH installimage
# nameserver config

DNS servers are reachable and working. Also, the strange thing is that, inside my VMs and containers, I can successfully resolve domains: so the UDP traffic towards port 53 isn't blocked by some datacenter firewall.
Also, if I resolve manually some domains and I put them in /etc/hosts, I can successfully reach servers and download ISOs via wget.

Can you help me in order to troubleshoot this issue? Please feel free to ask other configurations!
Thanks in advance!
 
Hi,

The firewall for VM is different from the host firewall.
I would check you host firewall setting.

Also, nslookup and dig gives me errors:
This is not an error.
The tools are not installed.
 

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!