DNS Record Monitor
Monitors changes in DNS records on DNS servers and sends an email when anything is different.
- PHP
- MySQL
- Port 53 open outbound
cd /var/www
git clone https://github.com/ctrl-freak/dnsrmon.git
- Import
dnsrmon.sql
to create database and tables - Create MySQL user with full access to database
cd dnsrmon
cp example.config.php config.php
- Edit
config.php
with SQL and SMTP details cd lib/
git clone https://github.com/purplepixie/phpdns
git clone https://github.com/PHPMailer/PHPMailer
- Set up a cron job:
crontab -e
*/5 * * * * wget -qO- http://localhost/dnsrmon/?cron --delete-after &> /dev/null
- Add a server in the
dnsservers
table:
INSERT INTO 'dnsservers' ('address', 'label', 'enabled') VALUES ('8.8.8.8', 'Google', 1);
- Add DNS records to
domains
table