Skip to content

TinyDNS aka djbdns

TinyDNS aka djbdns

Agent

If this device has no agent, install the agent and copy the tinydns script to /usr/lib/check_mk_agent/local/

Note

We assume that you use DJB's Daemontools to start/stop tinydns. And that your tinydns instance is located in /service/dns, adjust this path if necessary.

  1. Replace your log's run file, typically located in /service/dns/log/run with:

    #!/bin/sh
    exec setuidgid dnslog tinystats ./main/tinystats/ multilog t n3 s250000 ./main/
    
  2. Create tinystats directory and chown:

    mkdir /service/dns/log/main/tinystats
    chown dnslog:nofiles /service/dns/log/main/tinystats
    
  3. Restart TinyDNS and Daemontools: /etc/init.d/svscan restart

Note

svc -t /service/dns is sometimes enough. On a Gentoo install, it does not reconnect the logging. A full restart is then necessary.