]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Add HEX_EDNSDATA documentation
authortcarpay <8014108+TCY16@users.noreply.github.com>
Tue, 8 Nov 2022 12:05:51 +0000 (13:05 +0100)
committerGitHub <noreply@github.com>
Tue, 8 Nov 2022 12:05:51 +0000 (13:05 +0100)
examples/ldns-testns.c

index f1b9c7228d241c5870df5f64a7e4ffd37297f1f7..689bbd1c934206cd5c5dee1b2ef82ce99581a9d0 100644 (file)
@@ -63,6 +63,9 @@
        <RRs, one per line>
        SECTION ADDITIONAL
        <RRs, one per line>
+       HEX_EDNSDATA_BEGIN
+       <Hex data of an EDNS option>
+       HEX_EDNSDATA_END
        EXTRA_PACKET            ; follow with SECTION, REPLY for more packets.
        HEX_ANSWER_BEGIN        ; follow with hex data
                                ; this replaces any answer packet constructed
@@ -88,6 +91,12 @@ SECTION ANSWER
 www.nlnetlabs.nl.      IN      A       195.169.215.155
 SECTION AUTHORITY
 nlnetlabs.nl.          IN      NS      www.nlnetlabs.nl.
+HEX_EDNSDATA_BEGIN
+00 03 ; NSID
+00 04 ; LENGTH
+4E 53 ; NS
+49 44 ; ID
+HEX_EDNSDATA_END
 ENTRY_END
 
 ENTRY_BEGIN