DEVELOPMENT ENVIRONMENT

~liljamo/felu

1dd6caaa1adc3689cf3b1b56b138575a3547e9e4 — Jonni Liljamo 27 days ago 3f2c5e5
feat: stub CNAME queries
1 files changed, 3 insertions(+), 0 deletions(-)

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