You are not logged in.

#1 2012-02-18 09:45:10

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

[solved] disable reverse dns caching (pdnsd)

Hey guys, i have setup pdnsd for dns caching, and it's working fine. There's a small issue though. I would like to disable caching for reverse dns lookups. This is because the cache file is getting filled up with thousand of such entries, due to p2p software such as rtorrent.

Is there an option for the pdnsd.conf file which can disable this feature?

Last edited by x33a (2014-01-23 05:51:37)

Offline

#2 2012-02-18 12:19:15

Thorsten Reinbold
Member
From: Germany
Registered: 2011-12-06
Posts: 353

Re: [solved] disable reverse dns caching (pdnsd)

Have a look at the pdnsd's config file. You'll find this section:

rr {
	name=localhost;
	reverse=on;
	a=127.0.0.1;
	owner=localhost;
	soa=localhost,root.localhost,42,86400,900,86400,86400;
}

Change the setting "reverse" to "off" should do the trick.

Offline

#3 2012-02-18 14:18:22

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [solved] disable reverse dns caching (pdnsd)

It didn't fix it. Anyway, i thought that rr section was for defining local dns ip.

Here's my pdnsd.conf for reference.

http://sprunge.us/jHfL

Offline

#4 2012-02-29 06:48:50

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [solved] disable reverse dns caching (pdnsd)

After extensive searching, I found that this can be achieved by disabling PTR rr type, but pdnsd won't run without it.

For reference purpose:

Support for different rr types can be disabled by modifying src/rr_types.in accordingly (source code file). unfortunately, PTR along with a few other rr types is essential to pdnsd, so disabling it is not an option.

Offline

Board footer

Powered by FluxBB