getaddrinfo() call is failed in ping6 for localhost6 while nscd is running

Solution Verified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.