Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

So my Mac is sitting across the ocean, on my home network, with its ssh port forwarded.

I can ssh into it, and even connect to the Minecraft server running there.

However, commands like ping and curl all tell me that they can't resolve anything.

$ ssh myip
Password:
Last login: Wed Jul 11 15:40:42 2012 from over here
$ ping google.com
ping: cannot resolve google.com: Unknown host

How is this even possible? I rebooted some stuff, but nothing seems to help.

share|improve this question
    
Do you know if it has ever worked before? Can you connect to other hosts by IP? –  slhck Jul 11 '12 at 13:52
    
Here's a test (that I developed in desperation): run that ssh session with X forwarding, and then try to run Xclock. Tell us what happens –  qweet Jul 11 '12 at 13:57
add comment

2 Answers 2

Are there DNS Server entries on the remote host? Seems like you're not able to do name resolution. Try to ping 209.85.148.113 (one of the hosts at google.com) for example.

Also maybe there's a firewall blocking unspecified traffic?

share|improve this answer
    
My favourite ip address to ping is 8.8.8.8 (Google Public DNS primary server). –  dave4420 Jul 16 '12 at 10:39
add comment

You could also check /tmp/system.cfg and set the primary dns server to google 8.8.8.8 for external lookups.

Save and this should remain persistent on reboot

share|improve this answer
    
There is no such file on a Mac. –  slhck Jul 11 '12 at 15:25
    
Why are you giving Windows commands to a Mac user? –  Ramhound Jul 31 '12 at 12:44
add comment

Your Answer

 
discard

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.