Ali
e51f51e1bc
move from logrus to slog ( #422 )
...
* Migrate from logrus to slog
* fully removing logrus
* should be working now
* Update pipeline.go
Co-authored-by: Frank Olbricht <frank.olbricht@gmail.com >
* Update response-blocklist-name.go
Co-authored-by: Frank Olbricht <frank.olbricht@gmail.com >
* added null logger
* Update pipeline.go
---------
Co-authored-by: Frank Olbricht <frank.olbricht@gmail.com >
2025-01-13 08:43:30 +01:00
folbrich
7a63c2e83a
Fix divide by zero in cache answer-shuffle
2023-09-04 15:58:32 +02:00
Frank Olbricht
4c1e011dbe
Fix Round-Robin rotation of cached records ( #328 )
2023-09-04 14:26:18 +02:00
Frank Olbricht
94069a220b
Implement memory backend with persistence ( #300 )
...
* Implement memory backend with persistence
* Save cache on SIGTERM
* Write to disk in an interval
* Also store expiry in cach file
---------
Co-authored-by: Charles Porth <charlieporth1@gmail.com >
2023-05-12 09:21:00 +09:00
Frank Olbricht
924eeddfcb
New cache-rcode-max-ttl option for caches ( #304 )
2023-05-01 10:10:51 +02:00
Frank Olbricht
547108df22
Separate cache logic from storage ( #280 )
2023-04-15 20:18:31 +02:00
Frank Olbricht
64b22b9875
Revert "Merge pull request #259 from folbricht/issue-153" ( #292 )
...
This reverts commit c383a53be6 , reversing
changes made to 3cd0d752f5 .
2023-03-22 09:37:05 +01:00
Charles Porth
bdbd028ff3
Update cache.go
2023-02-16 09:36:54 -06:00
Charles Porth
b58b9485ff
Merge branch 'master' into issue-153
2023-02-16 09:33:21 -06:00
folbrich
a1bb645d85
update docs
2023-01-26 12:16:36 +01:00
folbrich
1372d955ca
Avoid prefetching records with lower TTL
2023-01-26 11:56:26 +01:00
Charlie Porth
d077a3317f
Fixed typo
2023-01-26 11:56:22 +01:00
folbrich
e3ae13f953
Prefetch feature in cache
2023-01-26 11:55:20 +01:00
folbrich
8117a90cba
Support routing by ListenerID or TLS server name
2022-12-28 10:51:54 +01:00
Charlie Porth
51e0e33b13
Mod tidy && rm vender
2022-09-20 14:00:52 -05:00
Charlie Porth
fe5c953410
Reset of blocklist
2022-08-22 17:07:24 +08: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
d7e1a578e3
Support flushing a cache remotely ( #168 )
2021-08-05 22:09:29 -06:00
Frank Olbricht
e81e86b34a
Return copies of responses from the cache ( #136 )
...
* Return a copy of the response from the cache
* Add comment
* Also protect cached items against query modifications
2021-03-04 19:50:42 -07:00
Frank Olbricht
22732b2451
Only store copies of answers in the cache ( #135 )
2021-03-01 18:40:05 -07:00
Frank Olbricht
7fdf2fa44f
New cache-harden-below-nxdomain option ( #132 )
...
* New cache-harden-below-nxdomain option
* Wire in the config
2021-03-01 18:15:03 -07:00
Frank Olbricht
31a59c1ca1
New cache option to control the order of answers ( #128 )
...
* New cache option to control the order of answers
* Improve shuffle algorithms to only rotate A/AAAA
2021-02-08 17:51:21 -07:00
Dmitry Mikhirev
bf84956117
Cache SERVFAIL responses ( #91 ) ( #98 )
...
Cache server failure responses for cache-negative-ttl seconds,
but not longer than 5 minutes.
2020-10-24 07:34:33 -06:00
Dmitry Mikhirev
39730c45ca
Store empty answers in cache ( #90 )
...
A 0-length answer has a dns.RcodeSuccess status and no TTL values.
Store it in cache like any other negative answer.
Fixes #89 .
2020-09-23 18:32:37 -06: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
4596fbad3e
Cache based on query and ECS subnet address ( #73 )
2020-07-05 14:42:52 -06:00
Frank Olbricht
94387020af
Log query type ( #69 )
2020-06-22 20:19:36 -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
folbrich
d8a86f4fd7
Don't change Rcode in cached responses
2020-06-08 17:06:40 -06:00
Frank Olbricht
6c59cb1a7c
Improve logging ( #51 )
...
* Improve logging
* fix test
2020-06-07 13:24:51 -06:00
Frank Olbricht
ab8a47f2ef
New cache options to limit the size and set negative-TTL and ttl-modifier ( #37 )
...
* New cache options to limit the size and set negative-TTL
* Add ttl-modifier
2020-05-31 14:29:32 -06:00
folbrich
291f9d7485
Also cache negative responses
2020-04-04 09:21:17 -06:00
folbrich
dcb987336a
New cache group
2020-04-01 19:11:19 -06:00