2
votes

I have someone telling me that DNS servers only start responding after the whois record is updated to point at their DNS servers. Is this normal behaviour? Or should a DNS server respond before the whois record is updated?

Also, once the domain is active, (so either after the domain is added or after the whois record is update, depending on the answer to the above question) how long till the name servers should start responding?

I'm not referring to the time that it takes to propagate acorss the internet, but just the time on the name server for the domain. I am also not concerned with when the rest of the internet sees the change, only wondering when that DNS server should respond when using a command such as:

 nslookup www.example.com ns1.dnsserver.com
2
This isn't a programming question, unfortunately. But IT stackoverflow is supposed to be coming soon, right?derobert
Well, it kinda of programming related because it's important for deploying a site to know this kind of information, example: stackoverflow.com/questions/314645/best-dns-hostingDarryl Hein
Website administration (including deployment) isn't programming-related... that question about best DNS hosting should have been closed.David Z
There are 105+ questions related to DNS, why are they not all closed? stackoverflow.com/questions/tagged/dnsDarryl Hein
Because most of them are about things like the API to query DNS, gethostbyname() and similar - which is programming.David Z

2 Answers

3
votes

For the DNS servers to be found what you call the whois record must know where to find them.
Stricly speaking, the whois record contains much more than just the DNS servers for a domain, but let's not nitpick.

Say your DesktopA needs to connect to example.com, the following servers will be contacted, assuming the answer wasn't already cached by your ISP's DNS or the local machine.

  • DesktopA has DNS settings pointing to the ISP, so DektopA will ask the ISP's DNS servers if they know where example.com. is located (its IP).

  • ISP DNS server doesn't know, so it will contact the root domain database for com. (all Fully Qualified Domain Names end in a ., even though we generally don't use it explicitly, but you can try insert it in web requests, it should work fine).
    This bootstrap list of global root servers is usually updated by the OS regularly.
    The root servers will know which Top Level Domain TLD server to contact for each global domain such as .com, .org, .uk, etc.
    In our example, the ISP will ask the root which server to query for com domains.
    The root server answers with the IP address of one of the the .COM TLD servers.

  • The ISP DNS server will now contact the .COM TLD server and ask it where to find EXAMPLE.
    The .COM database record for example.com will contain the 2 (or more) DNS servers registered along with the domain name example.com. These are part of your whois record.

  • The ISP now has the IP addresses of the DNS servers for example.com as setup in the whois. It will query the first one (or the second one if the first isn't available) and ask it: what's the IP of 'example.com'?

  • The DNS server for example.com will look in its records and return the A record defined for the example.com domain as IP 1.2.3.4 for instance.

  • Your ISP's DNS server will cache this information for a predetermined amount of time (TTL) and return the IP 1.2.3.4 to DesktopA.

  • Desktop A can now contact the server for example.com directly by its IP.
    DesktopA may cache this information for a little while for fast lookup.

Tis would be the same for subdomains such as www.example.com or john.people.example.com. Everything before the domain example.com must be declared in your DNS server so when someone query for their address, your DNS server for example.com can look up the definitions and answer them (it could very well pass them on to another server as well if necessary).

In conclusion

So, to go back to your question, your whois record must be set with the proper DNS records for your domain before anyone can access them using that domain name.

2
votes

DNS Servers operate completely separate from the Whois server. The relation of how fast DNS is updated after Whois depends completely on the registrar. A registrar or web host may update DNS within a second or 2 of a customer making a change in the control panel, or it may take minutes or hours if they make updates in batch mode.

Ideally all DNS changes that a customer request should happen very quickly on the DNS server (within a few seconds), but as you note, there may be a delay until changes propagate across the internet.