diff options
author | Lucas Christian <lucas@lucasec.com> | 2021-10-07 20:41:02 -0700 |
---|---|---|
committer | Lucas Christian <lucas@lucasec.com> | 2021-10-12 22:33:38 -0700 |
commit | 36e5f07f8dda51cc5bb0a105077e751f1c851435 (patch) | |
tree | 0c02c0746360525f73ceeec30d06905bbb9f4e04 /python/vyos | |
parent | 044e9dc8bc7e3d946b0ba1f1edfe06b5323aeadd (diff) | |
download | vyos-1x-36e5f07f8dda51cc5bb0a105077e751f1c851435.tar.gz vyos-1x-36e5f07f8dda51cc5bb0a105077e751f1c851435.zip |
T562: Config syntax for defining DNS forward authoritative zones
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/hostsd_client.py | 12 |
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) |