Skip to content

Commit

Permalink
recursor: add 38696 root anchor
Browse files Browse the repository at this point in the history
fetched from https://www.iana.org/dnssec/files after their 2024-07-24 update
  • Loading branch information
Habbie authored and omoerbeek committed Nov 6, 2024
1 parent 33cdb2c commit 0bbbdd6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion pdns/recursordist/settings/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -3336,14 +3336,15 @@
'name' : 'trustanchors',
'section' : 'dnssec',
'type' : LType.ListTrustAnchors,
'default' : '[{name: ., dsrecords: [\'20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d\']}]',
'default' : '[{name: ., dsrecords: [\'20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d\', \'38696 8 2 683d2d0acb8c9b712a1948b27f741219298d0a450d612c483af444a4c0fb2b16\']}]',
'docdefault' : '''
.. code-block:: yaml
- name: .
dsrecords:
- 20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
- 38696 8 2 683d2d0acb8c9b712a1948b27f741219298d0a450d612c483af444a4c0fb2b16
''',
'help' : 'Sequence of trust anchors',
Expand Down
2 changes: 1 addition & 1 deletion pdns/recursordist/test-settings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ BOOST_AUTO_TEST_CASE(test_yaml_ta_merge)
LuaConfigItems lua2;
pdns::settings::rec::fromBridgeStructToLuaConfig(settings, lua2, proxyMapping);
BOOST_CHECK_EQUAL(lua2.dsAnchors.size(), 2U);
BOOST_CHECK_EQUAL(lua2.dsAnchors[DNSName(".")].size(), 1U);
BOOST_CHECK_EQUAL(lua2.dsAnchors[DNSName(".")].size(), 2U);
BOOST_CHECK_EQUAL(lua2.dsAnchors[DNSName("a")].size(), 2U);
}

Expand Down
5 changes: 3 additions & 2 deletions pdns/root-dnssec.hh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <array>
#include <string>

static const std::array<std::string, 1> rootDSs = {
"20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d"
static const std::array<std::string, 2> rootDSs = {
"20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d",
"38696 8 2 683d2d0acb8c9b712a1948b27f741219298d0a450d612c483af444a4c0fb2b16"
};
2 changes: 1 addition & 1 deletion regression-tests.recursor-dnssec/test_TrustAnchors.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class TrustAnchorsEnabledTest(RecursorTest):
def testTrustanchorDotServer(self):
expected = dns.rrset.from_text_list(
'trustanchor.server.', 86400, dns.rdataclass.CH, 'TXT',
['". 20326"', '"powerdns.com. 44030"'])
['". 20326 38696"', '"powerdns.com. 44030"'])
query = dns.message.make_query('trustanchor.server', 'TXT',
dns.rdataclass.CH)
result = self.sendUDPQuery(query)
Expand Down

0 comments on commit 0bbbdd6

Please sign in to comment.