From 612fbc18c3bf5307bd71ef533a5b6a13c7ef78b6 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Thu, 6 Dec 2012 16:11:18 +1100 Subject: s4-dns: Support update of SOA records Signed-off-by: Amitay Isaacs --- python/samba/netcmd/dns.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/samba/netcmd/dns.py b/python/samba/netcmd/dns.py index 0306e51d93..1e82812238 100644 --- a/python/samba/netcmd/dns.py +++ b/python/samba/netcmd/dns.py @@ -1066,11 +1066,12 @@ class cmd_update_record(Command): CNAME fqdn_string NS fqdn_string MX "fqdn_string preference" + SOA "fqdn_dns fqdn_email serial refresh retry expire minimumttl" SRV "fqdn_string port priority weight" TXT "'string1' 'string2' ..." """ - synopsis = '%prog ' + synopsis = '%prog ' takes_args = [ 'server', 'zone', 'name', 'rtype', 'olddata', 'newdata' ] @@ -1083,7 +1084,7 @@ class cmd_update_record(Command): def run(self, server, zone, name, rtype, olddata, newdata, sambaopts=None, credopts=None, versionopts=None): - if rtype.upper() not in ('A','AAAA','PTR','CNAME','NS','MX','SRV','TXT'): + if rtype.upper() not in ('A','AAAA','PTR','CNAME','NS','MX','SOA','SRV','TXT'): raise CommandError('Updating record of type %s is not supported' % rtype) record_type = dns_type_flag(rtype) -- cgit