Moving tinydns’s and dnscache’s Logfiles

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.

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