zeek/testing/btest/Traces/dns
Klemens Nanni 397f7e5c0e Parse SVCB/HTTPS SvcParams list
Add full support for RFC 9460's SvcParams list.

Amend the existing `dns_svcb_rr` record by a vector of new
`dns_svcb_param` records containing aptly typed SvcParamKey and
SvcParamValue pairs.  Example output:

```
@load base/protocols/dns
event dns_HTTPS( c: connection , msg: dns_msg , ans: dns_answer , https: dns_svcb_rr ) {
	for (_, param in https$svc_params)
		print to_json(param);  # filter uninitialised values
}
```

```
$ dig https cloudflare-ech.com +short | tr [:space:] \\n
1
.
alpn="h3,h2"
ipv4hint=104.18.10.118,104.18.11.118
ech=AEX+DQBBHgAgACBGL2e9TiFwjK/w1Zg9AmRm7mgXHz3PjffP0mTFNMxmDQAEAAEAAQASY2xvdWRmbGFyZS1lY2guY29tAAA=
ipv6hint=2606:4700::6812:a76,2606:4700::6812:b76
```

```
{"key":1,"alpn":["h3","h2"]}
{"key":4,"hint":["104.18.10.118","104.18.11.118"]}
{"key":5,"ech":"AEX+DQBBHgAgACBGL2e9TiFwjK/w1Zg9AmRm7mgXHz3PjffP0mTFNMxmDQAEAAEAAQASY2xvdWRmbGFyZS1lY2guY29tAAA="}
{"key":6,"hint":["2606:4700::6812:a76","2606:4700::6812:b76"]}
```

Values with malformed data or belonging to invalid/reserved keys
are passed raw bytes in network order for script-level inspection.

Follow up to "Initial Support to DNS SVCB/HTTPS RR"
https://github.com/zeek/zeek/pull/1808
2025-09-03 09:53:55 +03:00
..
dns-binds.pcap Add btests for DNS WKS and BINDS 2021-09-01 12:00:50 -05:00
dns-wks.pcap Add btest for DNS WKS RR. 2021-07-14 21:43:36 -05:00
dns_extended_rcode.pcap Fix parsing of EDNS rcode 2025-07-24 14:57:00 +01:00
dynamic-update.pcap Add weird for unhandled opcodes in DNS analyzer 2024-09-04 13:01:24 -07:00
ech.pcap Parse SVCB/HTTPS SvcParams list 2025-09-03 09:53:55 +03:00
hinfo.pcap dns_HINFO_reply event was never being generated. 2021-07-15 09:56:38 -05:00
loc-29-trunc.pcap Support for additional DNS RR Type: LOC[29], SSHFP[44], NSEC3PARAM[51], custom BIND9 signaling[65534] 2020-11-11 13:35:51 -07:00
long-connection.pcap Integrate the Spicy plugin into Zeek proper. 2023-05-16 10:17:45 +02:00
mdns.pcap IPv6 support for detect-external-names and testcase 2025-02-04 17:34:43 +00:00
naptr.pcap DNS: Implement NAPTR RR support 2025-06-24 17:43:27 +02:00
proto255.pcap Integrate the Spicy plugin into Zeek proper. 2023-05-16 10:17:45 +02:00
sshfp-trunc.pcap Support for additional DNS RR Type: LOC[29], SSHFP[44], NSEC3PARAM[51], custom BIND9 signaling[65534] 2020-11-11 13:35:51 -07:00
tkey.pcap Add DNS TKEY event 2024-08-16 10:20:42 -04:00