https://github.com/kilgoretrout1985/pdns-mysql-domain-exp
Small cli/cron tool to check and email you when domains, stored in PowerDNS & MySQL, are about to expire.
https://github.com/kilgoretrout1985/pdns-mysql-domain-exp
cli cron domains expiration expiration-control pdns pdns-mysql powerdns python3-only python3-script whois
Last synced: 3 months ago
JSON representation
Small cli/cron tool to check and email you when domains, stored in PowerDNS & MySQL, are about to expire.
- Host: GitHub
- URL: https://github.com/kilgoretrout1985/pdns-mysql-domain-exp
- Owner: kilgoretrout1985
- License: mit
- Created: 2019-05-08T11:16:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-03T12:46:55.000Z (over 4 years ago)
- Last Synced: 2025-03-13T11:26:22.730Z (7 months ago)
- Topics: cli, cron, domains, expiration, expiration-control, pdns, pdns-mysql, powerdns, python3-only, python3-script, whois
- Language: Python
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# What is it
Small cli/cron tool to check and email you when your domains, stored in
[PDNS](https://en.wikipedia.org/wiki/PowerDNS) & 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
```