Re: Getting host names
| From: | Eric Persson | Date: | Wed, 23 Jan 2002 14:09:33 +0000 |
| Subject: | Re: Getting host names | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81685@lists.php.net to get a copy of this message | ||
Malcolm wrote:
>
> Hi
>
> I have a bunch of ip addresses (123.456.789....) whch I need to convert to
> names (domain.com).
>
> What is the quickest way of doing this?
>
> I need to do this regularly.
Use the gethosbyaddr() on every ip. To speed up the dnslookup you might
want to install a local dnscache like www.djbdns.org .
/eric