Previous Section  < Day Day Up >  Next Section

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

    Previous Section  < Day Day Up >  Next Section