PDA

View Full Version : getnameinfo failed


Paul7277
14th September 2008, 01:25
Hi All,
I've been slowly working my way through http://www.howtoforge.com/perfect-server-ubuntu8.04-lts 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
server1.murfettsautoelectrical.com.au
root@server1:~# hostname -f
server1.murfettsautoelectrical.com.au

Then
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?
Thanks
Paul

ralic
14th September 2008, 15:48
My take on this is that the machine you are ssh'ing from cannot be resolved:
tcp6 0 0 server1.murfettsaut:ssh [UNKNOWN]:3221 ESTABLISHED 12951/0
So netstat sends "getnameinfo failed" to the stderr (http://en.wikipedia.org/wiki/Stderr#Standard_error_.28stderr.29) 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 (http://en.wikipedia.org/wiki/Stdout#Standard_output_.28stdout.29) 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.