• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

pinging a local nodename fails

MMacD

Active Member

Thanks: 13
Messages: 106

#1
I installed nsd as my local nameserver. But pinging "slowcat" faiis, though "slowcat.local.lan" succeeds. I seem to sorta-maybe-possibly-couldbe remember that ping doesn't like node-only names, but I can't remember either way for sure. Is there a problem with ping or would it be something more exciting? (I don't remember ever having these problems when I used bind).
 

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 5,996
Best answers: 10
Messages: 26,762

#2
The issue is not with ping(8), it's the way the host is trying to resolve a hostname without the domain part.
Set domain or search in /etc/resolv.conf:
Code:
search local.lan
Then everything will work with the 'short' name.
 

MMacD

Active Member

Thanks: 13
Messages: 106

#3
aaaaAAAAaaaa...bingo! So easy when y'know how (as you always do!)
 
Top