Commit Graph

9 Commits

Author SHA1 Message Date
Frank Olbricht
39ee6e9ec8 Return all names for a PTR lookup in hosts blocklist (#331)
* Return all names for a PTR lookup in hosts blocklist

* fix panic

* Set upper limit for the number of responses for PTR queries
2023-10-21 10:10:51 +02:00
Frank Olbricht
395fcbcedb New element to log queries via syslog (#233)
* New element to log queries via syslog

* Replace syslog library

* fix query type/name order and add id

* option to log responses as well

* Fix log line and add log-request option

* Add query ID and answer numbers

* Fix format strings

* Synthesize NODATA state

* Add qtype to failed or empty responses

* Add docs

* Verbose option to log response types that weren't queries
2022-05-20 13:50:37 +02:00
Frank Olbricht
c3abb402a9 Support retry on truncation (#171)
* Support retry on truncation

* Fix port in example

* Use Msg.Truncate() instead of comparing length

* Don't cache truncated responses and update examples

* Replace test.com with example.com
2021-08-08 07:36:00 -06:00
Frank Olbricht
e962ab8023 Restore the original query ID when DoQ fails (#120) 2020-12-30 09:09:02 -07:00
Frank Olbricht
654fd43c83 Return PTR records for hosts file blocklists (#115)
* Return PTR records for hosts file blocklists

* Undo testing changes in example file
2020-12-29 18:19:26 -07:00
Frank Olbricht
ef5a8d1d0e Option to change the response code after collapsing to zero (#109) 2020-12-28 11:42:19 -07:00
SeanBurford
482d40a5db Expvar (#84)
* Add metric tracking

* Clean up metrics structures.

* Add available route metric to router.
2020-09-06 09:55:30 -06:00
Frank Olbricht
fb5f38882e Support blocking on client IP with client-blocklist (#63)
* Support blocking on client IP with client-blocklist

* Support dropping of queries and add 'drop' entity

* Fix example

* Return REFUSED by default
2020-06-15 19:15:38 -06:00
Frank Olbricht
82b5b536b7 Allow filtering of responses in addition to blocking (#26)
* Allow filtering of responses in addition to blocking

* Update example

* Remove filter support from name response blocklist, support blocklist-resolver
2020-05-22 07:21:23 -06:00