Re: gethostbyname

From: Date: Wed, 03 Mar 1999 00:29:42 +0000
Subject: Re: gethostbyname
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-4453@lists.php.net to get a copy of this message
No, but it is libc-5.4.33 =) Timothy On Tue, 02 Mar 1999, you wrote: > On Tue, Mar 02, 1999 at 06:08:40PM -0600, Timothy Whitfield wrote: > > this is interesting: > > > > produced by: > > <?php > > > > $host=gethostbyname("www.yahoo.com"); > > echo $host; > > > > ?> > > > > > > socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 5 > > connect(5, {sin_family=AF_INET, sin_port=htons(53), > > sin_addr=inet_addr("0.0.0.0")}, 16) = 0 > > This is strange. To which value did you set your nameserver in > /etc/resolv.conf? If it is set correctly, your libc wants an upgrade. If the > box is three years old, it must be something in the 5.3.x range. Oh my god :-) > > > send(5, "J \1\0\0\1\0\0\0\0\0\0\3www\5yah"..., 31, 0) = 31 > > select(6, [5], NULL, NULL, {5, 0}) = 1 (in [5], left {5, 0}) > > recvfrom(5, 0xbfffe2b8, 1024, 0, 0xbfffdba8, 0xbfffd998) = -1 ECONNREFUSED (Connection > > refused) > > Beside Linux' recvfrom(2) man page does not list ECONNREFUSED, the error > seems to deferred from send(2), because it cannot send something to 0.0.0.0. > > -- > > Regards, > > Sascha Schumann | > Consultant | finger sas@schell.de > | for PGP public key > > -- > PHP Development Mailing List http://www.php.net/ > To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net > For help: php-dev-help@lists.php.net -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4453) next »