mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
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
This commit is contained in:
parent
667651132b
commit
5a633dd6bb
@ -355,11 +355,12 @@ def print_dns_record(outf, rec):
|
|||||||
elif rec.wType == dnsp.DNS_TYPE_CNAME:
|
elif rec.wType == dnsp.DNS_TYPE_CNAME:
|
||||||
mesg = 'CNAME: %s' % (rec.data.str)
|
mesg = 'CNAME: %s' % (rec.data.str)
|
||||||
elif rec.wType == dnsp.DNS_TYPE_SOA:
|
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.dwSerialNo,
|
||||||
rec.data.dwRefresh,
|
rec.data.dwRefresh,
|
||||||
rec.data.dwRetry,
|
rec.data.dwRetry,
|
||||||
rec.data.dwExpire,
|
rec.data.dwExpire,
|
||||||
|
rec.data.dwMinimumTtl,
|
||||||
rec.data.NamePrimaryServer.str,
|
rec.data.NamePrimaryServer.str,
|
||||||
rec.data.ZoneAdministratorEmail.str)
|
rec.data.ZoneAdministratorEmail.str)
|
||||||
elif rec.wType == dnsp.DNS_TYPE_MX:
|
elif rec.wType == dnsp.DNS_TYPE_MX:
|
||||||
@ -498,6 +499,7 @@ class SOARecord(dnsserver.DNS_RPC_RECORD):
|
|||||||
soa.dwRefresh = refresh
|
soa.dwRefresh = refresh
|
||||||
soa.dwRetry = retry
|
soa.dwRetry = retry
|
||||||
soa.dwExpire = expire
|
soa.dwExpire = expire
|
||||||
|
soa.dwMinimumTtl = minimum
|
||||||
soa.NamePrimaryServer.str = self._mname
|
soa.NamePrimaryServer.str = self._mname
|
||||||
soa.NamePrimaryServer.len = len(mname)
|
soa.NamePrimaryServer.len = len(mname)
|
||||||
soa.ZoneAdministratorEmail.str = self._rname
|
soa.ZoneAdministratorEmail.str = self._rname
|
||||||
|
Loading…
Reference in New Issue
Block a user