How to build a public DNS server?

If I build a DNS server in three different locations in the world

  • Does the users will connect automatically to the closer dns server or I need to set something in my records?! Thanks everyone for the help

  • Answer:

    I'll just try to expand Alnitak's answer. As Alnitak mentioned, end-users normally don't connect to your servers, instead users normally connect to their ISP or other public caching/recursive DNS servers (like google 8.8.8.8), which in turn connect to your authoritative servers. Thus user which located say in Russia, but uses US-based recursive servers, for your purposes behaves as if located in US. Usually (I'd assume it's >90%) the aforementioned recursive servers reside close to the users themselves or at least in the same region, but not it is not always so. Now, which of your DNS servers recursive servers will use: It depends on a particular nameserver software implementation (i.e. recursive nameserver, not your authoritative one) At first they will randomly try any server, later they will tend to use the "closest" (by responce time) more often and "distant" less often. As authors of the most widely used nameserver put it: BIND 9 used a simple method of measurement with decay to ensure that the best known server is used to resolve queries. If one server for a domain was 10 ms away and another was 80 ms, BIND 9 would use the 10 ms server most often, but still periodically try the one that was further away All of it have nothing to do with DNS records, and DNS records can not change this process. Bottomline: Users automatically tend to use the closest server somewhat more often than others. In this answer I don't mention http://en.wikipedia.org/wiki/Anycast which really changes the picture, but it's price and complexity is prohibitive for many users.

Noamway at Server Fault Visit the source

Was this solution helpful to you?

Other answers

End users don't (typically) connect to your authoritative servers. Users connect to recursive servers, which may use algorithms based on round-trip-time (RTT) to choose which authoritative servers to talk to in order to resolve your domain.

Alnitak

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.