From 1dd6caaa1adc3689cf3b1b56b138575a3547e9e4 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Thu, 17 Oct 2024 11:12:42 +0300 Subject: [PATCH] feat: stub CNAME queries --- internal/dns/query.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/dns/query.go b/internal/dns/query.go index 26a4ffa..50bd345 100644 --- a/internal/dns/query.go +++ b/internal/dns/query.go @@ -28,6 +28,9 @@ func parseQuery(m *dns.Msg, r *dns.Msg) { switch q.Qtype { case dns.TypeA: handleARecord(&q, m, r) + case dns.TypeCNAME: + // NOTE: This is stubbed like this to make things like lego not shit themselves if they get NOTIMP. + m.SetRcode(r, dns.RcodeNameError) case dns.TypeNS: handleNSRecord(&q, m, r) case dns.TypeSOA: -- 2.44.1