amityweb wrote:
I dont know if this is a silly question or not, I used to think so, until recently...
I have been doing some speed improvements on my website. Usual things like turning cache on, moving sites to one of our Linode servers, then there are some server improvements to make... each step my monitoring system clearly records a faster response. I got it down to 200ms now which is great.
BUT when I changed nameservers to Linode's from my own, there was another speed improvement. I am sure it related to the nameserver change. I may be wrong, but looked like hence this question.
I thought nameservers are just the master record of DNS, so if I go to a domain my ISP knows the IP address and serves it and does not use the nameservers. If thats true then nameservers dont seem to have an effect on speed, and I may have confused the drop with something else.
Just wondered if anyone knew for sure, because if nameservers do affect speed then I'll be moving them all to Linode (or another good one)!
On the client side you have (caching) resolver servers configured in the OS (in /etc/resolv.conf or similar depending on OS), often but not necessarily those servers are provided by the ISP (often autoconfigured via dhcp).
The client just passes all its DNS queries to these servers. These servers, however, do not have any inherent knowledge of the full DNS tree, only the root. Unless they happen to have the results cached they will proceed to traverse the DNS tree to find the requested records.
The results are then cached so that this server can immediately respond to subsequent queries for the same thing (until the cached values expire, based on the TTL of the records).
So yes, for a "first hit" from the group of machines using any particular caching server it will matter slightly.