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 [EMAIL PROTECTED] 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.
> >[EMAIL PROTECTED]
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to