Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

on IIS gethostbyaddr take 4 seconds

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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
James225
New php-forum User
New php-forum User
 
Posts: 2
Joined: Tue Sep 03, 2013 1:26 pm


Return to PHP coding => General

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.