[dns-operations] FAQ - Where is our pointer of all the root/TLD addresses to build prefix and dampening filters?

Joe Abley jabley at ca.afilias.info
Thu Feb 28 14:34:13 UTC 2008


On 27-Feb-2008, at 11:29, Matthew Pounsett wrote:

> I can think of at least one automated way to keep an up-to-date list  
> that's far more complete than the one linked to ... AXFR the root  
> zone, and build a list from its glue and your local up-to-date hints  
> file.

Assuming we're only talking about IPv4 right now (since the filtering  
practices of IPv6 are not identical):

[calamari:~]% dig @f.root-servers.net . axfr | \
pipe> awk '/IN[[:space:]]*A[[:space:]]/ { print $5; }' | \
pipe> pipe> sort | uniq | wc -l
      991
[calamari:~]%

If we break it down into a list of /24s the list is shorter:

[calamari:~]% dig @f.root-servers.net . axfr | \
pipe> awk '/IN[[:space:]]*A[[:space:]]/ { sub(/\.[0-9]*$/, ".0", $5);  
print $5; }' | \
pipe> pipe> sort | uniq | wc -l
      665
[calamari:~]%

That might be a reasonable approximation to a list of routes to match  
(since many prominent nameservers are numbered in discrete /24s), but  
it's not going to be entirely accurate.

Due to lack of coffee the only way I could think of to get a list of  
prefixes to filter without having to resort to actual programming was  
to abuse route-views using rancid's clogin tool. Since clogin won't  
accept a list of commands to execute from stdin (and since doing each  
command in a separate telnet session seems nasty) I had to use a  
temporary file. Boo.

