nestat error (getnameinfo failed)


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users nestat error (getnameinfo failed)
# 1  
Old 02-26-2009
nestat error (getnameinfo failed)

[root@a etc]# netstat -a > /test/a
getnameinfo failed
getnameinfo failed
getnameinfo failed
getnameinfo failed
getnameinfo failed

command is working fine (as i get output in file /test/a)

[root@a etc]# dig -x 10.xxx.xxx.xxx
; <<>> DiG 9.3.3rc2 <<>> -x 10.203.xxx.xxx
;; global options: printcmd
;; connection timed out; no servers could be reached


Anyone knows how to resolve this issue?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

ERROR: Copy of CD image failed

Hi I tried to boot as single-user mode on my sunfire t1000 to change my root password since the guy has left the company without give us the root password. anyhow since this machine not have attached with cd/dvd/usb so the only think that to do it through Jumpstart now i tried to... (8 Replies)
Discussion started by: jmishal
8 Replies

2. Solaris

Rpcinfo: can't contact portmapper: RPC: Authentication error; why = Failed (unspecified error)

I have two servers with a fresh install of Solaris 11, and having problems when doing rpcinfo between them. There is no firewall involved, so everything should theoretically be getting through. Does anyone have any ideas? I did a lot of Google searches, and haven't found a working solution yet. ... (2 Replies)
Discussion started by: christr
2 Replies

3. SCO

Recovery error : mit_hdpart0 failed

Hi, I'm a new user of unix sco open server. In my work place i had to recover a sco openserver backup into another PC but when i'm trying to do that i got this error message ::wall: dparm: write ioctl failed: No such device or address Invalid entry mit_hdpart0 failed Fatal Error: A critical... (20 Replies)
Discussion started by: mammut3d
20 Replies

4. Solaris

Cygwin X Server error: xdmcp fatal error session failed session 23 failed for display

Hi, i got the following error when i tried to access the cygwin x server from a windows XP PC. "xdmcp fatal error session failed session 23 failed for display" Alternatively, when i tried to access the same Cygwin X Server from another windows XP PC which is on a different LAN... (3 Replies)
Discussion started by: HarishKumarM
3 Replies

5. Solaris

nestat on server involved in high traffic network

Hi All My Server is doing a very intense netowrk traffic operations and the cards are under very high pressure. I need to call NETSTAT on the shell. Do you know whether this command, under high pressure, might have some impact on the server traffic or can I proceed without any problem? (2 Replies)
Discussion started by: manustone
2 Replies

6. Solaris

nestat performance question

We have sun solaris server v440 and when we do netat -a | wc , it takes more than 5 minutes to complete. Do you think its a network problem or server load issue? (1 Reply)
Discussion started by: mokkan
1 Replies

7. Solaris

Error message : socket failed...

Dear All, I have server with SunOS 5.10 Generic_127111-06 sun4v sparc SUNW,SPARC-Enterprise-T5120, always coming out error message like this : May 25 10:37:26 sshd: fatal: Read from socket failed: Connection reset by peer So what happend with my server..??? Best Regards Bejo :D (2 Replies)
Discussion started by: mbah_jiman
2 Replies

8. UNIX for Dummies Questions & Answers

netstat error(getnameinfo failed)

# netstat -a > /test/a getnameinfo failed getnameinfo failed getnameinfo failed getnameinfo failed getnameinfo failed command is working fine (as i get output in file /test/a) # dig -x 10.xxx.xxx.xxx ; <<>> DiG 9.3.3rc2 <<>> -x 10.203.xxx.xxx ;; global... (4 Replies)
Discussion started by: crackthehit007
4 Replies

9. HP-UX

Compilation failed error

Hi, I have installed automake in one of HP-UX boxes using swinstall command. But when i issue automake it gives the following error message. Can't locate loadable object for module IO in @INC (@INC contains: /usr/local/share/automake-1.10 /usr/local/lib/perl5/5.8.8/PA-RISC2.0... (1 Reply)
Discussion started by: chrisanto_2000
1 Replies

10. Solaris

Reserve Failed error for HD

