Automated NameSilo DNS A record update with current IP. Run on a machine on your network and it will auto-update NameSilo DNS records and subdomains with your current IP. If a subdomain is provided that doesn't exist, it's created in the process.
Just update the script with your NameSilo API key, desired domain or subdomain names, and run the script using cron (e.g., in pfsense or on any machine in your network).
Useful for connecting to your home network without a static IP.
- Python 3
- Python "requests" module installed. E.g.,:
python3 -m ensurepip
python3 -m pip install requests
python3 -m pip install --upgrade pip
- xml module
-
Copy the python script "ddns_namesilo_update.py" to your system
-
Edit ddns_namesilo_update.py and change the variables ot suit your environment:
API_KEY
- (from NameSilo account page)DOMAIN
- domain name (e.g.,"example.com"
)SUB_DOMAIN
- sub domains ofDOMAIN
in list format (e.g.,["wiki","mail"]
)
-
Create a cron job to run the script, being mindful of API limits of the provider. E.g.,:
*/5 * * * * root /usr/local/bin/python3 <path to file>/ddns_namesilo_update.py | /usr/bin/logger -t ddns_namesilo_update