From ee225a41994dbb77d8a8e8565c9dbce7c4c9c7e0 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Fri, 18 Oct 2024 10:40:40 +0300 Subject: [PATCH] fix: set NS ttl --- internal/dns/query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/dns/query.go b/internal/dns/query.go index 50bd345..889b9a0 100644 --- a/internal/dns/query.go +++ b/internal/dns/query.go @@ -64,7 +64,7 @@ func handleARecord(q *dns.Question, m *dns.Msg, r *dns.Msg) { func handleNSRecord(q *dns.Question, m *dns.Msg, r *dns.Msg) { ns := &dns.NS{ - Hdr: dns.RR_Header{Name: q.Name, Rrtype: dns.TypeNS, Class: dns.ClassINET, Ttl: 0}, + Hdr: dns.RR_Header{Name: q.Name, Rrtype: dns.TypeNS, Class: dns.ClassINET, Ttl: 86400}, Ns: dns.Fqdn(config.FeluConfig.DDNSDomain), } -- 2.44.1