bind9/bin/tests/system/doth
Artem Boldariev babc2749b5 DoH: Extend 'doth' test with a check if dig can detect ALPN failure
This commit extends the 'doth' system test to verify if 'dig' can
detect an properly recover after ALPN negotiation failure when making
a DoH query.
2021-11-26 10:23:17 +02:00
..
ns1 Extend the doth system test with IPv6 support [GL #2861] 2021-08-30 10:21:59 +03:00
ns2 DH-parameters loading support 2021-10-01 15:50:43 +03:00
clean.sh add a max-age test to doth system test 2021-11-05 14:14:59 +02:00
example.axfr.good Parse and print HTTPS and SVCB records 2021-08-18 13:49:48 +10:00
README.curl add a max-age test to doth system test 2021-11-05 14:14:59 +02:00
setup.sh Fix BIND to serve large HTTP responses 2021-06-14 11:37:17 +03:00
stress_http_quota.py Increase the number of file descriptors for stress_http_quota.py 2021-10-20 19:41:25 +00:00
tests.sh DoH: Extend 'doth' test with a check if dig can detect ALPN failure 2021-11-26 10:23:17 +02:00

DoH query values that can be passed on the command line for testing
with curl can be obtained by encoding binary DNS messages into
base64url, with trailing '='s removed.

For example:

$ perl bin/tests/system/fromhex.pl << EOF | base64url
    # Transaction ID
    0001
    # Standard query
    0000
    # Questions: 1, Additional: 0
    0001 0000 0000 0000
    # QNAME: example
    07 6578616d706c65 00
    # Type: SOA
    0006
    Class: IN
    0001
EOF

This produces the string "AAEAAAABAAAAAAAAB2V4YW1wbGUAAAbFrMonAAE=". With
the trailing '=' removed, this can then be passed to curl:

curl "https://<server>/dns-query?dns=AAEAAAABAAAAAAAAB2V4YW1wbGUAAAbFrMonAAE"