summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2012-12-06 16:11:18 +1100
committerAndrew Bartlett <abartlet@samba.org>2013-05-30 10:44:08 +1000
commit612fbc18c3bf5307bd71ef533a5b6a13c7ef78b6 (patch)
treeb24aab6007d6418ffdaf2c174d93183b14ef2bf9
parentde2788acd1ee2136b673c5d1ddf5bab335b4675f (diff)
downloadsamba-612fbc18c3bf5307bd71ef533a5b6a13c7ef78b6.tar.gz
samba-612fbc18c3bf5307bd71ef533a5b6a13c7ef78b6.tar.bz2
samba-612fbc18c3bf5307bd71ef533a5b6a13c7ef78b6.zip
s4-dns: Support update of SOA records
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
-rw-r--r--python/samba/netcmd/dns.py5
1 files changed, 3 insertions, 2 deletions
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 <server> <zone> <name> <A|AAAA|PTR|CNAME|NS|MX|SRV|TXT> <olddata> <newdata>'
+ synopsis = '%prog <server> <zone> <name> <A|AAAA|PTR|CNAME|NS|MX|SOA|SRV|TXT> <olddata> <newdata>'
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)