It looks like a dns problem. getnameinfo translates a socket address to a host nodename.
The standards describe it:
There other possible errors, mostly on the system making the call.
try nslookup for some external ip address. if dns is down it will fail, too.
Hi all,
recently on my Sun Solaris 8 server this error message appeared:$ netstat -i
> ip open: Permission denied
> can't open mib stream: Bad file number
>
The server was rebooted recently and this error has only popped up since then. Any ideas? (2 Replies)
Hi All,
I am trying to run sqlplus on my AIX 5L box but following errors are thrown:
$ sqlplus
exec(): 0509-036 Cannot load program sqlplus because of the following errors:
0509-130 Symbol resolution failed for /usr/lib/libc.a because:
0509-136 Symbol kaio_rdwr64 (number 0)... (5 Replies)
Hi All,
Please check the below ftp related job, which is deleting the files from remote host. Problem is it is not capturing the ftp failure error, and the exit status is still '0' eventhough the deletable files are not present in remote location OR ftp credential are incorrect.
... (5 Replies)
Hi Guys,
Anybody come across this error when formating a harddisk. "Reserved Failed"
Supected hardisk failure, is my assumption correct.
Thanks (5 Replies)
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)
Hi,
When i type netstat command as normal user it shows following error
$ netstat
arp open: Permission denied
can't open mib stream
I can execute the command as root user..
Pls reply at the earliest (1 Reply)
Dear experts,
I am seeing a lot of TCP failed connection attempts from "netstat -s" on one of our servers.
How can I pin point what connection failed and what are the ports involved?
Any tools/commands I can dig in deeper to diag. what went wrong on these "failed connection attempts"?
... (2 Replies)
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)
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
LEARN ABOUT DEBIAN
socket::getaddrinfo::strict
Socket::GetAddrInfo::Strict(3pm) User Contributed Perl Documentation Socket::GetAddrInfo::Strict(3pm)NAME
"Socket::GetAddrInfo::Strict" - Provide Socket::GetAddrInfo functions which throw exceptions
SYNOPSIS
use Socket qw( SOCK_STREAM );
use Socket::GetAddrInfo::Strict qw( getaddrinfo getnameinfo );
use IO::Socket;
my $sock;
my %hints = ( socktype => SOCK_STREAM );
my @res = getaddrinfo( "www.google.com", "www", \%hints );
while( my $ai = shift @res ) {
$sock = IO::Socket->new();
$sock->socket( $ai->{family}, $ai->{socktype}, $ai->{protocol} ) or
undef $sock, next;
$sock->connect( $ai->{addr} ) or undef $sock, next;
last;
}
if( $sock ) {
my ( $host, $service ) = getnameinfo( $sock->peername );
print "Connected to $host:$service
";
}
DESCRIPTION
Socket::GetAddrInfo provides the functions of "getaddrinfo" and "getnameinfo", which return lists whose first element is error value, or
false indicating no error occured.
This module wraps the functions provided by "Socket::GetAddrInfo" to check this error value, and throw an exception (using "die") if an
error occured. If not, then the remaining values are returned as normal. This can simplify the logic of a program which otherwise simply
throws its own exception on failure anyway.
FUNCTIONS
@res = getaddrinfo( $host, $service, $hints )
After a successful lookup, returns the list of address structures, as documented in Socket::GetAddrInfo. If the lookup fails, an exception
containing the string form of the error is thrown instead.
( $host, $service ) = getnameinfo( $addr, $flags, $xflags )
After a successful lookup, returns the host and service name, as documented in Socket::GetAddrInfo. If the lookup fails, an exception
containing the string form of the error is thrown instead.
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
perl v5.14.2 2012-06-08 Socket::GetAddrInfo::Strict(3pm)