getnameinfo failed

Discussion in 'Installation/Configuration' started by Paul7277, Sep 14, 2008.

  1. Paul7277

    Paul7277 New Member

    Hi All,
    I've been slowly working my way through but i am stuck on this error after i do, netstat -tap | grep mysql i get

    getnameinfo failed
    tcp 0 0 *:mysql *:* LISTEN 21625/mysqld

    If i do hostname
    root@server1:~# hostname
    root@server1:~# hostname -f

    root@server1:~# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:mysql *:* LISTEN 21858/mysqld
    tcp 0 0 *:netbios-ssn *:* LISTEN 17288/smbd
    tcp 0 0 server1.murfetts:domain *:* LISTEN 20942/named
    tcp 0 0 localhost.locald:domain *:* LISTEN 20942/named
    tcp 0 0 localhost.localdoma:953 *:* LISTEN 20942/named
    tcp 0 0 *:microsoft-ds *:* LISTEN 17288/smbd
    tcp6 0 0 [::]:domain [::]:* LISTEN 20942/named
    tcp6 0 0 [::]:ssh [::]:* LISTEN 12940/sshd
    tcp6 0 0 ip6-localhost:953 [::]:* LISTEN 20942/named
    getnameinfo failed
    tcp6 0 0 server1.murfettsaut:ssh [UNKNOWN]:3221 ESTABLISHED 12951/0

    Where do i go from here?
  2. ralic

    ralic New Member

    My take on this is that the machine you are ssh'ing from cannot be resolved:
    So netstat sends "getnameinfo failed" to the stderr stream when the name resolution fails.

    When you issue the grep command you're seeing two things.
    1.) getnameinfo failed - stderr stream because of above
    2.) tcp 0 0 *:mysql *:* LISTEN 21625/mysqld - stdout stream results of grep

    So you can either ignore it, it's not really a problem, or fix the name resolution for the box you're ssh'ing from.
    Last edited: Sep 14, 2008

Share This Page