Implement rate limiter for incoming queries

At the moment the server just listens to localhost. Before allowing non-localhost access*, would make sense to at least have some basic rate limiting for incoming queries. Maybe there's something off-the-shelf for this?

* But probably still just allowing requests from LAN IP ranges until after #14 and possibly #15

Also worth pointing out that an upstream firewall or similar could provide this as a stopgap.

Assigned to
1 year, 6 months ago
9 months ago
Low Priority

~nickbp 1 year, 6 months ago

I'm now somewhat leaning towards just saying "hey maybe don't expose this on the internet". I'm also thinking that any rate limiter implementation would need to be carefully thought out as it otherwise risks creating problems for people, even in LAN situations. But I'll leave this open as a longer-term wishlist item.

~nickbp 9 months ago

This would theoretically tie into EDNS COOKIE support (#21) - valid cookies could be given a better rate limit.

But that also depends on EDNS COOKIE support being pretty common, which I suspect it isn't...