Comments (6)
I would like to point out that coredns caching do not cache sub.sub.domain records.
What is a "sub.sub.domain" record?
I'm running node-local-dns as a caching layer for DNS requests and it's not caching 50% of ordinary traffic.
How are you determining that a response is not cached?
from coredns.
Sub sub domain example: any.s3.us-west-1.amazonaws.com.
Simply, example.com return preconfigure 300 TTL value when responding to client, but for any.s3.us-west-1.amazonaws.com it 5s.
from coredns.
There is no difference to the cache if a record is top level or any level below that. Records are cached individually, and the cache respects the cache TTL of each record.
You have set a success min TTL of 30s, so any 5s TTL is ignored. This is likely your problem.
Remove the min TTL from your configuration to correctly respect your authoritative TTL.
cluster.local:53 {
cache {
success 9984
denial 9984
}
}
from coredns.
I'm checking the caching with the node-local-dns setup. So all requests for cluster.local goes to the coredns instance for cluster internal use, rest to upstream.
In front, I have node-local-dns as the primary DNS server of pods.
.:53 {
log
errors
cache {
success 9984 300 5
denial 9984 1 1
}
reload
loop
bind 0.0.0.0
forward . 1.1.1.1 {
prefer_udp
}
prometheus :9253
}
I've modified a bit the caching config specifcly MAX_TTL and MIN_TTL. So all original records that fit within the range of (MIN: MAX) will be served from the cache?
Then what's the purpose of denial?
Thx for the clarification.
My end goal was to override the TTL value with my setup so any DNS request generated from pod will be cached with given TTL.
from coredns.
DNS reponses can be success or deny, for example NXDOMAIN
. This is called negative response caching.
Please remove the TTL if you don't know what you're doing.
from coredns.
The point here is that it won't modify the original record TTL when it fits within the (MIN, MAX) range of successful resolve. Node-Local-DNS just caches the record internally for faster lookup.
from coredns.
Related Issues (20)
- plugin/metadata overwrites what was set in a previous server block, making plugin/geoip inefficient HOT 4
- CoreDNS->Prometheus_Blackbox_Exporter plugin HOT 5
- Logging and dnstap falsely reporting NODATA rcode when plugin/auto doesn't match zone HOT 3
- Bind link-local addresses for interfaces using scope HOT 2
- some question HOT 2
- coredns proxy question HOT 1
- AXFR Transferer interface usage in transfer.ServeDNS causes goroutine leak.
- Enable WebAssembly-based plugins for coreDNS HOT 2
- Monitoring the status of upstream DNS server HOT 5
- CoreDNS(local dns) is crashed due to high concurrency stress traffic HOT 12
- Improve docs or add auto reverse zone generation from hosts plugin to file / auto plugins
- CoreDNS on FreeBSD does not answer reverse lookup requests (both hosts and file plugins) HOT 4
- CoreDNS, Kubernetes, and systemd - CrashLoopBackOff HOT 3
- [CVE-2023-45288] Update x/net for CVE-2023-45288
- Request: Please make FIPS 140-2 compliant images available HOT 2
- nxdomain when question headless service in k8s. HOT 2
- Kubenetes pods restarting and coreDNS stuck at container creating HOT 1
- Enhancement: Integrate AWS Secrets Manager for DNSSEC Key Management
- doubt about order priority plugins and functionality + implementation plugins
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coredns.