3 ms·
I will grant that a hosts file or a local DNS server is faster than a 3rd-party DNS, assuming I have the site in my cache already. But if I visit a new site, I'
by sp332 14y ago
I will grant that a hosts file or a local DNS server is faster than a 3rd-party DNS, assuming I have the site in my cache already. But if I visit a new site, I'm going to have to look it up somewhere, and the DNS server that my local DNS server contacts could have the exact same cache poisoning problem.
- udpheaders 14y agoNope. (Granted, this is possible if the domain name resgitrant designates an open resolver as authoritative but almost no one does that. The reasons should be obvious.) How much time have you devoted to learning how DNS works?
- sp332 14y agoNot much. My main question is: how is the DNS server that my DNS server asks for an address, different from the DNS server that my DNS client asks for an address?
- udpheaders 14y agoThe one your client queries can both answer requests and forward them to other servers.[1] The one your caching server queries can only answer queries. That's an oversimplification because people use some ridiculously convoluted DNS configurations and these features can be mixed and matched in any server (e.g BIND), but hopefully it answers your question, if I understand it correctly. 1. But you could just as easily only query servers of the second type (ones that only answer queries, often called "authoritative" servers). I have written programs to do this as it is very fast and IME more reliable than using resolvers.