]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix: usr: '{&dns}' is as valid as '{?dns}' in a SVCB's dohpath
authorMark Andrews <marka@isc.org>
Tue, 26 Nov 2024 03:40:57 +0000 (03:40 +0000)
committerMark Andrews <marka@isc.org>
Tue, 26 Nov 2024 03:40:57 +0000 (03:40 +0000)
commit8e0ec3fe0ad15ca52fa7ff6ddaeb6e94535655ce
tree4d19b487c3e5d3e55a438df7a210b98c975287af
parent54889fd2af4a795d9fa7dbded6d9741b836cfcfe
parentaf54ef9f5d703ed61c140f3e32e6fab5d88923a1
fix: usr: '{&dns}' is as valid as '{?dns}' in a SVCB's dohpath

`dig` fails to parse a valid (as far as I can tell, and accepted by `kdig` and `Wireshark`) `SVCB` record with a `dohpath` URI template containing a `{&dns}`, like `dohpath=/some/path?key=value{&dns}"`. If the URI template contains a `{?dns}` instead `dig` is happy, but my understanding of rfc9461 and section 1.2. "Levels and Expression Types" of rfc6570 is that `{&dns}` is valid.
See for example section 1.2. "Levels and Expression Types" of rfc6570.

Note that Peter van Dijk suggested that `{dns}` and `{dns,someothervar}` might be valid forms as well, so my patch might be too restrictive, although it's anyone's guess how DoH clients would handle complex templates.

Closes https://gitlab.isc.org/isc-projects/bind9/-/issues/4922

Merge branch 'svcb-dohpath-uri-template' into 'main'

See merge request isc-projects/bind9!9455