I have a website which I have hosted on Windows 2008 R2 Dedicated Server.

Now, I have problem is my site taking almost 30 second to connect it through it's domain name any ".asp" pages. All other html and ".js" work fine so I don't think there is any dns issue.

But when I access those same pages with server IP address it opens in a second.

So the problem is opening any "Hello World" ".asp" page through domain name it takes almost 30 second.

Please advise me.

Server: Windows 2008 R2 Xenon DUAL CPU IIS 7

link|improve this question
If you have Server 2008 R2, you have IIS 7.5, not 7 – MDMarra Dec 3 '11 at 20:19
I agree with kubanczyk below: this definitely sounds like a DNS-related slowdown from a reverse lookup somewhere in the chain. Are you logging remote client hostnames to your IIS logs or just IPs? Is the IP address you're coming from to the server something that can be reverse-looked-up? Are the JS and ASP files you're testing with in the same directory? Is the JS file being cached by your browser? – daveadams Dec 4 '11 at 13:56
feedback

3 Answers

Seems like a DNS issue. Try to troubleshoot with:

nslookup your.url.com
nslookup 1.2.3.4     # bare IP address
ping your.url.com    # ping uses a system DNS resolver, so it differs from nslookup

Do this on both the client and the server.

link|improve this answer
feedback

30 seconds is the tipoff - Your workstation has multiple DNS servers configured; the first is not working, and it takes 30 seconds to give up on that one and try the next. Try the troubleshhoting steps above, and also:

nslookup your.url.com 4.2.2.2

(Really type 4.2.2.2, it's a public DNS server)

link|improve this answer
feedback

Try to use Google's public DNS servers (8.8.8.8 and 8.8.4.4) to see if it's a problem with the DNS servers you're currently using.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.