View previous topic :: View next topic |
Author |
Message |
ksool Guru
Joined: 27 May 2006 Posts: 337 Location: Cambridge, MA
|
Posted: Tue Aug 21, 2007 6:45 pm Post subject: Can djbdns cache null responses? |
|
|
I'm using djbdns as a local workstation dns cache and have realized that it doesn't cache null responses.
That is, when an application like conky keeps calling for a reverse lookup of an ip, and djbdns gets a "no such name" response, djbdns won't cache that response, and I can't understand why. I tried searching through the djbdns docs to no avail.
Is it possible to do this, or is this by design?
TIA |
|
Back to top |
|
|
Monkeh Veteran
Joined: 06 Aug 2005 Posts: 1656 Location: England
|
Posted: Tue Aug 21, 2007 7:46 pm Post subject: |
|
|
Because usually if there's no record, there's no TTL. |
|
Back to top |
|
|
ksool Guru
Joined: 27 May 2006 Posts: 337 Location: Cambridge, MA
|
Posted: Tue Aug 21, 2007 11:31 pm Post subject: |
|
|
Ok, but it seems silly to me. Every time any user asks for a bad name or unregistered ip, the request has to funnel back to the root servers?
I would think caching an empty response for at least a short time would be reasonable. |
|
Back to top |
|
|
Monkeh Veteran
Joined: 06 Aug 2005 Posts: 1656 Location: England
|
Posted: Wed Aug 22, 2007 7:40 pm Post subject: |
|
|
krs1ars wrote: | I would think caching an empty response for at least a short time would be reasonable. |
But wrong. You can set a TTL for NXDOMAIN (acknowledgement of no such domain), but many do not. You always honour the TTL, and if it's not there, you do NOT cache. Incorrect TTL behavior by servers is what causes DNS issues. |
|
Back to top |
|
|
ksool Guru
Joined: 27 May 2006 Posts: 337 Location: Cambridge, MA
|
Posted: Thu Aug 23, 2007 1:51 am Post subject: |
|
|
Ok, so then I just need to setup my network's bind server to accommodate TTLS for NXDOMAINS. Done. Thanks. |
|
Back to top |
|
|
|