[calamari:~]% dig @f.root-servers.net . axfr | \
pipe> awk '/IN[[:space:]]*A[[:space:]]/ { print "show ip route",  
$5; }' | \
pipe pipe> sort | uniq >/tmp/nameservers
[calamari:~]%
[calamari:~]% clogin -x /tmp/nameservers route-views.oregon-ix.net | \
pipe> awk '/^Routing/ { sub(/,$/, "", $4); print $4; }' moo2 | sort -n  
| uniq
41.220.0.0/20
57.67.0.0/17
57.73.0.0/17
58.65.255.0/24
61.19.240.0/20
61.220.0.0/16
61.31.0.0/16
61.6.0.0/17
61.72.0.0/13
62.197.32.0/19
62.240.32.0/19
62.4.64.0/19
62.56.216.0/24
62.68.32.0/19
63.208.196.0/24
63.251.128.0/20
63.251.192.0/19
63.251.208.0/20
64.239.0.0/17
64.251.0.0/19
64.62.128.0/18
64.70.0.0/18
64.86.0.0/16
64.90.160.0/19
65.162.184.0/23
65.174.238.0/24
65.208.122.0/23
65.91.143.0/24
66.135.32.0/24
66.139.79.0/24
66.150.176.0/20
66.162.64.0/20
66.197.128.0/17
66.198.41.0/24
66.223.0.0/17
66.235.201.0/24
66.27.32.0/19
66.36.228.0/22
66.92.0.0/15
66.98.64.0/19
67.15.176.0/20
67.15.224.0/20
67.15.32.0/20
69.25.64.0/20
69.46.96.0/20
69.67.96.0/20
69.71.150.0/24
69.72.128.0/17
72.3.128.0/17
75.125.56.0/21
75.126.0.0/16
77.72.72.0/21
77.92.64.0/19
80.168.0.0/16
80.231.195.0/24
80.248.64.0/20
80.48.0.0/13
81.16.224.0/20
81.192.48.0/20
81.224.0.0/12
81.91.160.0/20
81.91.170.0/24
81.91.224.0/20
81.95.224.0/20
82.137.192.0/20
82.151.64.0/19
82.165.0.0/16
82.198.5.0/24
82.199.160.0/19
82.68.0.0/14
83.69.128.0/19
84.88.0.0/16
86.111.192.0/22
86.111.196.0/22
87.117.192.0/18
87.128.0.0/10
87.233.128.0/18
87.247.10.0/23
89.188.32.0/20
89.213.128.0/17
91.198.156.0/24
91.200.16.0/22
92.240.64.0/19
128.10.0.0/16
128.112.0.0/16
128.122.0.0/16
128.139.0.0/16
128.16.0.0/16
128.196.0.0/16
128.214.0.0/16
128.223.0.0/16
128.32.0.0/16
128.39.0.0/16
128.59.0.0/16
128.63.2.0/24
128.8.0.0/16
128.84.0.0/16
128.86.0.0/16
128.9.0.0/16
129.33.160.0/19
130.11.0.0/16
130.118.0.0/16
130.195.0.0/16
130.206.0.0/16
130.208.0.0/16
130.226.0.0/16
130.239.0.0/16
130.242.0.0/15
130.59.0.0/16
130.94.0.0/16
132.207.0.0/16
134.159.0.0/19
134.202.0.0/16
136.145.1.0/24
137.158.0.0/16
137.189.0.0/16
137.39.0.0/16
139.91.0.0/16
139.91.250.0/24
141.1.0.0/16
144.120.0.0/16
144.122.95.0/24
144.228.0.0/16
146.230.0.0/16
146.231.0.0/16
146.48.0.0/16
147.28.0.0/16
147.91.0.0/17
148.59.0.0/16
149.156.0.0/16
150.100.0.0/16
150.185.128.0/18
150.188.0.0/16
151.1.0.0/16
154.32.0.0/16
156.106.0.0/16
156.154.72.0/24
156.154.96.0/24
157.100.1.0/24
157.253.0.0/16
158.36.0.0/14
158.64.128.0/17
159.148.0.0/16
160.96.0.0/16
161.132.0.0/16
161.142.128.0/17
161.252.0.0/16
161.53.0.0/16
161.64.0.0/16
163.178.0.0/16
163.28.0.0/16
164.73.0.0/16
165.65.0.0/16
165.98.1.0/24
166.114.0.0/17
168.123.0.0/16
168.167.0.0/16
168.234.68.0/24
168.243.240.0/20
168.77.0.0/16
169.158.0.0/16
190.80.0.0/20
192.0.32.0/20
192.100.224.0/24
192.100.59.0/24
192.108.130.0/24
192.111.39.0/24
192.112.36.0/24
192.12.94.0/24
192.124.42.0/24
192.134.0.0/22
192.149.62.0/24
192.149.63.0/24
192.149.64.0/24
192.162.16.0/24
192.189.54.0/24
192.203.230.0/24
192.215.101.0/24
192.228.128.0/17
192.228.25.0/24
192.228.27.0/24
192.228.28.0/24
192.228.30.0/24
192.228.79.0/24
192.228.89.0/24
192.228.90.0/24
192.228.91.0/24
192.248.0.0/17
192.26.92.0/24
192.31.80.0/24
192.33.14.0/24
192.33.4.0/24
192.35.51.0/24
192.35.82.0/24
192.36.125.0/24
192.36.133.0/24
192.36.135.0/24
192.36.144.0/24
192.36.148.0/24
192.38.7.0/24
192.41.162.0/24
192.42.93.0/24
192.43.172.0/24
192.48.79.0/24
192.5.5.0/24
192.5.6.0/24
192.50.43.0/24
192.52.178.0/24
192.54.112.0/24
192.55.83.0/24
192.58.128.0/24
192.65.184.0/21
192.71.53.0/24
192.76.243.0/24
192.83.166.0/23
192.92.125.0/24
192.92.129.0/24
192.93.0.0/24
193.0.0.0/21
193.0.12.0/23
193.0.14.0/24
193.1.0.0/16
193.10.252.0/24
193.109.126.0/24
193.111.10.0/23
193.124.0.0/15
193.124.83.0/24
193.136.0.0/15
193.140.0.0/16
193.163.102.0/24
193.166.0.0/15
193.170.0.0/15
193.176.144.0/24
193.188.124.0/24
193.188.128.0/24
193.188.32.0/21
193.188.40.0/21
193.188.64.0/19
193.188.97.0/24
193.190.0.0/15
193.193.192.0/19
193.194.176.0/20
193.194.64.0/24
193.194.81.0/24
193.2.0.0/16
193.201.40.0/24
193.204.0.0/15
193.206.0.0/16
193.218.114.0/24
193.219.192.0/18
193.219.32.0/21
193.220.20.0/24
193.227.1.0/24
193.230.0.0/17
193.232.128.0/24
193.232.248.0/22
193.232.92.0/24
193.233.0.0/16
193.239.148.0/24
193.239.149.0/24
193.251.128.0/19
193.251.143.0/24
193.251.160.0/24
193.251.228.0/24
193.29.206.0/24
193.4.58.0/23
193.40.0.0/16
193.43.128.0/22
193.43.2.0/23
193.48.0.0/14
193.50.0.0/16
193.59.0.0/16
193.6.0.0/16
193.60.0.0/14
193.68.3.0/24
193.71.0.0/16
193.95.64.0/20
194.0.0.0/24
194.0.1.0/24
194.109.0.0/16
194.112.0.0/20
194.117.56.0/24
194.117.57.0/24
194.117.58.0/24
194.117.59.0/24
194.117.60.0/24
194.117.61.0/24
194.119.192.0/19
194.126.96.0/19
194.133.122.0/24
194.143.192.0/19
194.146.105.0/24
194.146.106.0/24
194.149.128.0/19
194.158.64.0/22
194.171.0.0/16
194.176.32.0/22
194.177.208.0/22
194.177.224.0/19
194.183.64.0/19
194.204.0.0/19
194.225.70.0/24
194.226.128.0/24
194.226.96.0/24
194.246.96.0/24
194.29.224.0/19
194.42.0.0/19
194.42.48.0/24
194.51.0.0/16
194.57.0.0/16
194.6.225.0/24
194.63.248.0/21
194.69.254.0/24
194.80.0.0/14
194.85.105.0/24
194.85.252.0/24
194.87.0.0/16
195.12.128.0/19
195.13.0.0/19
195.130.32.0/19
195.130.64.0/18
195.152.0.0/15
195.158.0.0/19
195.178.160.0/19
195.178.32.0/19
195.187.128.0/17
195.20.32.0/24
195.22.139.0/24
195.225.0.0/19
195.226.128.0/24
195.229.0.0/19
195.24.192.0/20
195.243.0.0/16
195.248.193.0/24
195.250.64.0/24
195.250.96.0/22
195.253.0.0/16
195.38.160.0/19
195.41.0.0/16
195.47.235.0/24
195.47.253.0/24
195.66.160.0/19
195.66.224.0/19
195.7.64.0/19
195.70.32.0/19
195.78.0.0/19
195.94.0.0/24
196.1.4.0/24
196.1.69.0/24
196.1.92.0/22
196.192.32.0/20
196.192.42.0/24
196.2.1.0/24
196.2.12.0/24
196.2.8.0/24
196.200.96.0/21
196.29.160.0/19
196.3.191.0/24
196.3.64.0/24
196.3.96.0/21
196.32.200.0/21
196.4.160.0/24
196.45.188.0/24
196.45.190.0/24
196.46.192.0/21
196.7.0.0/16
198.116.0.0/14
198.133.199.0/24
198.173.5.0/24
198.32.126.0/23
198.32.4.0/24
198.32.67.0/24
198.32.71.0/24
198.41.0.0/24
198.6.0.0/16
198.73.186.0/24
198.93.176.0/21
199.172.192.0/18
199.19.53.0/24
199.19.54.0/24
199.19.56.0/24
199.19.57.0/24
199.202.32.0/19
199.252.143.0/24
199.252.154.0/24
199.252.155.0/24
199.252.162.0/24
199.252.180.0/24
199.7.49.0/24
199.7.64.0/24
199.7.66.0/24
199.7.67.0/24
199.7.77.0/24
199.7.83.0/24
200.1.120.0/22
200.1.121.0/24
200.1.156.0/22
200.1.6.0/24
200.10.202.0/24
200.10.228.0/22
200.105.231.0/24
200.16.97.0/24
200.16.98.0/24
200.160.0.0/20
200.189.40.0/24
200.192.232.0/24
200.219.154.0/24
200.229.248.0/24
200.23.1.0/24
200.23.179.0/24
200.26.192.0/20
200.26.226.0/24
200.30.144.0/24
200.31.69.0/24
200.33.111.0/24
200.35.160.0/20
200.50.92.0/24
200.57.32.0/20
200.6.84.0/24
200.62.64.0/19
200.85.160.0/24
200.9.115.0/24
200.9.187.0/24
200.9.190.0/24
200.9.74.0/24
202.1.169.0/24
202.1.192.0/20
202.11.16.0/23
202.112.0.0/24
202.12.27.0/24
202.12.28.0/24
202.12.29.0/24
202.12.30.0/24
202.12.74.0/24
202.124.166.0/24
202.125.44.0/24
202.128.0.0/19
202.131.0.0/24
202.131.224.0/24
202.144.128.0/20
202.153.112.0/20
202.154.0.0/22
202.155.30.0/23
202.159.32.0/21
202.160.8.0/21
202.165.192.0/20
202.169.96.0/24
202.181.96.0/20
202.232.0.0/16
202.27.156.0/22
202.28.0.0/24
202.28.1.0/24
202.3.224.0/23
202.30.124.0/24
202.30.50.0/23
202.31.190.0/24
202.45.176.0/20
202.46.190.0/24
202.46.191.0/24
202.52.255.0/24
202.65.32.0/20
202.72.100.0/24
202.72.107.0/24
202.80.32.0/24
202.87.129.0/24
203.111.102.0/24
203.112.194.0/24
203.116.1.0/24
203.119.1.0/24
203.119.12.0/24
203.119.2.0/24
203.119.25.0/24
203.119.26.0/24
203.119.27.0/24
203.119.28.0/24
203.119.29.0/24
203.119.38.0/23
203.12.249.0/24
203.143.0.0/18
203.143.14.0/24
203.144.64.0/19
203.162.48.0/20
203.162.80.0/20
203.189.128.0/24
203.223.32.0/20
203.248.128.0/17
203.29.5.0/24
203.48.0.0/14
203.73.0.0/19
203.81.64.0/19
203.83.159.0/24
203.94.64.0/18
203.97.0.0/17
203.98.224.0/23
204.123.0.0/16
204.13.249.0/24
204.13.250.0/24
204.13.251.0/24
204.152.184.0/21
204.59.0.0/16
204.59.1.0/24
204.59.152.0/21
204.59.64.208/28
204.61.216.0/23
204.70.0.0/15
204.74.112.0/24
204.74.113.0/24
204.95.160.0/19
205.161.188.0/22
205.166.226.0/24
205.244.148.0/22
206.14.210.0/24
206.14.214.152/29
206.220.228.0/22
206.228.0.0/14
206.48.2.0/23
206.49.89.0/24
206.51.224.0/21
206.53.176.0/20
206.65.160.0/19
206.82.130.0/24
207.132.64.0/18
207.228.128.0/18
207.248.64.0/24
207.36.224.0/19
208.0.224.0/24
208.48.64.0/18
208.70.72.0/21
208.75.80.0/21
208.77.188.0/22
208.78.68.0/22
208.78.70.0/24
209.173.53.0/24
209.173.57.0/24
209.173.58.0/24
209.173.60.0/24
209.27.64.0/18
209.45.0.0/17
209.58.24.0/24
209.59.119.0/24
209.68.0.0/18
209.88.128.0/21
209.97.192.0/19
210.138.0.0/16
210.17.0.0/17
210.201.128.0/18
210.81.0.0/16
211.29.128.0/19
211.79.192.0/20
212.100.224.0/19
212.121.40.0/24
212.124.160.0/19
212.17.32.0/19
212.181.0.0/16
212.217.0.0/19
212.26.18.0/24
212.60.64.0/19
212.72.0.0/19
212.72.130.0/24
212.77.0.0/19
212.77.192.0/19
212.80.175.0/24
212.85.220.0/24
212.85.64.0/19
212.88.64.0/19
212.88.96.0/19
213.130.32.0/19
213.136.104.0/21
213.136.96.0/21
213.139.248.0/21
213.146.128.0/19
213.154.224.0/19
213.154.64.0/19
213.16.1.0/24
213.16.30.0/24
213.172.160.0/19
213.188.160.0/24
213.188.164.0/24
213.193.128.0/18
213.218.112.0/20
213.219.0.0/18
213.228.227.0/24
213.244.64.0/19
213.246.128.0/18
213.248.128.0/18
213.248.254.0/24
213.42.0.0/22
213.55.64.0/23
213.86.0.0/16
216.104.202.0/24
216.113.0.0/17
216.117.128.0/18
216.152.192.0/20
216.184.96.0/22
216.218.128.0/17
216.220.32.0/20
216.55.155.0/24
216.64.160.0/20
217.12.81.0/24
217.147.80.0/20
217.160.0.0/16
217.17.32.0/20
217.199.160.0/19
217.23.160.0/20
217.26.144.0/20
217.29.72.0/21
217.31.204.0/22
217.64.96.0/20
217.68.240.0/20
217.77.64.0/20
217.79.164.0/23
218.38.0.0/15
220.229.224.0/19
[calamari:~]%


Joe



More information about the dns-operations mailing list