diff options
author | Amitay Isaacs <amitay@gmail.com> | 2012-12-06 16:10:42 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-05-28 08:47:56 +0200 |
commit | 5a633dd6bb5be817c6b421df0c098e3428a20773 (patch) | |
tree | 5e3cb60793991fe1b0f204bef5e89123f62b6fed /python | |
parent | 667651132b9136e1ad9d7dc5f44dd86c66907e70 (diff) | |
download | samba-5a633dd6bb5be817c6b421df0c098e3428a20773.tar.gz samba-5a633dd6bb5be817c6b421df0c098e3428a20773.tar.bz2 samba-5a633dd6bb5be817c6b421df0c098e3428a20773.zip |
s4-dns: Print/Set minimumTTL value in SOA record
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue May 28 08:47:56 CEST 2013 on sn-devel-104
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/netcmd/dns.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/samba/netcmd/dns.py b/python/samba/netcmd/dns.py index 439b02d5ec..0306e51d93 100644 --- a/python/samba/netcmd/dns.py +++ b/python/samba/netcmd/dns.py @@ -355,11 +355,12 @@ def print_dns_record(outf, rec): elif rec.wType == dnsp.DNS_TYPE_CNAME: mesg = 'CNAME: %s' % (rec.data.str) elif rec.wType == dnsp.DNS_TYPE_SOA: - mesg = 'SOA: serial=%d, refresh=%d, retry=%d, expire=%d, ns=%s, email=%s' % ( + mesg = 'SOA: serial=%d, refresh=%d, retry=%d, expire=%d, minttl=%d, ns=%s, email=%s' % ( rec.data.dwSerialNo, rec.data.dwRefresh, rec.data.dwRetry, rec.data.dwExpire, + rec.data.dwMinimumTtl, rec.data.NamePrimaryServer.str, rec.data.ZoneAdministratorEmail.str) elif rec.wType == dnsp.DNS_TYPE_MX: @@ -498,6 +499,7 @@ class SOARecord(dnsserver.DNS_RPC_RECORD): soa.dwRefresh = refresh soa.dwRetry = retry soa.dwExpire = expire + soa.dwMinimumTtl = minimum soa.NamePrimaryServer.str = self._mname soa.NamePrimaryServer.len = len(mname) soa.ZoneAdministratorEmail.str = self._rname |