diff options
author | Piotrek Zadroga <piotrek@isc.org> | 2024-02-20 12:08:35 +0100 |
---|---|---|
committer | Piotrek Zadroga <piotrek@isc.org> | 2024-02-23 17:14:06 +0100 |
commit | 1cb50df248a8c4f8479ab3e80d4eabd14abea7a3 (patch) | |
tree | e86b7fd96f53b671a930f489f210c81b10af0864 | |
parent | [#3141] restore delimiter escaping (diff) | |
download | kea-1cb50df248a8c4f8479ab3e80d4eabd14abea7a3.tar.xz kea-1cb50df248a8c4f8479ab3e80d4eabd14abea7a3.zip |
[#3141] json examples update
-rw-r--r-- | doc/examples/kea4/all-options.json | 18 | ||||
-rw-r--r-- | doc/examples/kea6/all-options.json | 17 |
2 files changed, 24 insertions, 11 deletions
diff --git a/doc/examples/kea4/all-options.json b/doc/examples/kea4/all-options.json index 19694023d8..00cbbdbfdf 100644 --- a/doc/examples/kea4/all-options.json +++ b/doc/examples/kea4/all-options.json @@ -1635,14 +1635,22 @@ Note that "Addr Length", "IPv4 Address(es)", and "Service Parameters (SvcParams)" fields are not present if the ADN-only mode is used. */ - // Type: uint16, uint16, uint8, FQDN, binary + // Type: internal { - // Only one DNR instance ADN only mode - IP address(es) and SvcParams are missing on purpose. - // For more detailed example with IP addresses and SvcParams included, please check dnr.json example. + // DNR option may be configured using convenient notation. DNR Instances must be delimited with pipe "|" char. + // For each DNR Instance comma delimited fields must be provided: + // - service priority (mandatory), + // - ADN (mandatory), + // - IP address/es (optional - if more than one - they must be space-separated) + // - SvcParams (optional - if more than one - they must be space-separated; + // to provide more than one alpn-id separate them with double-backslash escaped comma like in the + // example below). + // Note: whenever pipe "|" char needs to be used not as the delimiter, it must be escaped with + // double backslash, like in case of escaped commas in alpn-ids list. + // Basing on the config, Kea will encode the option according to RFC9463. "code": 162, "name": "v4-dnr", - "data": "26, 1234, 23, example.some.host.org., " // please notice comma and space at the end put on purpose - // this means empty last type of the record - binary type + "data": "1, resolver.example., 10.2.3.4 10.0.4.5, alpn=dot\\,doq\\,h2\\,h3 dohpath=/q{?dns} | 2, resolver.example., 10.0.5.6, alpn=dot port=8530 | 3, fooexp.resolver.example." }, // Option codes 163-209 are unassigned. diff --git a/doc/examples/kea6/all-options.json b/doc/examples/kea6/all-options.json index 01f7098848..57857dc47c 100644 --- a/doc/examples/kea6/all-options.json +++ b/doc/examples/kea6/all-options.json @@ -1815,14 +1815,19 @@ service parameters that are encoded following the rules in Section 2.2 of [RFC9460]. */ - // Type: uint16, uint16, FQDN, binary - { - // DNR ADN only mode - IP address(es) and SvcParams are missing on purpose. - // For more detailed example with IP addresses and SvcParams included, please check dnr.json example. + // Type: internal + { + // DNR option may be configured using convenient notation. Comma separated fields must be provided: + // - service priority (mandatory), + // - ADN (mandatory), + // - IP address/es (optional - if more than one - they must be space-separated) + // - SvcParams (optional - if more than one - they must be space-separated; + // to provide more than one alpn-id separate them with double-backslash escaped comma like in the + // example below). + // Basing on the config, Kea will encode the option according to RFC9463. "code": 144, "name": "v6-dnr", - "data": "1234, 23, example.some.host.org., " // please notice comma and space at the end put on purpose - // this means empty last type of the record - binary type + "data": "100, resolver.example., 2001:db8::1 2001:db8::2, alpn=dot\\,h2\\,h3 port=8530 dohpath=/dns-query{?dns}" }, // Option codes 145-65535 are unassigned. |