1 |
>> I'm not able to ssh to any domain, although IPs work. I get: |
2 |
>> |
3 |
>> $ ssh example.com |
4 |
>> ssh: Could not resolve hostname example.com: Name or service not known |
5 |
>> |
6 |
>> I can ping domains no problem, and web browsing works. I've tried |
7 |
>> rebooting and re-emerging openssh. I am connected to an unfamiliar |
8 |
>> wireless network (with no alternative right now) but I could ssh to |
9 |
>> domains no problem over this network before. Does this make sense to |
10 |
>> anyone? |
11 |
> |
12 |
> It does not :) |
13 |
> |
14 |
> So, if you do: |
15 |
> |
16 |
> host example.com |
17 |
|
18 |
I'm not sure which package that is. |
19 |
|
20 |
> it shows the correct IP address? |
21 |
> |
22 |
> If you ssh to that IP address, it works? |
23 |
|
24 |
Yes, that works. |
25 |
|
26 |
> Nothing related to this hostname is in your /etc/hosts is it? Does |
27 |
> your /etc/resolv.conf look okay to you? |
28 |
|
29 |
/etc/hosts only has my 127.0.0.1 entry. /etc/resolv.conf looked fine |
30 |
with a domain entry and a nameserver entry but I removed both and |
31 |
added Google's nameserver at 8.8.8.8 and it works. |
32 |
|
33 |
> Weird... |
34 |
|
35 |
Yeah I don't get it. Check this out: |
36 |
|
37 |
$ ping google.com |
38 |
PING google.com (74.125.224.84) 56(84) bytes of data. |
39 |
64 bytes from 74.125.224.84: icmp_req=1 ttl=55 time=97.1 ms |
40 |
64 bytes from 74.125.224.84: icmp_req=2 ttl=55 time=97.1 ms |
41 |
64 bytes from 74.125.224.84: icmp_req=3 ttl=55 time=97.5 ms |
42 |
^C |
43 |
--- google.com ping statistics --- |
44 |
3 packets transmitted, 3 received, 0% packet loss, time 5142ms |
45 |
rtt min/avg/max/mdev = 97.105/97.268/97.539/0.319 ms |
46 |
$ ssh google.com |
47 |
ssh: Could not resolve hostname google.com: Name or service not known |
48 |
|
49 |
- Grant |