Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Description:
# Update the DNS A Record with your public IP address for the one.com host.
#
# Recommendation:
# - Create a separate user that can only access the DNS records.
# - Create a cron tab to run this script every 30 minutes:
# crontab -e
# */30 * * * * ~/Scripts/update-dns-one.com.sh >/dev/null 2&>1
# - To get the Sub Domain Id you will have to manually update the domain and record the network traffic using your browser