Re: nslookup function ?

From: Date: Sun, 06 May 2001 09:55:44 +0000
Subject: Re: nslookup function ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-51599@lists.php.net to get a copy of this message
A built in function in PHP (avoids running command line stuff) that does a reverse DNS lookup on an IP address... $host = gethostbyaddr($REMOTE_ADDR); (took me quite a while to find this one) HTH, Tom On Sat, 5 May 2001, Kurth Bemis wrote: > At 04:11 PM 5/4/2001, Matthew Luchak wrote: > > goto zend.com then to the code exchange...then search for kurth bemis...i > wrote a fucntion that does just that. > > ~kurth > > > >I'm working on a email address verification script and need to do a DNS > >lookup given the IP number of a remote host. > >ie: is me@here.net a viable address? > > > >get IP gethostbyname(here.net); > >nslookup IP to get mail server address > >pfsockopen blah...blah..blah... > > > >so........is there a nifty yet undocumented nslookup() function out > >there? > > > >____________________________ > >Matthew Luchak > >Webmaster > >Kaydara Inc. > >mluchak@kaydara.com > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > >For additional commands, e-mail: php-general-help@lists.php.net > >To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#51599) next »