From 3b9b6d0b8e7f798023c9d109c490449d528fde80 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:59:48 +0200 Subject: Adding upstream version 1:9.18.19. Signed-off-by: Daniel Baumann --- bin/tests/system/doth/README.curl | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 bin/tests/system/doth/README.curl (limited to 'bin/tests/system/doth/README.curl') diff --git a/bin/tests/system/doth/README.curl b/bin/tests/system/doth/README.curl new file mode 100644 index 0000000..475f20f --- /dev/null +++ b/bin/tests/system/doth/README.curl @@ -0,0 +1,38 @@ + + +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:///dns-query?dns=AAEAAAABAAAAAAAAB2V4YW1wbGUAAAbFrMonAAE" -- cgit v1.2.3