Commits
- Commit:
b141f1193309066d69c8a1759da0d6cf4d6d60b7- From:
- Oliver Lowe <o@olowe.co>
- Date:
gofmt
- Commit:
9ecb07389b456761ee8a4e23e62be9f58b030937- From:
- Oliver Lowe <o@olowe.co>
- Date:
doc: tutorial with the even simpler Ask function
that is the simplest operation, not Exchange (anymore)!
- Commit:
2c109646ee0be071d39acc68f8cda66157d37582- From:
- Oliver Lowe <o@olowe.co>
- Date:
recursor: reject more invalid messages
- Commit:
20fd186cb05aed778db0ee7d84c3e413e3ad68fe- From:
- Oliver Lowe <o@olowe.co>
- Date:
dns: error on receiving random messages
Caller can handle the error appropriately I reckon...
- Commit:
521607802a026aae130395eb147b81d480b94e34- From:
- Oliver Lowe <o@olowe.co>
- Date:
dns: Separate sending messages from sending bytes
That made it easy to then let us ResponseWriter to implement io.Writer
- Commit:
554ced8329b2f5a7abf40a2131cf5e869c1e17d4- From:
- Oliver Lowe <o@olowe.co>
- Date:
dns: cleaner error handling on send packet
- Commit:
ded9109ce8770cd39b01c1fb5a8afdc1bd1fc335- From:
- Oliver Lowe <o@olowe.co>
- Date:
New Ask functions
These let us specify just a question without needing to worry about
the entire DNS message structure.
- Commit:
278edeb3778ea102ba404c672b2b0fc325c4e99c- From:
- Oliver Lowe <o@olowe.co>
- Date:
doc: use rfc5737 documentation IP addresses
- Commit:
ad190d6323ad7247346e80062588e43990bb8a8f- From:
- Oliver Lowe <o@olowe.co>
- Date:
doc: more Server documentation
- Commit:
e51fa8976c97e8055eb8be271a3742833c887115- From:
- Oliver Lowe <o@olowe.co>
- Date:
Initial package documentation
- Commit:
0fc4e74ad9ea6060d49dfd2bb0369b798d10ade3- From:
- Oliver Lowe <o@olowe.co>
- Date:
dump
- Commit:
1c3a28b4e3d5fcd9374467eac2287607a1a8e669- From:
- Oliver Lowe <o@olowe.co>
- Date:
Use fancy bit operations to encode message length
Instead of encoding/binary package. Removes that package dependency
- Commit:
2f4ad6437420a56d016b5d1ac5eb61c2a7234254- From:
- Oliver Lowe <o@olowe.co>
- Date:
Use the message length field to only read that much
Using io.ReadAll doesn't work properly. The socket has a queue that
may be entirely drained by this call, which means we could
accidentally read a bit of the next message if there is one in the
queue.
- Commit:
c245affd0ab63714b15dc1e6bd67307059e8da4f- From:
- Oliver Lowe <o@olowe.co>
- Date:
read the entire DNS message over TCP, handle EOF
we were just reading 1024 bytes may or may not have contained the
whole message. And before we weren't even handling EOF from the
underlying connection. Now the io package handles it for us.
- Commit:
fcbc0eaeb5ac159cd2b10e70e5deaae703cf5189- From:
- Oliver Lowe <o@olowe.co>
- Date:
error on receiving a message with the wrong message ID
- Commit:
a8959a402c8c0f2557c2a365ab5b3d83c2cfa11d- From:
- Oliver Lowe <o@olowe.co>
- Date:
oops
- Commit:
88787149cf89ee12e50156d2be193b2194e4052f- From:
- Oliver Lowe <o@olowe.co>
- Date:
Seperate packet handling over UDP and TCP better
Because it's a stream versus just 1 packet so there's some tricky
handling that should be seperate for clarity
- Commit:
66267fa01f36cd99f4b3ac53250a1b8cbd3e2568- From:
- Oliver Lowe <o@olowe.co>
- Date:
Support making DNS queries over TLS
Little gotcha is that TCP messages need to be prepended with
a 2-octet length field!
- Commit:
1bcf9fa40865b1840d67029d990dcbfe61a43a23- From:
- Oliver Lowe <o@olowe.co>
- Date:
Move core DNS routines into the dns package
because it doesn't really have anything to do with DNS over HTTPS
- Commit:
0a3ca79c8e36dc108fecf910524518063dadd56c- From:
- Oliver Lowe <o@olowe.co>
- Date:
Make git.sr.ht/~otl/dns a Go package
And rename dohtest to dohproxy. This thing is going live soon baby
