>> I'm not able to ssh to any domain, although IPs work.  I get:
>>
>> $ ssh example.com
>> ssh: Could not resolve hostname example.com: Name or service not known
>>
>> I can ping domains no problem, and web browsing works.  I've tried
>> rebooting and re-emerging openssh.  I am connected to an unfamiliar
>> wireless network (with no alternative right now) but I could ssh to
>> domains no problem over this network before.  Does this make sense to
>> anyone?
>
> It does not :)
>
> So, if you do:
>
> host example.com

I'm not sure which package that is.

> it shows the correct IP address?
>
> If you ssh to that IP address, it works?

Yes, that works.

> Nothing related to this hostname is in your /etc/hosts is it? Does
> your /etc/resolv.conf look okay to you?

/etc/hosts only has my 127.0.0.1 entry.  /etc/resolv.conf looked fine
with a domain entry and a nameserver entry but I removed both and
added Google's nameserver at 8.8.8.8 and it works.

> Weird...

Yeah I don't get it.  Check this out:

$ ping google.com
PING google.com (74.125.224.84) 56(84) bytes of data.
64 bytes from 74.125.224.84: icmp_req=1 ttl=55 time=97.1 ms
64 bytes from 74.125.224.84: icmp_req=2 ttl=55 time=97.1 ms
64 bytes from 74.125.224.84: icmp_req=3 ttl=55 time=97.5 ms
^C
--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 5142ms
rtt min/avg/max/mdev = 97.105/97.268/97.539/0.319 ms
$ ssh google.com
ssh: Could not resolve hostname google.com: Name or service not known

- Grant

Reply via email to