You are not logged in.

#1 2012-08-22 00:22:15

LeftyAce
Member
Registered: 2012-08-18
Posts: 159

[Solved] Ssh: Name or service not known. Ping finds the ip though...

Hi all,

I'm having trouble with ssh and/or nameserver resolution.  I'm attempting to ssh into a machine (eceserv.ece.wisc.edu) and it fails almost instantly with an error:

$ ssh me@eceserv.ece.wisc.edu
$ ssh: Could not resolve hostname eceserv.ece.wisc.edu: No address associated with hostname 

I thought maybe it was a dns issue, but ping seems to work ok:

$ ping eceserv.ece.wisc.edu
PING eceserv.ece.wisc.edu (128.104.180.2) 56(84) bytes of data.

But I never get a return on that ping. 

I *think* I have ipv6 turned off, since I read that could cause issues. In /etc/default/grub I have

GRUB_CMDLINE_LINUX_DEFAULT="quiet ipv6.disable=1"

EDIT:
I can ping google just fine (and I'm posting here on the affected machine)

$ ping www.google.com
PING www.l.google.com (74.125.225.179) 56(84) bytes of data.
64 bytes from den03s05-in-f19.1e100.net (74.125.225.179): icmp_req=1 ttl=50 time=38.0 ms

Any ideas?

Last edited by LeftyAce (2012-08-22 04:06:14)

Offline

#2 2012-08-22 03:39:22

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: [Solved] Ssh: Name or service not known. Ping finds the ip though...

While I can't ping that server either, SSH seems to work fine. Have you tried using the IP address directly instead of domain name?


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#3 2012-08-22 03:47:36

LeftyAce
Member
Registered: 2012-08-18
Posts: 159

Re: [Solved] Ssh: Name or service not known. Ping finds the ip though...

Hmm.  Directly ssh-ing to the ip works. 
Changing /etc/resolv.conf to use OpenDNS also solved the problem, so maybe it's just something weird with the DNS my ISP is providing me automatically? I don't really like the idea of using an "unusual" dns, but I suppose it's better than having certain connections not work :-P

Offline

#4 2012-08-22 03:53:04

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: [Solved] Ssh: Name or service not known. Ping finds the ip though...

Please mark as [solved]. And OpenDNS (or Google's own DNS service, if you don't mind privacy concerns) are in my opinion much preferable to the spotty DNS services ISPs can sometimes give.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB