1

If I have a domain, say example.com at GoDaddy, and a dedicated server, say, 123.123.123.123.

I created 2 records in my named server inside my dedicated machine telling to point ns1.example.com and ns2.example.com to its own IP (123.123.123.123), also the same for example.com.

Now, in GoDaddy I set example.com nameservers to ns1.example.com and ns2.example.com.

The thing is, my dedicated machine knows where to point ns1, ns2 and example.com (to itself), but how the other DNS servers knows that all they point to that IP? Maybe they could ask somewhere where to point example.com and in that server ask for ns1 and ns2, but I don't know how to "spread the word" that example.com, ns1 and ns2 has to point to my IP. Does named do this automatically, spreading it to another DNS servers?

EDIT: A minimal edit. I set up ns1.example.com and ns2.example.com as name servers in GoDaddy, so when a DNS server is asked for example.com, it will look at GoDaddy and know that the name servers are ns1 and ns2, but, how they know that they have to look into GoDaddy? (I think that this is the same question as before...)

0

Your registrar will modify the master record for that top-level domain.

When a DNS query is made for your domain the DNS servers will forward the query upwards until the request eventually reaches a DNS server with cached information or it reaches the master record. Any cached information may be stale, so you need to wait for the TTL to expire before the new information is requested (this is why it takes up to about 72 hours for your changes to be reflected).

See also - DNS: Recursive and caching name server [wikipedia]

  • Still a bit confused on how a query can reach my IP. GoDaddy will modify the master record, but will modify the master record just with another domain name (ns1 and ns2.example.com), not with an IP. How a DNS query can know that ns1.example.com points to my IP if that info is written down in my DNS server in that same IP? – Jorge Fuentes González Jul 17 '15 at 10:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.