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)" #chmod 0777 /usr/local/bin/pdns-cache-dump.sh 2. create directory to store the dump files #mkdir /var/log/pdns-cache #chown -R pdns-recursor /var/log/pdns-cache 3. Add it to CRON (you can use webmin for this) Go to Webmin's System > Schedule CRON Jobs > Create a new scheduled CRON job and add- Execute CRON as- root Active- Yes Command- /usr/local/bin/pdns-cache-dump.sh When to execute- Simple Schedule (Daily at midnight) Leave other parts as default "Save" It's done 🙂 Related Administrations Configurations (Linux) Debianpowerdns
Apache error fix on Forbidden You don’t have permission to access this resource June 30, 2020 Tested and works on Debian/Ubuntu apache installation. For this open the apache2.conf file using the nano editor sudo nano /etc/apache2/apache2.conf Replace the general directory settings with this. <Directory /> #Options FollowSymLinks Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order deny,allow Require all granted </Directory><Directory /usr/share> AllowOverride None Require all granted… Read More
Setup a Site to Site IPsec VPN With Strongswan and PreShared Key Authentication March 25, 2019March 25, 2019 Today we will setup a Site to Site ipsec VPN with Strongswan, which will be configured with PreShared Key Authentication. After our tunnels are established, we will be able to reach the private ips over the vpn tunnels. Get the Dependencies: Update your repository indexes and install strongswan: $ apt… Read More
Submit the Google or Gmail Bulk Sender Form November 8, 2023 Found this article quite useful! Description While Gmail does not offer up a contact path to discuss deliverability issues directly with a Google representative, there is a way for clients to reach out to Google to ask them to reconsider spam folder delivery. Resolution Go to the Bulk Sender Contact… Read More