Let's say, my domain's nameservers are registered like this:
ns1.domain.com.
ns2.domain.com.
ns3.domain.com.
The physical location for each of the server are as follows:
ns1.domain.com. - in Tokyo
ns2.domain.com. - in San Francisco
ns3.domain.com. - in Europe
- Does DNS lookup queries all nameservers at once?
- When a user access the website, will it query only 1 server, or all of the servers (and accept the response from the one which replies the fastest)? (IF it queries only 1 server, how does it choose?)
- When a user, say, living in California, access the website using a web browser for the first time, which nameserver does it query? Will it somehow know ns2 is the nearest server and will query that server first before the others, or only that server?
- Assume ns1 (located in Tokyo) has the cheapest, slowest and most limited hardware, and this is under heavy load or suffering DoS/DDoS attack, AND ns2 and ns3 are powerful machines and working well. When this situation happens, how will it affect my DNS response for my website?
(I'm using PowerDNS on FreeBSD, but I think this is a more like a generic DNS question irregardless of operating system or DNS software.)