Skip to content

ctrl-freak/dnsrmon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dnsrmon

DNS Record Monitor

Monitors changes in DNS records on DNS servers and sends an email when anything is different.

Requirements

  • PHP
  • MySQL
  • Port 53 open outbound

Installation

  1. cd /var/www
  2. git clone https://github.com/ctrl-freak/dnsrmon.git
  3. Import dnsrmon.sql to create database and tables
  4. Create MySQL user with full access to database
  5. cd dnsrmon
  6. cp example.config.php config.php
  7. Edit config.php with SQL and SMTP details
  8. cd lib/
  9. git clone https://github.com/purplepixie/phpdns
  10. git clone https://github.com/PHPMailer/PHPMailer
  11. Set up a cron job:
    crontab -e
    */5 * * * * wget -qO- http://localhost/dnsrmon/?cron --delete-after &> /dev/null
  12. Add a server in the dnsservers table:
    INSERT INTO 'dnsservers' ('address', 'label', 'enabled') VALUES ('8.8.8.8', 'Google', 1);
  13. Add DNS records to domains table

Releases

No releases published

Packages

 
 
 

Languages