mirror of
https://codeberg.org/shm0rt/ddns-pdns-updater.git
synced 2025-07-30 05:49:07 +02:00
55 lines
800 B
Markdown
55 lines
800 B
Markdown
|
# Pdns-ddns
|
||
|
## check dependencies:
|
||
|
- cron
|
||
|
- curl
|
||
|
- wget
|
||
|
- pdnsutil
|
||
|
(- pdnscontrol)
|
||
|
- sh
|
||
|
- dig
|
||
|
- syslog
|
||
|
(-v --version)
|
||
|
|
||
|
## check for access dir and access files and create if not created (populate)
|
||
|
config
|
||
|
init_function
|
||
|
|
||
|
## parameter
|
||
|
--help|-h
|
||
|
--config-file
|
||
|
--verbose|-v
|
||
|
--force|-f
|
||
|
|
||
|
|
||
|
## logging functions
|
||
|
info, error, warnings
|
||
|
|
||
|
## ip change detection
|
||
|
check_infomaniak_ip
|
||
|
providers: cloudflare, quad9, google, amazon, opendns, akamai
|
||
|
check_for_ip_change
|
||
|
check_infomaniak_zone
|
||
|
check_pdns_zones
|
||
|
|
||
|
## update ip
|
||
|
update_infomaniak_ip
|
||
|
### update infomaniak zone
|
||
|
update_infomaniak_zone
|
||
|
### update powerdns zones
|
||
|
update_pdns_zones
|
||
|
|
||
|
main
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/usr/local/bin/update-ddns # Script
|
||
|
/etc/update-ddns.conf # Config
|
||
|
/var/lib/update-ddns/ip.history # State + History
|
||
|
#### syslog für events
|