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...)
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 – 2015-07-17T10:36:00.113