1

I am experiencing a error/warning when running any netstat command on my Debian 8 machine.

One of the commands:-

netstat | grep http | wc -l

The result:-

getnameinfo failed

getnameinfo failed

getnameinfo failed

getnameinfo failed

getnameinfo failed

136

Why is it mentioning 'getnameinfo failed'? My server doesn't seem to be experiencing any issues.

Does anybody know a fix for this?

2
  • I'm not sure what you are asking me to check?
    – daygle
    Dec 13 '17 at 7:42
  • I'm not sure what you are asking me to check?
    – daygle
    Dec 13 '17 at 7:42
0

Presumably the error message indicates that some of the calls that netstat was making to getnameinfo(3) failed.

Ie, when getnameinfo was trying to look up the hostname corresponding to an IP address or the service name corresponding to a port number something failed in an unexpected manner.
(By default netstat shows names for both addresses and ports, also see the -n option)

If you care to try to track down what specifically is happening, it may be more helpful to see the errors in context (ie, drop the rest of the pipeline).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.