summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-05-04 23:19:49 +0200
committerChristian Breunig <christian@breunig.cc>2023-05-04 23:19:49 +0200
commit11e25707683138d4a5a64a3717160edb84816182 (patch)
tree9fda4ee0fde4953c524330e3efc06d90c49428dc /src/conf_mode
parent5122049d9e69c9a7614fcb19637fe0e50aba0ccf (diff)
downloadvyos-1x-11e25707683138d4a5a64a3717160edb84816182.tar.gz
vyos-1x-11e25707683138d4a5a64a3717160edb84816182.zip
dns-forwarding: T5193: implement NS resource type
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/dns_forwarding.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/dns_forwarding.py b/src/conf_mode/dns_forwarding.py
index b7214caf7..0d86c6a52 100755
--- a/src/conf_mode/dns_forwarding.py
+++ b/src/conf_mode/dns_forwarding.py
@@ -99,7 +99,7 @@ def get_config(config=None):
recorddata = zonedata['records']
- for rtype in [ 'a', 'aaaa', 'cname', 'mx', 'ptr', 'txt', 'spf', 'srv', 'naptr' ]:
+ for rtype in [ 'a', 'aaaa', 'cname', 'mx', 'ns', 'ptr', 'txt', 'spf', 'srv', 'naptr' ]:
if rtype not in recorddata:
continue
for subnode in recorddata[rtype]:
@@ -126,7 +126,7 @@ def get_config(config=None):
'ttl': rdata['ttl'],
'value': address
})
- elif rtype in ['cname', 'ptr']:
+ elif rtype in ['cname', 'ptr', 'ns']:
rdefaults = defaults(base + ['authoritative-domain', 'records', rtype]) # T2665
rdata = dict_merge(rdefaults, rdata)