From 5a633dd6bb5be817c6b421df0c098e3428a20773 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Thu, 6 Dec 2012 16:10:42 +1100 Subject: s4-dns: Print/Set minimumTTL value in SOA record Signed-off-by: Amitay Isaacs Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Tue May 28 08:47:56 CEST 2013 on sn-devel-104 --- python/samba/netcmd/dns.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit