|
It depends a lot on the prior state of the domain. If it was assigned at all, or is being transfered, then is prudent to wait out the TTL of the NS record-set on the parent zone. Here's how it works. When a resolver tries to lookup the IP for my website - www.notesfromthesound.com - it probably has the name-server set for "com" cached, it knows those servers, so I'll skip that step for now, but the same principle applies at that level. So, the resolver queries a com server, and gets a referal; cuan% dig www.notesfromthesound.com @i.gtld-servers.net.
; <<>> DiG 9.6-ESV-R4-P3 <<>> www.notesfromthesound.com @i.gtld-servers.net.
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25366
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 4, ADDITIONAL: 2
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;www.notesfromthesound.com. IN A
;; AUTHORITY SECTION:
notesfromthesound.com. 172800 IN NS ns-593.awsdns-10.net.
notesfromthesound.com. 172800 IN NS ns-431.awsdns-53.com.
notesfromthesound.com. 172800 IN NS ns-1199.awsdns-21.org.
notesfromthesound.com. 172800 IN NS ns-1820.awsdns-35.co.uk.
;; ADDITIONAL SECTION:
ns-593.awsdns-10.net. 172800 IN A 205.251.194.81
ns-431.awsdns-53.com. 172800 IN A 205.251.193.175
Note the TTL on the NS record set; 2 days . This is the TTL for the rrset in the parent zone. That TTL means "Feel free send queries for names within the notesfromthesound.com zone to these nameservers for up to two days".Now, when I query the authoritative nameservers for the child zone, I might get a different TTL value for the same rrset; cuan% dig www.notesfromthesound.com @ns-593.awsdns-10.net.
; <<>> DiG 9.6-ESV-R4-P3 <<>> www.notesfromthesound.com @ns-593.awsdns-10.net.
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29364
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;www.notesfromthesound.com. IN A
;; ANSWER SECTION:
www.notesfromthesound.com. 300 IN A 72.32.231.8
;; AUTHORITY SECTION:
notesfromthesound.com. 7200 IN NS ns-431.awsdns-53.com.
notesfromthesound.com. 7200 IN NS ns-593.awsdns-10.net.
notesfromthesound.com. 7200 IN NS ns-1199.awsdns-21.org.
notesfromthesound.com. 7200 IN NS ns-1820.awsdns-35.co.uk.
Just two hours. But as a resolver, which value do I go with? Some resolvers take the position that the child zone is most authoritative about the operator's intent. That's called "child centric". Some take the position that the parent zone's intent matters more, and we shouldn't be bugging the parent zone nameservers very often because of misconfigured child zones, that's called parent-centric.Data from actual experiments suggests that at least 3% of resolvers are parent-centric; https://mex.icann.org/ar/node/22921 , and as an operator I can confirm that it's regular to see queries coming in for up to 2 days after an upstream delegation change upstream. In fact, you really have to wait out the higher of the two relevant TTLs, or risk queries being black-holed. TLDR; honestly, wait 2 days. |
I was referring more to when registering a domain. To prevent the IPS resolver caching a non existent NS record for negative TTL.