Check the DNS Record matches the current IP and alert when it's not.
- pfsense 2.7.2
- Uptime Kuma
In Uptime Kuma create a Push Monitor and note the Push URL.
Download script to your pfsense home directory
wget https://github.com/hhanzo1/check-tunnel/blob/main/check-ddns-record.sh
chmod +x check-ddns-record.sh
Replace the domain in the BASE_URL and DOMAIN.
Test the script is running as expected by running manually, then scheduled via cron.
# Run every hour
0 * * * * /home/[USERID]/check-ddns-record.sh
If the Push URL does not receive a HTTP request within Heart Beat internal (default 60 seconds), an alert can be triggered.
Status and Uptime Uptime Kuma Badges can be configured.