Commit graph

14 commits

Author SHA1 Message Date
xaos
0dc18ac792 doc: add README 2023-02-27 10:52:58 +01:00
xaos
d28ad9ebaf style: simplify query handling some more 2023-02-27 04:22:04 +01:00
xaos
9e44cc2979 feat: switch to case-insensitive compare for domains
This also moves the domain check before the type check.

Domains need to be compared case-insensitively because resolvers will
send sarcastic queries for improved security, see here:
https://datatracker.ietf.org/doc/html/draft-vixie-dnsext-dns0x20-00

strings.EqualFold is maybe not perfectly correct because it does Unicode
case-folding and we only need ASCII.
2023-02-27 04:19:31 +01:00
xaos
a4c5671266 feat: refuse non-TXT records instead of sending NOTIMPL 2023-02-27 03:13:10 +01:00
xaos
0a768b5234 style: rework query handling 2023-02-27 03:10:47 +01:00
xaos
0c040f6376 chore: track go.sum 2023-02-25 11:23:44 +01:00
xaos
fcd18e5020 style: format with go fmt 2023-02-25 11:22:28 +01:00
xaos
cedf03550f feat: log DNS queries & replies 2023-02-25 11:19:22 +01:00
xaos
ae06278ec4 feat: add logging 2023-02-25 11:14:18 +01:00
xaos
f0c0cbc16b feat: add small check for ability to bind to address 2023-02-25 11:09:56 +01:00
xaos
225057c6e9 feat: implement DNS server 2023-02-25 10:49:47 +01:00
xaos
deaad3f695 feat: support Caddyfile 2023-02-25 10:34:04 +01:00
xaos
1e595f787c feat: define caddy module 2023-02-25 10:30:08 +01:00
xaos
1b01ff4079 chore: init 2023-02-25 10:21:30 +01:00