Re: gethostbyname

From: Date: Wed, 03 Mar 1999 00:00:08 +0000
Subject: Re: gethostbyname
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-4448@lists.php.net to get a copy of this message
On Tue, 02 Mar 1999, you wrote: > On Tue, Mar 02, 1999 at 05:50:02PM -0600, Timothy Whitfield wrote: > > > > > > main(int argc, char **argv) { printf("looking up %s - result: %s\n", > > > argv[1], > > > gethostbyname(argv[1]) ? "ok" : "bad"); } > > > > This works with all names even ones not in the hosts file. > > Now I am really confused. > > Argh. Did you link another resolver to php3? Like "-L/usr/local/bind/lib > -lresolv" or sth like that. No but I am going to compare the hostent structs and if I can't find something there I am going to strace on a small php program and sift through it all. Timothy -- 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 (#4448) next »