diff --git a/test/pdns/pdns.conf b/test/pdns/pdns.conf index ebe41ead..2449edf5 100644 --- a/test/pdns/pdns.conf +++ b/test/pdns/pdns.conf @@ -9,7 +9,6 @@ # Local DNS address and port local-address=127.0.0.1:5554 -local-ipv6= # Do not enforce TCP for ANY queries any-to-tcp=false @@ -19,3 +18,6 @@ launch=gsqlite3 # Database location gsqlite3-database=/var/lib/powerdns/pdns.sqlite3 + +# Used when creating a new zone +default-soa-content=ns1.@ hostmaster.@ 0 10800 3600 604800 3600 diff --git a/test/pdns/setup.sh b/test/pdns/setup.sh index 5a0bcf75..a5832674 100644 --- a/test/pdns/setup.sh +++ b/test/pdns/setup.sh @@ -101,7 +101,7 @@ fi # HTTPS if ! pdnsutil add-record ftl. https HTTPS '1 . alpn="h3,h2"'; then # comment above applies - pdnsutil add-record ftl. https TYPE65 "\# 15 000100000100080322683303683222" + pdnsutil add-record ftl. https TYPE65 "\# 13 00010000010006026833026832" fi # Create reverse lookup zone diff --git a/test/test_suite.bats b/test/test_suite.bats index 6a5a9d04..dff4f6ec 100644 --- a/test/test_suite.bats +++ b/test/test_suite.bats @@ -317,7 +317,7 @@ @test "Local DNS test: SOA ftl" { run bash -c "dig SOA ftl @127.0.0.1 +short" printf "%s\n" "${lines[@]}" - [[ ${lines[0]} == "ns1.ftl. hostmaster.ftl. 1 10800 3600 604800 3600" ]] + [[ ${lines[0]} == "ns1.ftl. hostmaster.ftl. 0 10800 3600 604800 3600" ]] [[ ${lines[1]} == "" ]] } @@ -366,7 +366,7 @@ @test "Local DNS test: HTTPS https.ftl" { run bash -c "dig +unknown TYPE65 https.ftl @127.0.0.1 +short" printf "%s\n" "${lines[@]}" - [[ ${lines[0]} == '\# 15 000100000100080322683303683222' ]] + [[ ${lines[0]} == '\# 13 00010000010006026833026832' ]] [[ ${lines[1]} == "" ]] }