on IIS gethostbyaddr take 4 seconds

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

James225
New php-forum User
New php-forum User
Posts: 2
Joined: Tue Sep 03, 2013 1:26 pm

on IIS gethostbyaddr take 4 seconds

Postby James225 » Tue Sep 03, 2013 1:35 pm

Hello

with IIS, I have problem, that if IP address has none reverse dns record, it take 4.5 seconds until php can process it by GetHostByAddr($ip).
If IP has reverse hostname, answer is instant.

I do not understand why, because on another linux shared server I do not have this issue.

What is most curious, I tried that IP address via nslookup with all DNS in my network, and response is instant (response is of course that there is no hostname for that IP).

So question is, where or what is causing this delay? How can I configure php.ini to just ask DNS servers and nothing else?

many thanks

James225
New php-forum User
New php-forum User
Posts: 2
Joined: Tue Sep 03, 2013 1:26 pm

Re: on IIS gethostbyaddr take 4 seconds

Postby James225 » Fri Sep 06, 2013 1:47 pm

It was problem with Windows, not PHP or IIS.

Solution is here:

http://forums.iis.net/t/1201363.aspx


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 1 guest

cron