pinging a local nodename fails

MMacD

Active Member

Thanks: 15
Messages: 116

#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: 6,617
Messages: 28,158

#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.
 
Top