Hi Guys, Anybody come across this error when formating a harddisk. "Reserved Failed" Supected hardisk failure, is my assumption correct. Thanks (5 Replies)
Discussion started by: bigmoon
5 Replies
Login or Register to Ask a Question
getnameinfo(3XNET)				   X/Open Networking Services Library Functions 				getnameinfo(3XNET)

NAME
getnameinfo - get name information SYNOPSIS
cc [ flag ... ] file ... -lxnet [ library ... ] #include <sys/socket.h> #include <netdb.h> int getnameinfo(const struct sockaddr *restrict sa, socklen_t salen, char *restrict node, socklen_t nodelen, char *restrict service, socklen_t servicelen, unsigned flags); DESCRIPTION
The getnameinfo() function translates a socket address to a node name and service location, all of which are defined as in getad- drinfo(3XNET). The sa argument points to a socket address structure to be translated. If the socket address structure contains an IPv4-mapped IPv6 address or an IPv4-compatible IPv6 address, the implementation extracts the embedded IPv4 address and lookup the node name for that IPv4 address. If the node argument is non-NULL and the nodelen argument is non-zero, then the node argument points to a buffer able to contain up to nodelen characters that receives the node name as a null-terminated string. If the node argument is NULL or the nodelen argument is zero, the node name is not returned. If the node's name cannot be located, the numeric form of the node's address is returned instead of its name. If the service argument is non-NULL and the servicelen argument is non-zero, then the service argument points to a buffer able to contain up to servicelen bytes that receives the service name as a null-terminated string. If the service argument is NULL or the servicelen argu- ment is zero, the service name is not returned. If the service's name cannot be located, the numeric form of the service address (for exam- ple, its port number) is returned instead of its name. The flags argument is a flag that changes the default actions of the function. By default the fully-qualified domain name (FQDN) for the host is returned, but: o If the flag bit NI_NOFQDN is set, only the node name portion of the FQDN is returned for local hosts. o If the flag bit NI_NUMERICHOST is set, the numeric form of the host's address is returned instead of its name, under all circum- stances. o If the flag bit NI_NAMEREQD is set, an error is returned if the host's name cannot be located. o If the flag bit NI_NUMERICSERV is set, the numeric form of the service address is returned (for example, its port number) instead of its name, under all circumstances. o If the flag bit NI_DGRAM is set, this indicates that the service is a datagram service (SOCK_DGRAM). The default behavior assumes that the service is a stream service (SOCK_STREAM). RETURN VALUES
A 0 return value for getnameinfo() indicates successful completion; a non-zero return value indicates failure. The possible values for the failures are listed in the ERRORS section. Upon successful completion, getnameinfo() returns the node and service names, if requested, in the buffers provided. The returned names are always null-terminated strings. ERRORS
The getnameinfo() function will fail if: EAI_AGAIN The name could not be resolved at this time. Future attempts might succeed. EAI_BADFLAGS The flags argument had an invalid value. EAI_FAIL A non-recoverable error occurred. EAI_FAMILY The address family was not recognized or the address length was invalid for the specified family. EAI_MEMORY There was a memory allocation failure. EAI_NONAME The name does not resolve for the supplied parameters. NI_NAMEREQD is set and the host's name cannot be located, or both nodename and servname were NULL. EAI_SYSTEM A system error occurred. The error code can be found in errno. USAGE
If the returned values are to be used as part of any further name resolution (for example, passed to getaddrinfo()), applications should provide buffers large enough to store any result possible on the system. Given the IPv4-mapped IPv6 address "::ffff:1.2.3.4", the implementation performs a lookup as if the socket address structure contains the IPv4 address "1.2.3.4". ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
gai_strerror(3XNET), getaddrinfo(3XNET), getservbyname(3XNET), socket(3XNET), attributes(5), standards(5) NOTES
The IPv6 unspecified address ("::") and the IPv6 loopback address ("::1") are not IPv4-compatible addresses. If the address is the IPv6 unspecified address ("::"), a lookup is not performed, and the EAI_NONAME error is returned. The two NI_NUMERICxxx flags are required to support the -n flag that many commands provide. The NI_DGRAM flag is required for the few AF_INET and AF_INET6 port numbers (for example, [512,514]) that represent different services for UDP and TCP. SunOS 5.10 1 Nov 2003 getnameinfo(3XNET)