getaddrinfo() call is failed in ping6 for localhost6 while nscd is running
Issue
- getaddrinfo() returned error in ping6 for localhost/localhost6 while nscd is running
- Ping6 works fine after disabling nscd
# ping6 localhost
unknown host
# ping6 localhost6
unknown host
# ping6 localhost6.localdomain6
unknown host
# /etc/init.d/nscd stop
Stopping nscd: [ OK ]
# ping6 localhost6.localdomain6
PING localhost6.localdomain6(localhost) 56 data bytes
64 bytes from localhost: icmp_seq=1 ttl=64 time=0.028 ms
After execute attached program with localhost6 it is giving below error :
error in getaddrinfo: Name or service not known
Environment
- Red Hat Enterprise Linux(RHEL) 6.5
- nscd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.