Help please: bind 9.3.0

Thomas Kinghorn [MTNNS -Rosebank] thomask at mtnns.net
Tue Jan 18 05:19:08 UTC 2005


Hi List.

Many thanks to all that replied.

Both Datasize and cache size have been increased.

Regards

Tom=20

-----Original Message-----
From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org] On
Behalf Of Mark Andrews
Sent: 18 January 2005 01:26 AM
To: Thomas Kinghorn [MTNNS -Rosebank]
Cc: bind-users at isc.org
Subject: Re: Help please: bind 9.3.0=20


> Hi List.
> Thanks for all the great info in the archive.
>=20
> I have a strange problem.
>=20
> My name-server keeps running out of memory, which is causing lookups=20
> to fail.
>=20
> Below is an extract from the named.conf.
>=20
> The bind version is 9.3.0.
>=20
> The server is a dinosaur running 128MB.
>=20
>=20
> <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;
> };
>=20
> 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; };
>=20
> 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;
>=20
> allow-transfer { 209.212.96.0/19; localhost; };
>=20
> allow-transfer { 209.212.96.0/19; localhost; };
>=20
>         blackhole {
>                 // Deny anything from the bogon networks as
>                 // detailed in the "bogon" ACL.
>         bogon;
>     };
> };
> <snip>
>=20
> Any advice would be greatly appreciated.
>=20
> Thanks
>=20
> Tom

	You have datasize (hard limit) and max-cache-size (soft limit)=20
	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