1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-24 07:37:04 +00:00

Document dyndns tool and add example cron job

This commit is contained in:
github@kiekerjan.isdronken.nl 2021-06-05 21:05:49 +02:00
parent 95712e196b
commit 8048656542
3 changed files with 21 additions and 0 deletions

View File

@ -41,6 +41,7 @@ Maintenance (personal)
Fun Fun
* Add option to define ADMIN_IP_ADDRESS (currently only used to ignore fail2ban jails) * Add option to define ADMIN_IP_ADDRESS (currently only used to ignore fail2ban jails)
* Add dynamic dns tools in the tools directory.
Original mailinabox content starts here: Original mailinabox content starts here:

2
tools/dyndns/cronjob.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
cd /opt/dyndns && ./dyndns.sh >> /var/log/dyndns.log 2>/dev/null

18
tools/dyndns/readme.txt Normal file
View File

@ -0,0 +1,18 @@
Files:
- dyndns.sh
Dynamic DNS main script. There should be no need to edit it.
- dyndns.domain
Fill with the top level domain of your MIAB box.
- dyndns.dynlist
Fill with subdomains for which the dynamic dns IP should be updated. One per line.
- dyndns.totp
Fill with TOTP key. Can be found in the MIAB sqlite database
- dyndns.cfg
Fill with admin user and password
- cronjob.sh
cronjob file. Edit where needed
How to use:
- Put dyndns.sh, dyndns.domain, dyndns.dynlist, dyndns.totp and dyndns.cfg in a folder on your target system. E.g. /opt/dyndns
- Put the cronjob.sh in a cron folder. E.g. /etc/cron.daily
- Edit the files appropriately