Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

My setup:

Dedicated server, Running my own DNS server, Apache 2, A Ruby on Rails App running on Phusion Passenger 2.2.9, using rail's dynamic asset host generator that fetches assets using these subdomains: static1, static2, static3, static4. In my Apache config theres a wildcard for subdomains *.domain.com.

The problem:

If I go to the website after I haven't been on it for while (a few hours) sometimes one or more of the asset subdomains takes really long to load or doesn't load at all. I'm suspecting that my DNS server is not setup correctly and the lookup for one of the subdomains fails or takes really long. I used a few DNS checkers but haven't found any major problems with my DNS setup. This only happens when I visit the website after I haven't been on it for a while, as I start browsing the website everything loads just fine. Right now I switched back to using only 1 asset subdomains (static.domain.com) this seems to work. I'm just curious to know if there's something wrong with my DNS setup or my apache configuration. I can provide other details if needed.

share|improve this question

migrated from stackoverflow.com Jan 21 '10 at 0:44

This question came from our site for professional and enthusiast programmers.

    
Without at least a domain name, how can we possibly tell whether something is wrong with your DNS? –  Greg Hewgill Jan 20 '10 at 18:05
add comment

2 Answers

I did a full dnstrace to your domain name and didn't see any obvious problems with the externally visible configuration. I also tried the twisted4life configuration checker and it didn't turn up any relevant problems either.

share|improve this answer
add comment

My guess (and it is a guess with the level of info available) would be packet loss on your line, this effects DNS lookups particularly badly, and would cause a percentage of DNS lookups to fail.

Do a ping to your DNS providers, any packet loss is bad. If you find a problem there… erm… fix it?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.