Open ryancastro opened 2 weeks ago
My guess is that cache-size: 64
is not enough. That's 64 bytes, not entries. Try something bigger, e.g. 64000
or don't specify it, 64K is default.
--cache-size= Cache size (in bytes). Default: 64k
Pulled master as of today, and built with
sudo go run main.go --config-path=config.yaml --verbose
.I run with the included configuration file, and then I simply hit the server with two dns questions over TLS. Both for google.com. Both requests make a dial out to an upstream provider, rather than using the cache, despite the cache being clearly enabled. Am I simply misunderstanding how caching works? That'd be embarrassing.
Here's some simple reproduction:
Run with Doggo:
doggo google.com @tls://mydomain.example.com --time
Here is my verbose output:
Server start:
Requests (two requests):