summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-09 15:52:12 +0100
committerGitHub <noreply@github.com>2021-12-09 15:52:12 +0100
commite4854350aa00f35a005f3b11ee0139d0c69c4f96 (patch)
treeae6475c3178b1ec3fc7e14ad573a2f97c66526bf /python
parente51b9444a6a6a4640445c22a7f71ba1e035876da (diff)
parent98704f45a4d261ae472e9b299080a1f06275ae81 (diff)
downloadvyos-1x-e4854350aa00f35a005f3b11ee0139d0c69c4f96.tar.gz
vyos-1x-e4854350aa00f35a005f3b11ee0139d0c69c4f96.zip
Merge pull request #1024 from lucasec/dns-authoritative
T562: Config syntax for defining DNS forward authoritative zones
Diffstat (limited to 'python')
-rw-r--r--python/vyos/hostsd_client.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/python/vyos/hostsd_client.py b/python/vyos/hostsd_client.py
index 303b6ea47..f31ef51cf 100644
--- a/python/vyos/hostsd_client.py
+++ b/python/vyos/hostsd_client.py
@@ -79,6 +79,18 @@ class Client(object):
msg = {'type': 'forward_zones', 'op': 'get'}
return self._communicate(msg)
+ def add_authoritative_zones(self, data):
+ msg = {'type': 'authoritative_zones', 'op': 'add', 'data': data}
+ self._communicate(msg)
+
+ def delete_authoritative_zones(self, data):
+ msg = {'type': 'authoritative_zones', 'op': 'delete', 'data': data}
+ self._communicate(msg)
+
+ def get_authoritative_zones(self):
+ msg = {'type': 'authoritative_zones', 'op': 'get'}
+ return self._communicate(msg)
+
def add_search_domains(self, data):
msg = {'type': 'search_domains', 'op': 'add', 'data': data}
self._communicate(msg)