Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a server that holds my server services. I'm able to ssh to the server:

enter password:

But, I can't ping the server:

$ ping

PING ( data bytes    
Request timeout for icmp_seq 0

When I try to use the DNS I set up on the system.

$ nslookup
;; connection timed out; no servers could be reached

but when i do a ns lookup with the different server.

$ nslookup


Non-authoritative answer:

I'm not sure what is going on. Is it because I can't ping my server that the DNS fails? I need to fix this, but can't seem to find a way.

Let me know if you would more information to solve this, I will be happy to provide you with it.

share|improve this question
it is obvious that i have changed the name and IP address. so ignore the irregularities in them – Vijit Jain Aug 7 '13 at 19:52
What does iptables -L -v -n say ? – Iain Aug 7 '13 at 19:59
Unless you purposely changed the IP in the ping output (or you're trying to ping an external IP), it is trying to ping the incorrect IP. You say you cannot ping, but can you ping the IP and not by DNS name instead? What is the output when you ssh in and ping from within the SSH session on that server? – TheCleaner Aug 7 '13 at 20:06
up vote 0 down vote accepted

I would start with looking at iptables for an unwanted firewall rule.
Ping and DNS are different protocols (and neither implicitly relies on the other). Ping can be disabled by blocking/ignoring ICMP requests and isn't really indicative of a problem (try pinging
DNS uses TCP 53 and UDP 53.

share|improve this answer
Firewall does not block DNS port 53 UDP/tcp I found the error. It was with my router. I had to point the Bind IP on my router to get this to work. – Vijit Jain Aug 7 '13 at 20:14
I have to change the setting on my apple router to make this to work. All i did was point the bind service from my router to the DNS server, and it fixed the problem. Ping is still blocked by the router. that is not a concern any more – Vijit Jain Aug 7 '13 at 20:18
@VijitJain Glad you resolved this. Please be sure to post your findings as an answer and mark your answer as accepted – jscott Aug 7 '13 at 20:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.