Re: Bug #13443 Updated: gethostbyname returns the name not the IP addr.

From: Date: Tue, 25 Sep 2001 21:45:29 +0000
Subject: Re: Bug #13443 Updated: gethostbyname returns the name not the IP addr.
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-66608@lists.php.net to get a copy of this message
Kevin Brooks <brooks@netgate.net> wrote: > I completely agree with you. I just think we're talking about 2 different > things. I agree that the php_gethostbyname call should NOT return the > hostname if it fails. My problem is that it is failing for no good > reason, as it seems others have reported. My server is a production 4.1 > BSDI system with perfectly functioning resolver libraries. your example works fine for me. it sounds like you may have some sort of local configuration problem. does gethostbyname() ever work? does it only fail on particular domain names? php's gethostbyname() is a very thin wrapper over the C gethostbyname(), so it seems extremely unlikely that any failure to resolve is going to be in the php code. jim

« previous php.dev (#66608) next »