[PATCH] s4-dns: set TTL value in the NS server part of the SOA record
Andrew Bartlett
abartlet at samba.org
Wed May 29 19:48:48 MDT 2013
On Thu, 2013-05-30 at 03:30 +0200, Günter Kukkukk wrote:
> From bc9bc355efa450d48e559f939ec124b94a7b61aa Mon Sep 17 00:00:00 2001
> From: Guenter Kukkukk <kukks at samba.org>
> Date: Thu, 30 May 2013 02:19:32 +0200
> Subject: [PATCH] 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 <kukks at samba.org>
> ---
> source4/rpc_server/dnsserver/dnsdb.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/source4/rpc_server/dnsserver/dnsdb.c
> b/source4/rpc_server/dnsserver/dnsdb.c
> index b5ad470..d59edbf 100644
> --- a/source4/rpc_server/dnsserver/dnsdb.c
> +++ b/source4/rpc_server/dnsserver/dnsdb.c
> @@ -931,6 +931,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;
Where is this magic value defined? (ie, what makes 1 hour the right
value here by default?)
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
More information about the samba-technical
mailing list