summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2011-09-05 16:19:37 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-09-08 00:35:37 +0200
commitc212abe83fdc5066f210db1fde4e30f7b2e57e62 (patch)
tree2203cab04597607a273ecd5741b60f65cc8154f6 /source4/scripting
parent4b5ebfc5ff812443b2db1ee58858d9e4e169c82b (diff)
downloadsamba-c212abe83fdc5066f210db1fde4e30f7b2e57e62.tar.gz
samba-c212abe83fdc5066f210db1fde4e30f7b2e57e62.tar.bz2
samba-c212abe83fdc5066f210db1fde4e30f7b2e57e62.zip
s4-provision: Make DNS entries consistent with dns_update script
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/provision/sambadns.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/scripting/python/samba/provision/sambadns.py b/source4/scripting/python/samba/provision/sambadns.py
index 8e7661b662..93fce60174 100644
--- a/source4/scripting/python/samba/provision/sambadns.py
+++ b/source4/scripting/python/samba/provision/sambadns.py
@@ -65,7 +65,7 @@ def get_ntdsguid(samdb, domaindn):
class ARecord(dnsp.DnssrvRpcRecord):
- def __init__(self, ip_addr, serial=1, ttl=3600):
+ def __init__(self, ip_addr, serial=1, ttl=900):
super(ARecord, self).__init__()
self.wType = dnsp.DNS_TYPE_A
self.dwSerial = serial
@@ -73,7 +73,7 @@ class ARecord(dnsp.DnssrvRpcRecord):
self.data = ip_addr
class AAAARecord(dnsp.DnssrvRpcRecord):
- def __init__(self, ip6_addr, serial=1, ttl=3600):
+ def __init__(self, ip6_addr, serial=1, ttl=900):
super(AAAARecord, self).__init__()
self.wType = dnsp.DNS_TYPE_AAAA
self.dwSerial = serial
@@ -89,7 +89,7 @@ class CNameRecord(dnsp.DnssrvRpcRecord):
self.data = cname
class NSRecord(dnsp.DnssrvRpcRecord):
- def __init__(self, dns_server, serial=1, ttl=3600):
+ def __init__(self, dns_server, serial=1, ttl=900):
super(NSRecord, self).__init__()
self.wType = dnsp.DNS_TYPE_NS
self.dwSerial = serial
@@ -122,7 +122,7 @@ class SOARecord(dnsp.DnssrvRpcRecord):
self.data = soa
class SRVRecord(dnsp.DnssrvRpcRecord):
- def __init__(self, target, port, priority=0, weight=0, serial=1, ttl=3600):
+ def __init__(self, target, port, priority=0, weight=100, serial=1, ttl=900):
super(SRVRecord, self).__init__()
self.wType = dnsp.DNS_TYPE_SRV
self.dwSerial = serial