The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> System Administration
> DNS
|
DNS doesnt resolve on first try?
Discuss DNS doesnt resolve on first try? in the DNS forum on Dev Shed. DNS doesnt resolve on first try? DNS forum discussing issues, servers, and configurations. The Domain Name System (DNS) is what the Internet uses to translate website names into IP addresses.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

January 7th, 2013, 05:25 AM
|
 |
Contributing User
|
|
|
|
|
DNS doesnt resolve on first try?
I have lately moved some of my sites to a new host. (3 weeks ago) However, my network seems to have trouble resolving the domains I think.
Whenever I visit one of the websites after rebooting my pc, it will not load, until i refresh the page. The same goes for FTP, which wont connect only until the second try. I'm using the IP of the server for FTP.
Whenever I connected to it once, it will work for the entire time the computer is on.
What could be causing this?
One of the sites is: http://wordfeudoppc.nl.
I'm also curious if im the only one, and if its not a server-side problem.
It also happens on other computers on the network, and on my phone connected to the wifi. I have also tried on my mobile network, but I cant be sure, since i just tried with the wifi 
Last edited by Rhytz : January 7th, 2013 at 05:27 AM.
|

January 7th, 2013, 11:15 AM
|
|
|
|
What you are experiencing is a DNS timeout. It failed to get the answer on the first attempt in time, but by the time you refreshed it had the answer. After that the answer was in cache.
The problem is not necessarily with the authoritative name servers, but with the DNS servers your computer is using to get the answer. The only solution is to use different DNS servers that will respond more quickly (eg. opendns).
J.A. Coutts
|

January 8th, 2013, 04:15 AM
|
 |
Contributing User
|
|
|
|
I am already using OpenDNS  How come the IP doesnt resolve either in the FTP?
Do you encounter the same problem when visiting the website?
|

January 8th, 2013, 11:01 AM
|
|
|
Quote: | Originally Posted by Rhytz I am already using OpenDNS  How come the IP doesnt resolve either in the FTP?
Do you encounter the same problem when visiting the website? |
It does not matter which program you use, it all requires client DNS resolution. When I tested your domain, it resolved almost immediately. That meant that the DNS servers I am using (Telus) already had the domain in cache, and did not need to use Recursion to obtain it from the authoritative server. The OpenDNS servers do not have a very long Time To Live (TTL), so they are dropped from cache quite quickly. Although your domain resolved quickly, I do experience the same thing occasionally on other domains. If you can find DNS servers that are close (your own ISP) and responsive, they are usually the best. I used a program called "dnstester" to find the best servers for me. Google also provides public DNS servers, but again they can have a long transit time, depending on your location. Do not use more than two. On a bad lookup, it has to time out on all servers, and that could take a long time if you have several configured.
J.A. Coutts
|

January 24th, 2013, 09:15 AM
|
|
Registered User
|
|
Join Date: Jun 2012
Location: Brooklyn, NYC
Posts: 24
Time spent in forums: 4 h 52 sec
Reputation Power: 0
|
|
|
Most likely It's not a server-side issue if you connect via FTP with direct IP. Try to install sniffer (ex. Fiddler) and look through the log of your connections. Also check your firewall.
|

January 24th, 2013, 09:17 AM
|
 |
Contributing User
|
|
|
|
Thanks for the answers
It seems the problem has resolved itself by now.
__________________
Post to Facebook using a Nokia 3310
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|