Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can djbdns cache null responses?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ksool
Guru
Guru


Joined: 27 May 2006
Posts: 337
Location: Cambridge, MA

PostPosted: Tue Aug 21, 2007 6:45 pm    Post subject: Can djbdns cache null responses? Reply with quote

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
View user's profile Send private message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Tue Aug 21, 2007 7:46 pm    Post subject: Reply with quote

Because usually if there's no record, there's no TTL.
Back to top
View user's profile Send private message
ksool
Guru
Guru


Joined: 27 May 2006
Posts: 337
Location: Cambridge, MA

PostPosted: Tue Aug 21, 2007 11:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Wed Aug 22, 2007 7:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
ksool
Guru
Guru


Joined: 27 May 2006
Posts: 337
Location: Cambridge, MA

PostPosted: Thu Aug 23, 2007 1:51 am    Post subject: Reply with quote

Ok, so then I just need to setup my network's bind server to accommodate TTLS for NXDOMAINS. Done. Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum