From 9e41bc5486e2858c81a59c9302089d3a480ec4e3 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Tue, 29 Oct 2024 20:26:21 +0200 Subject: [PATCH] feat: sane SOA ttls --- internal/dns/query.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/dns/query.go b/internal/dns/query.go index e6e00e3..7cfaeac 100644 --- a/internal/dns/query.go +++ b/internal/dns/query.go @@ -141,14 +141,14 @@ func handleSOARecord(q *dns.Question, m *dns.Msg, r *dns.Msg) { qName := strings.ToLower(q.Name) soa := &dns.SOA{ - Hdr: dns.RR_Header{Name: q.Name, Rrtype: dns.TypeSOA, Class: dns.ClassINET, Ttl: 0}, + Hdr: dns.RR_Header{Name: q.Name, Rrtype: dns.TypeSOA, Class: dns.ClassINET, Ttl: 7200}, Ns: config.FeluConfig.Domain, Mbox: config.FeluConfig.SOAEmail, Serial: 2024100301, Refresh: 86400, Retry: 7200, Expire: 3600000, - Minttl: 172800, + Minttl: 86400, } // "Root" Domain SOA. -- 2.44.1