Regards,
I've run into the following issue recently following an intrusion in to my VPS:
Although resolv.conf is properly configured with the correct DNS servers the VPS can not resolve hosts.
I can:
- Ping the DNS Servers just fine
- I can ping based on IP
I can not:
- Resolve hostnames
- ping the hostname of the actual localhost / server.
I've tried looking into where the problem may lie but I see no rules, for instance, blocking outgoing DNS traffic.
Results of nslookup google.com
hostname:/etc/network# nslookup google.com
;; connection timed out; no servers could be reached
I'm slowly running out of ideas on where to look.
Any ideas ?
Thanks in advance,
The first thing to check is to see if the DNS request is actually leaving for the right destination.
Open 2 terminal sessions. On one type:
on the other do the:
The one with the tcpdump command should show you something like the below when all is working fine:
If you do not even see the outgoing packet, then there is an internal problem with the name resolution config on your server.