DEVELOPMENT ENVIRONMENT

~liljamo/felu

7dcda54f94803f268755bcfb876c5b83d0b40de7 — Jonni Liljamo 8 months ago 4cc201c 0.1.7
fix!: ignore case in queries, yikes
1 files changed, 1 insertions(+), 1 deletions(-)

M internal/dns/query.go
M internal/dns/query.go => internal/dns/query.go +1 -1
@@ 28,7 28,7 @@ func handleARecord(q *dns.Question, m *dns.Msg, r *dns.Msg) {
	slog.Info("A Record Query", slog.String("qname", q.Name))

	if index := strings.IndexByte(q.Name, '.'); index >= 0 {
		aRecord, err := db.FetchDomainARecord(q.Name[:index])
		aRecord, err := db.FetchDomainARecord(strings.ToLower(q.Name[:index]))
		if err != nil {
			m.SetRcode(r, dns.RcodeNameError)
		} else {