BIND 8.2.3 and query.log

Warron French wfrench at winstar.com
Mon Apr 9 19:57:42 UTC 2001


Michael Steeves wrote:

> * Warron French (wfrench at winstar.com) [010409 15:03]:
> > Can someone tell me what is wrong with the following syntax if
> > anything?  I am trying to get multiple copies of query.log saved, a
> > total of five (5) is all I need or want to keep.  And to cause the
> > query.log to rollover once a week (unless problems occur).
> >
> > Here is the syntax from the named.conf file:
> >
> > logging {
> >         channel my_querylog {
> >                 file "/var/adm/query.log" versions 5 size 10m;
> >                 print-time yes;
> >                 };
> >         category queries { my_querylog; };
> > };
> >
> > This exact syntax is used in multiple named.conf files on many systems.
> > One some systems it works, others it does not.  Anything else I can
> > provide to help solve my issue?  I don't have anything broken, but I
> > expect more query.log files  (i.e.   query.log.0 query.log.1  etc...)
>
> >From version 3 of _DNS and BIND_, page 152:
>
> "If you specifiy that there can be three versions, BIND 8 will keep
> around <file>, <file.0>, <file.1> and <file.2>.  After the name server
> starts or after it is restarted by a HUP signal, it will move <file.1>
> to <file.2>, <file.0> to <file.1>, <file> to <file.0>, and start a new
> copy of <file>.  If you specify unlimited versions, BIND 8.1.2 will
> keep 99 versions.
>
> "If you specify a maximum file size, BIND 8 will stop writing to the
> file after it reaches the specified size.  Unlike the versions clause
> (mentioned in the last paragraph), the file will not be rolled over
> and a new file opened when the specified size is reached.  The name
> server just stops writing to the file."
>
> In order to get the behavior you want, you'll need to use something
> from cron to send a HUP signal to named in order to get the log file
> rollover, something that may or may not be a good idea (I'll let those
> better versed in BIND then I to field that one).
>
> -Mike
> --
> Michael Steeves                         |       Phone:  617-577-6000
> michael_steeves at vpharm.com              |       Fax:    617-577-6105
> Senior Network Systems Engineer         |
> Vertex Pharmaceuticals                  |

So, what you are saying is that my syntax is already correct for performing
the task that I want other than the log rollover?


--
Warron French
Mailstop C-3732
2350 Corporate Park
Herndon VA 20171-2882
703-889-2363



-- Binary/unsupported file stripped by Listar --
-- Type: text/x-vcard
-- File: wfrench.vcf
-- Desc: Card for Warron French




More information about the bind-users mailing list