1
So I have a server at Amazon EC2 running apache2.2 on Linux. I have several "VirtualHosts" running different domains. I am able to access each of the individual sites. My problem, at least I think, is their DNS's aren't being resolved correctly, meaning it takes forever for the site(s) to be found. Once they are located the site(s) perform as expected, but If I were to wait a few minutes and try to retrieve the site once more, it again takes a long time (20+secs) to resolve. This is for production, and not a local development. Note: If I go to to my servers elastic IP (54.245.114.102) my default site loads instantly.
Route 53
NAME: tylerrafferty.com.
TYPE: A
VALUE: 54.245.114.102 - 10.252.55.103
TTL: 60
NAME: tylerrafferty.com.
TYPE: MX
VALUE: 0 smtp.secureserver.net - 10 mailstore1.secureserver.net
TTL: 7200
NAME: tylerrafferty.com.
TYPE: NS
VALUE: ns-1043.awsdns-02.org. - ns-1709.awsdns-21.co.uk. - ns-328.awsdns-41.com. - ns-909.awsdns-49.net.
TTL: 7200
NAME: tylerrafferty.com.
TYPE: SOA
VALUE: ns-1043.awsdns-02.org. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400
TTL: 7200
NAME: www.tylerrafferty.com.
TYPE: A
VALUE: 54.245.114.102 - 10.252.55.103
TTL: 7200
2There's a disconnect between your perception of a problem and your proposed path to correcting it. A delay in resolving a DNS entity in this scenario occurs somewhere between a client computer, the caching DNS server it points to, and the authoritative DNS server that contains the answer. Nowhere along that path does
httpd
get involved, as your virtualhosts are not trying to resolve anything. I recommend focusing on the actual problem you see (i.e. show us the DNS query failing). – Andrew B – 2013-07-03T15:41:11.690None of those hostnames appear to exist in the DNS. – Michael Hampton – 2013-07-03T17:10:10.140
@Michael Pardon? I can resolve all of them just fine. That did leave to discovering the actual problem though... – Andrew B – 2013-07-03T17:42:36.577
@AndrewB You see A or AAAA records for them? All I get is NOERROR... – Michael Hampton – 2013-07-03T17:43:58.627
@Michael I can, and
+trace
works, but something is jacked on these DNS servers. I've elaborated within the answer. – Andrew B – 2013-07-03T18:04:13.077I have corrected my question. Please review it and help remove the negative downvotes. Thank you to all for the insightful tips and Andrew B for the solution. – None – 2013-07-03T23:03:20.377