summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorkhramshinr <khramshinr@gmail.com>2024-01-30 14:12:01 +0700
committerkhramshinr <khramshinr@gmail.com>2024-01-30 16:45:54 +0700
commiteb76729d63245e2e8f06f4d6d52d2fd4aab4fb1f (patch)
tree7c2a6ec264cf05f65c774fcce99fbedd8247fa6c /interface-definitions
parent801359c2ebc724bd3dd1d4352502747d813f2d17 (diff)
downloadvyos-1x-eb76729d63245e2e8f06f4d6d52d2fd4aab4fb1f.tar.gz
vyos-1x-eb76729d63245e2e8f06f4d6d52d2fd4aab4fb1f.zip
dns forwarding: T5687: Implement ECS settings for PowerDNS recursor
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/service_dns_forwarding.xml.in43
1 files changed, 43 insertions, 0 deletions
diff --git a/interface-definitions/service_dns_forwarding.xml.in b/interface-definitions/service_dns_forwarding.xml.in
index 0f8863438..b520af44d 100644
--- a/interface-definitions/service_dns_forwarding.xml.in
+++ b/interface-definitions/service_dns_forwarding.xml.in
@@ -735,6 +735,49 @@
</constraint>
</properties>
</leafNode>
+ <node name="options">
+ <properties>
+ <help>DNS server options</help>
+ </properties>
+ <children>
+ <leafNode name="ecs-add-for">
+ <properties>
+ <help>List of client netmasks for which EDNS Client Subnet will be added</help>
+ <valueHelp>
+ <format>ipv4net</format>
+ <description>IP addresses or subnets, negation supported</description>
+ </valueHelp>
+ <valueHelp>
+ <format>ipv6net</format>
+ <description>IPv6 addresses or subnets, negation supported</description>
+ </valueHelp>
+ <multi/>
+ </properties>
+ </leafNode>
+ <leafNode name="ecs-ipv4-bits">
+ <properties>
+ <help>Number of bits of IPv4 address to pass for EDNS Client Subnet</help>
+ <valueHelp>
+ <format>u32:0-32</format>
+ <description>Number of bits of IPv4 address</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 0-32"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="edns-subnet-allow-list">
+ <properties>
+ <help>List of netmasks and domains that we should enable EDNS subnet for</help>
+ <valueHelp>
+ <format>txt</format>
+ <description>Netmask or domain</description>
+ </valueHelp>
+ <multi/>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
</children>
</node>
</children>