172075c9
pre-parsing code
this is still missing some code, it's too late for me to decide
how this should be implemented, ideally I wouldn't have to alloc
too much, or at all... but we'll see
Gregory Mullen
parent 2f372177
2f372177
refactor a bit preparing for threading
Gregory Mullen
parent fd1499ba
fd1499ba
fmt
Gregory Mullen
parent 549b981f
549b981f
rm stale code
Gregory Mullen
parent 5fa5e5f1
5fa5e5f1
there was some bugs
Gregory Mullen
parent 182c774d
182c774d
fake recover on out of order messages
Gregory Mullen
parent c25a1268
c25a1268
accept a much longer upstream delay
Gregory Mullen
parent 694adea6
694adea6
add default timeout 30ms and retry upstream
Gregory Mullen
parent a452a7e8
a452a7e8
support caching on aaaa
Gregory Mullen
parent f09fad9a
f09fad9a
actually cache a records
Gregory Mullen
parent 43edea6e
43edea6e
loop cache preload
Gregory Mullen
parent e8d1e188
e8d1e188
add usage
Gregory Mullen
parent 676c3ad0
676c3ad0
partial refactor for mp
Gregory Mullen
parent 2e83fef0
2e83fef0
cache domain strs & hits
Gregory Mullen
parent bc7d7dfc
bc7d7dfc
more soa support
still incomplete
Gregory Mullen
parent e1695088
e1695088
mv peer to network.zig
Gregory Mullen
parent 026a2374
026a2374
mv Header to Header.zig
Gregory Mullen
parent 76f8bdbe
76f8bdbe
mv Message into Message.zig
Gregory Mullen
parent 73d22f65
73d22f65
correctly respond with nxdomain
Gregory Mullen
parent dc891357
dc891357
almost add hits and cache ttl
Gregory Mullen
parent 38b34493
38b34493
add https to 'ignore' list
why does this even exist?!
Gregory Mullen
parent 4083d4db
4083d4db
add EDNS to 'ignore' list
Gregory Mullen
parent 45b94096
45b94096
be quiet
Gregory Mullen
parent f84a8c43
f84a8c43
drop debug logging
Gregory Mullen
parent 4e5d06f7
4e5d06f7
add skel for cname and soa support
Gregory Mullen
parent 60dfcbed
60dfcbed
mv addr type earlier
Gregory Mullen
parent eedd318b
eedd318b
rewrite payload iterator for cname support
Gregory Mullen
parent db368c7d
db368c7d
mv caching into server
Gregory Mullen
parent 4b824149
4b824149
enable domain blocking
Gregory Mullen
parent 90071865
90071865
add Iterator iface to Message
Gregory Mullen
parent 2e68f226
2e68f226
add answer helper
Gregory Mullen
parent a690e3b4
a690e3b4
print us not ns
Gregory Mullen
parent 81daba69
81daba69
drop alloc from dns init
Gregory Mullen
parent 8e1fca20
8e1fca20
add timer
Gregory Mullen
parent 2c602514
2c602514
move banned ips to cli
Gregory Mullen
parent af6961e0
af6961e0
ban some queries by IP
Gregory Mullen
parent ff52dbb1
ff52dbb1
convert debug to log
Gregory Mullen
parent 86614bb7
86614bb7
server main loop
Gregory Mullen
parent 3f8080be
3f8080be
enable bouncing
Gregory Mullen
parent 22b3c120
22b3c120
add block parser
Gregory Mullen
parent 0a55712f
0a55712f
mv upstream to peer
Gregory Mullen
parent 6c8286a9
6c8286a9
move more send/recv code into Upstream
Gregory Mullen
parent 59560110
59560110
fix upstream api
Gregory Mullen
parent 6a470f4c
6a470f4c
mv upstream server -> dns.zig & use in client
Gregory Mullen
parent c78e39eb
c78e39eb
add upstream thingy
which may go unused
Gregory Mullen
parent b7117f3b
b7117f3b
ignore lists/
Gregory Mullen
parent a1dbf38c
a1dbf38c
server listener
Gregory Mullen
parent 08ddebc1
08ddebc1
add client arg parsing
Gregory Mullen
parent 78e3cb0b
78e3cb0b
more test vectors
Gregory Mullen
parent b4ea5ac1
b4ea5ac1
clean build.zig
Gregory Mullen
parent c4c2f5e4
More