Skip to content

Small cli/cron tool to check and email you when domains, stored in PowerDNS & MySQL, are about to expire.

License

Notifications You must be signed in to change notification settings

kilgoretrout1985/pdns-mysql-domain-exp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it

Small cli/cron tool to check and email you when your domains, stored in PDNS & MySQL, are about to expire.

Python 3 only.

Install

Copy this into terminal:

git clone https://github.com/kilgoretrout1985/pdns-mysql-domain-exp.git && \
cd pdns-mysql-domain-exp/ && \
python3 -m venv _env && \
source _env/bin/activate && \
pip3 install -r requirements.txt && \
cd pdns-mysql-domain-exp/

Settings

Edit settings.py and at least configure your MySQL connection(s) to powerdns db and email to receive reports. All other settings are optional.

Run

python3 domain_check.py

or better add to cron full path like so (do not loose your virtualenv!):

/home/user/scripts/pdns-mysql-domain-exp/_env/bin/python3 /home/user/scripts/pdns-mysql-domain-exp/pdns-mysql-domain-exp/domain_check.py

About

Small cli/cron tool to check and email you when domains, stored in PowerDNS & MySQL, are about to expire.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages