DEVELOPMENT ENVIRONMENT

~liljamo/felu

9e41bc5486e2858c81a59c9302089d3a480ec4e3 — Jonni Liljamo 15 days ago b5195a9
feat: sane SOA ttls
1 files changed, 2 insertions(+), 2 deletions(-)

M internal/dns/query.go
M internal/dns/query.go => internal/dns/query.go +2 -2
@@ 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.