Add a none parameter to query-source[-v6]

This change adds a "none" parameter to the query-source[-v6]
options in named.conf, which forbid the usage of IPv4 or IPv6
addresses when doing upstream queries.
This commit is contained in:
Colin Vidal
2024-11-05 13:40:55 +01:00
committed by Colin Vidal
parent b2ffa5845b
commit bcf24ca07e
27 changed files with 717 additions and 41 deletions

View File

@@ -3304,11 +3304,15 @@ Query Address
.. namedconf:statement:: query-source
:tags: query
:short: Controls the IPv4 address from which queries are issued.
:short: Controls the IPv4 address from which queries are issued. If
`none`, then no IPv4 address would be used to issue the
query and therefore only IPv6 servers are queried.
.. namedconf:statement:: query-source-v6
:tags: query
:short: Controls the IPv6 address from which queries are issued.
:short: Controls the IPv6 address from which queries are issued. If
`none`, then no IPv6 address would be used to issue the
query and therefore only IPv4 servers are quried.
If the server does not know the answer to a question, it queries other
name servers. :any:`query-source` specifies the address used for

View File

@@ -228,8 +228,8 @@ options {
prefetch <integer> [ <integer> ];
provide-ixfr <boolean>;
qname-minimization ( strict | relaxed | disabled | off );
query-source [ address ] ( <ipv4_address> | * );
query-source-v6 [ address ] ( <ipv6_address> | * );
query-source [ address ] ( <ipv4_address> | * | none );
query-source-v6 [ address ] ( <ipv6_address> | * | none );
querylog <boolean>;
rate-limit {
all-per-second <integer>;
@@ -514,8 +514,8 @@ view <string> [ <class> ] {
prefetch <integer> [ <integer> ];
provide-ixfr <boolean>;
qname-minimization ( strict | relaxed | disabled | off );
query-source [ address ] ( <ipv4_address> | * );
query-source-v6 [ address ] ( <ipv6_address> | * );
query-source [ address ] ( <ipv4_address> | * | none );
query-source-v6 [ address ] ( <ipv6_address> | * | none );
rate-limit {
all-per-second <integer>;
errors-per-second <integer>;