1
0
Fork 0
bind9/bin/tests/system/doth
Daniel Baumann f66ff7eae6
Adding upstream version 1:9.20.9.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 13:32:37 +02:00
..
CA Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00
ns1 Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00
ns2 Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00
ns3 Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00
ns4 Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00
ns5 Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00
conftest.py Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00
dhparam3072.pem Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00
example.axfr.good Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00
example8.axfr.good Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00
get_openssl_version.py Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00
prereq.sh Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00
README.curl Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00
setup.sh Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00
stress_http_quota.py Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00
tests.sh Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00
tests_gnutls.py Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00
tests_sh_doth.py Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00
tests_sslyze.py Adding upstream version 1:9.20.9. 2025-06-21 13:32:37 +02:00

<!--
Copyright (C) Internet Systems Consortium, Inc. ("ISC")

SPDX-License-Identifier: MPL-2.0

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0.  If a copy of the MPL was not distributed with this
file, you can obtain one at https://mozilla.org/MPL/2.0/.

See the COPYRIGHT file distributed with this work for additional
information regarding copyright ownership.
-->

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"