Recipe 24.8. Moving tinydns s and dnscache s Logfiles

 < Day Day Up > 

Recipe 24.8. Moving tinydns's and dnscache's Logfiles

24.8.1 Problem

By default, tinydns-conf and dnscache-conf put the logfiles in /etc/tinydns/log/main and /etc/dnscache/log/main, which are not the usual places for logfiles. You would rather move them to /var/log, where they belong.

24.8.2 Solution

To put the logfiles for tinydns in /var/log/tinydns, edit /etc/tinydns/log/run, as follows:

#!/bin/sh exec setuidgid dnslog multilog t /var/log/tinydns

Do the same for dnscache, editing /etc/dnscache/log/run, as follows:

#!/bin/sh exec setuidgid dnslog multilog t /var/log/dnscache

24.8.3 See Also

  • How to install djbdns (http://cr.yp.to/djbdns/install.html)

     < Day Day Up > 


    Linux Cookbook
    Linux Cookbook
    ISBN: 0596006403
    EAN: 2147483647
    Year: 2004
    Pages: 434

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net