dnsperf and BIND memory consumption

Dmitry Rybin kirgudu at corbina.net
Thu Dec 18 14:14:06 UTC 2008


JINMEI Tatuya / 神明達哉 wrote:
>>
>>> Have you any ideas how to limit memory usage?
>> Unfortunately not, unless you can consolidate the caching views to a
>> small number of views.
> 
> If you can allow the multiple views to share a single cache, one
> possibility is to create a separate "localhost" view as the single
> caching view and forward all recursive queries to that view:
> 

I add this lines in named.conf
clients IP in this view can't resolve recursive queries.

view "localhost" {
        match-clients { ::1; };
};

view "view7" {
	....
	max-cache-ttl 0;
	zone "." {
		type forward;
		forwarders { ::1; };
		forward only;
	};
};


Trying to use
view "localhost" {
        match-clients { ::1; };
      zone "." {
              type hint;
              file "named.root";
      };
};

has the same result.

> view "localhost" {
> 	match-clients { ::1; };
> };
> 
> view "view1" {
> 	match-clients { view1-clients; };
> 
> 	max-cache-ttl 0;  //disable caching to save memory
> 	zone "." {
> 		type forward;
> 		forwarders { ::1; };
> 		forward only;
> 	};
> 	// add other authoritative zones if necessary
> };
> 
> view "view2" {
> 	match-clients { view2-clients; };
> 	max-cache-ttl 0;
> 	zone "." {
> 		type forward;
> 		forwarders { ::1; };
> 		forward only;
> 	};
> 	// add other authoritative zones if necessary
> };
> 



More information about the bind-users mailing list