I currently host a TinyDNS server that serves DNS requests for all domains with nameservers that point to the server. The data configuration file is:
.
+*:1.2.3.4
with 1.2.3.4 being the IP of the server. It's intended to be a wildcard DNS server (any nameserver that points to this server will return A records that point to itself).
However, DNS lookups have been really slow for these domains when attempting to access the website on the domain and I have been experiencing this on different devices and networks (sometimes up to 10 seconds). Are the DNS records that are propagating from my DNS server somehow malformed? Here is an example domain: http://trp.do/s/
EDIT:
I know it's a DNS issue and not a website issue by inserting various headers with timestamps at different points within the request and response stack. They are within ms whereas the actual request from start to finish is around 5-10 seconds. When using Google Chrome, it appears to be stuck on "Resolving Host" on the bottom left as well. I've dug deeper and used Rack-Mini-Profiler @ https://github.com/MiniProfiler/rack-mini-profiler to profile the requests and listed Domain Lookup in the range of 5-10 seconds as well. So that's why I'm fairly confident it's a DNS issue and not a website performance issue.
Addressing the concerns of the single point of failure, I'm aware of it but don't think it should be affecting performance on a consistent level.
My burning question is... can a malformed DNS record even cause a situation like this?
trp.dodomain has been delegated elsewhere now (ns{1,2,3,4}.linode.com)? What I wonder is if tinydns deals properly with EDNS0 queries. From what I know tinydns is pretty outdated (last release in 2001, but with some third party patches available) so I don't really know what the expectations should be? If it fails to understand the initial queries, maybe that could lead to some strange issues? – Håkan Lindqvist Sep 30 '14 at 06:07NSrecords for that domain name. From the response it looks like you actually have a root zone (.) set up rather than a zone by the name you mentioned. (That empty response includes. 2560 IN SOA ns. hostmaster. 1411742341 16384 2048 1048576 2560) – Håkan Lindqvist Oct 01 '14 at 17:24example.com NSthey will from then on know for a fact that there are noNSrecords, which seems like a potentially very bad thing for subsequent queries. – Håkan Lindqvist Oct 12 '14 at 09:39