PowerDNS Cache dump in CSV Rumi, September 17, 2011 The objective is simple, a periodic cron cache dump of powerdns recursor on a setup. 1. create a shell code as below using nano- #nano /usr/local/bin/pdns-cache-dump.sh #!/bin/sh DAY=`/bin/date +%Y%m%d` TFILE="/var/log/pdns-cache/$(basename $0).$DAY.csv" rec_control dump-cache $TFILE echo "cache dump completed, dump script by rumi (hasan.emdad@mango.com.bd)" Continue Reading
rec_control man section Rumi, September 11, 2011September 11, 2011 Name rec_control – control pdns_recursor Synopsis rec_control [–help] [–socket-dir] [–socket-pid] command .. Description rec_control(1) allows the operator to control a running instance of the pdns_recursor. The commands that can be passed to the recursor are described on http://doc.powerdns.com/rec-control.html Examples To stop the recursor by hand, run: # rec_control quit To… Continue Reading
PowerDNS: Rec Control Rumi, September 11, 2011 make rec_control be more user friendly make wipe-cache accept non-dot terminated domain names make wipe-cache return count of wiped ('wopen'?) domains document best current practice when wiping (wipe more than www.domain, wipe domain as well) REC_CONTROL(1) ============== NAME —- rec_control – control pdns_recursor SYNOPSIS ——– 'rec_control' [–help] [–socket-dir] [–socket-pid] command… Continue Reading
Cacti: PowerDNS Recursor Templates Rumi, September 11, 2011 Here are a couple of graph templates for the PowerDNS recursor. They need a shell script to be installed on the DNS server, and an net-snmp config change. Add the following to the snmpd.conf extend pdns-rec /usr/local/bin/pdns_stats.sh Put pdns_stats in /usr/local/bin, so that snmpd can find it (rename from pdns_stats.txt)…. Continue Reading
Powerdns: init.d and mrtg Rumi, September 4, 2011 As mentioned before, the init.d commands dump, show and mrtg fetch data from a running PDNS process. Especially mrtg is powerful – it outputs data in a format that is ready for processing by the MRTG graphing tool. MRTG can make insightful graphics on the performance of your nameserver, enabling… Continue Reading
Powerdns: rec_control command Rumi, September 4, 2011 The rec_control get command can be used to query the following statistics, either single keys or multiple statistics at once: all-outqueries counts the number of outgoing UDP queries since starting answers0-1 counts the number of queries answered within 1 milisecond answers100-1000 counts the number of queries answered within 1 second… Continue Reading
Insall cache only powerdns server Rumi, September 4, 2011 I decided to install another caching dns server , after some research I found PowerDNS. it uses MySQL for storing its zones , but hopefully its caching component doesnt need mysql , so great , lets go and install it. My favourite OS is debian lenny , so I ran… Continue Reading