Skip to content
miekg edited this page Jan 20, 2013 · 1 revision

Ok. Let's put that same information in a zonefile, by using URI records. The URI record has Priority and a Weight field, so that's easily used. The priotity signals the RR type used in the rdata of the URI, not really needed, but it speeds up the sorting of the records.

We parse the right side of the record and recreate the RRs. Still pondering if the domain name should also be included in the right side. (I think they should).

These elements can even be put in 1 zonefile - it's just a matter of tuning your search.

"normal zone":

www.ntppool.com.  URI 1   100   "IN A 10.0.0.1"                                          

"continent zone":

europe.www.ntppool.com.  URI 1   100 "IN A 10.0.0.1"                                     
north-america.www.ntppool.com.   URI 1   100 "IN A 10.0.0.1"                             

"country zone":

jp.www.ntppool.com.     URI 1   100 "IN A 10.0.0.1"                                      
jp.www.ntppool.com.     URI 1    50 "IN A 10.1.0.1"                                      
www.ntppool.com.        URI 15    5 "IN MX 10 mail.ntppool.com."                         

So in fact this can be put in single zonefile. And I'm also adding the domainname to the right side:

www.ntppool.com.                URI 1   100 "www.ntppool.com. IN A 10.0.0.1"             
europe.www.ntppool.com.         URI 1   100 "www.ntppool.com. IN A 10.0.0.1"             
north-america.www.ntppool.com.  URI 1   100 "www.ntppool.com. IN A 10.0.0.1"             
jp.www.ntppool.com.             URI 1   100 "www.ntppool.com. IN A 10.0.0.1"             
jp.www.ntppool.com.             URI 1    50 "www.ntppool.com. IN A 10.1.0.1"        
www.ntppool.com.                URI 15    5 "ntppool.com. IN MX 10 mail.ntppool.com." 
Clone this wiki locally