summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-06-30 12:03:26 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-07-04 10:03:53 +0000
commit9cda38bbc7ef5debbbdfba267a430d621e6da3d0 (patch)
treecb037e7b2cae41b870f27cc012347f0dcd46af9f /src/conf_mode
parentcefc7ce9bfcf7750700e73edbc21864fe8ab0bee (diff)
downloadvyos-1x-9cda38bbc7ef5debbbdfba267a430d621e6da3d0.tar.gz
vyos-1x-9cda38bbc7ef5debbbdfba267a430d621e6da3d0.zip
dns: T4378: Allow wildcard A AAAA record with option any
Ability to set wildcard record for authoritative-domain set authoritative-domain example.com records a any address 192.0.2.11 cat /run/powerdns/zone.example.com.conf * 300 A 192.0.2.11
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/dns_forwarding.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/dns_forwarding.py b/src/conf_mode/dns_forwarding.py
index f1c2d1f43..41023c135 100755
--- a/src/conf_mode/dns_forwarding.py
+++ b/src/conf_mode/dns_forwarding.py
@@ -98,6 +98,9 @@ def get_config(config=None):
dns['authoritative_zone_errors'].append('{}.{}: at least one address is required'.format(subnode, node))
continue
+ if subnode == 'any':
+ subnode = '*'
+
for address in rdata['address']:
zone['records'].append({
'name': subnode,