yeah but i assume this assumes you are on a unix machine and have administrator rights. it would be nice to be able to look up ip addresses swiftly and automatically on any machine and any operating system running php. On 03/09/07, Per Jessen <per@xxxxxxxxxxxx> wrote: > Olav Mørkrid wrote: > > > the source of the problem is gethostbyaddr(). it seems to have a 4,5 > > second timeout, so some lookups time out after 4,5 seconds, while most > > of them are resolved in < 0.1 second; a radically performance > > difference. > > You can change the timeout be amending the options statement > in /etc/resolv.conf: > > options timeout: 2 (2 seconds). > > See 'man resolv.conf'. > > > > /Per Jessen, Zürich > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php