]> git.ipfire.org Git - thirdparty/pdns.git/blob - pdns/root-addresses.hh
Merge pull request #7628 from tcely/patch-3
[thirdparty/pdns.git] / pdns / root-addresses.hh
1 /*
2 * This file is part of PowerDNS or dnsdist.
3 * Copyright -- PowerDNS.COM B.V. and its contributors
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * In addition, for the avoidance of any doubt, permission is granted to
10 * link this program with OpenSSL and to (re)distribute the binaries
11 * produced as the result of such linking.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 */
22 #pragma once
23
24 static const char* const rootIps4[]={"198.41.0.4", // a.root-servers.net.
25 "199.9.14.201", // b.root-servers.net.
26 "192.33.4.12", // c.root-servers.net.
27 "199.7.91.13", // d.root-servers.net.
28 "192.203.230.10", // e.root-servers.net.
29 "192.5.5.241", // f.root-servers.net.
30 "192.112.36.4", // g.root-servers.net.
31 "198.97.190.53", // h.root-servers.net.
32 "192.36.148.17", // i.root-servers.net.
33 "192.58.128.30", // j.root-servers.net.
34 "193.0.14.129", // k.root-servers.net.
35 "199.7.83.42", // l.root-servers.net.
36 "202.12.27.33" // m.root-servers.net.
37 };
38 static size_t const rootIps4Count = sizeof(rootIps4) / sizeof(*rootIps4);
39
40 static const char* const rootIps6[]={"2001:503:ba3e::2:30", // a.root-servers.net.
41 "2001:500:200::b", // b.root-servers.net.
42 "2001:500:2::c", // c.root-servers.net.
43 "2001:500:2d::d", // d.root-servers.net.
44 "2001:500:a8::e", // e.root-servers.net.
45 "2001:500:2f::f", // f.root-servers.net.
46 "2001:500:12::d0d", // g.root-servers.net.
47 "2001:500:1::53", // h.root-servers.net.
48 "2001:7fe::53", // i.root-servers.net.
49 "2001:503:c27::2:30", // j.root-servers.net.
50 "2001:7fd::1", // k.root-servers.net.
51 "2001:500:9f::42", // l.root-servers.net.
52 "2001:dc3::35" // m.root-servers.net.
53 };
54 static size_t const rootIps6Count = sizeof(rootIps6) / sizeof(*rootIps6);