DNS troubleshooting and log rotation

Mathias Koerber mathias at staff.singnet.com.sg
Thu Feb 17 01:13:01 UTC 2000


On Thu, 17 Feb 2000 srp336 at my-deja.com wrote:
| 
| Also...can a running name server daemon be given some sort of signal to
| get it to rotate its logs to log.0, log.1, etc. and open a new current
| log? Do I need to stop and restart the daemon for that?

You can set in the config file a size-limit for each logfile, and BIND
will automatically rotate it. You can also specify how many versions
it is to keep.

If you want to specifi a log-file rotation immediately (eg
exactly at midnight etc), you can do this:
	# mv log.3 log.4
	# mv log.2 log.3
	# mv log.1 log.2
	# mv log.0 log.1
	# mv log log.0
	# ndc reload

As the logfile does not longer exist under the name, a reload will create
a new logfile.

I did ask (as part of our Bronze support contract) to provide a faciliy to
*only* closes/reopenes logfiles without the added overhead of a reload to 
facilitate this a bit better.  Hopefully it will make it into BIND-9.

It gets more complicated if you GZIP (or otherwise compress) the logfiles,
so they no longer conform to the naming scheme BIND expects....

regards

| 
| Thanks!
| 
| Steve Pfister
| srp336 at optimum.com
| 
| 
| Sent via Deja.com http://www.deja.com/
| Before you buy.
| 

Mathias Koerber	  | Tel: +65 / 471 9820    |   mathias at staff.singnet.com.sg
SingNet NOC	  | Fax: +65 / 475 3273    |            mathias at koerber.org
Q'town Tel. Exch. | PGP: Keyid: 768/25E082BD, finger mathias at singnet.com.sg
2 Stirling Rd     |      1A 8B FC D4 93 F1 9A FC BD 98 A3 1A 0E 73 01 65
S'pore 148943     | Disclaimer: I speak only for myself
* Eifersucht ist eine Leidenschaft, die mit Eifer sucht, was Leiden schafft *




More information about the bind-users mailing list