Help please: bind 9.3.0

Mark Andrews Mark_Andrews at isc.org
Mon Jan 17 23:25:30 UTC 2005


> Hi List.
> Thanks for all the great info in the archive.
> 
> I have a strange problem.
> 
> My name-server keeps running out of memory, which is causing lookups to
> fail.
> 
> Below is an extract from the named.conf.
> 
> The bind version is 9.3.0.
> 
> The server is a dinosaur running 128MB.
> 
> 
> <snip>
> // generated by named-bootconf.pl
> acl "bogon" {
> // this list of blackhole ACLs!
>     0.0.0.0/8;
>     10.0.0.0/8;
>     127.0.0.0/8;
>     172.16.0.0/12;
> };
> 
> options {
> datasize 20M;
> max-journal-size 5M;
> interface-interval 0;
> max-cache-size 20M;
> memstatistics-file "named.memstats";
> version "port not supported";
> pid-file "/var/run/named/named.pid";
> allow-query { any; };
> 
> directory "/var/named";
>         /*
>          * If there is a firewall between you and nameservers you want
>          * to talk to, you might need to uncomment the query-source
>          * directive below.  Previous versions of BIND always asked
>          * questions using port 53, but BIND 8.1 uses an unprivileged
>          * port by default.
>          */
> // query-source address * port 53;
> 
> allow-transfer { 209.212.96.0/19; localhost; };
> 
> allow-transfer { 209.212.96.0/19; localhost; };
> 
>         blackhole {
>                 // Deny anything from the bogon networks as
>                 // detailed in the "bogon" ACL.
>         bogon;
>     };
> };
> <snip>
> 
> Any advice would be greatly appreciated.
> 
> Thanks
> 
> Tom

	You have datasize (hard limit) and max-cache-size (soft limit) 
	both set to 20M.  datasize is there to raise the default limit
	if it is too low.  max-cache-size is there to restrict the
	amount of memory used by the cache.

	datasize should be greater than max-cache-size or you will always
	hit the hard limit before you hit the soft limit which lets named
	start cleaning out old cache entries.

	Mark
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org



More information about the bind-users mailing list