From 553d63f0ead74ea101b2169bdad4af80caa16e2b Mon Sep 17 00:00:00 2001 From: Guenter Kukkukk Date: Thu, 30 May 2013 02:19:32 +0200 Subject: s4-dns: set TTL value in the NS server part of the SOA record noticed this when using samba-tool to create a new zone Signed-off-by: Guenter Kukkukk Reviewed-by: Andrew Bartlett Reviewed-by: Amitay Isaacs Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Thu May 30 09:41:20 CEST 2013 on sn-devel-104 --- source4/rpc_server/dnsserver/dnsdb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/rpc_server/dnsserver') diff --git a/source4/rpc_server/dnsserver/dnsdb.c b/source4/rpc_server/dnsserver/dnsdb.c index 91e9aa8326..8cdeae41f5 100644 --- a/source4/rpc_server/dnsserver/dnsdb.c +++ b/source4/rpc_server/dnsserver/dnsdb.c @@ -934,6 +934,7 @@ WERROR dnsserver_db_create_zone(struct ldb_context *samdb, dns_rec[1].wType = DNS_TYPE_NS; dns_rec[1].rank = DNS_RANK_ZONE; dns_rec[1].dwSerial = soa.serial; + dns_rec[1].dwTtlSeconds = 3600; dns_rec[1].dwTimeStamp = (uint32_t)t; dns_rec[1].data.ns = server_fqdn; -- cgit