Updates your dynamic IP using name.com services
This is useful when your have a local server in home.
Linq.py uses Python 2.7+ be careful!
$ apt install curl python
Then, download both shell scripts, then you just to execute this script once with this:
$ bash curl.sh <instance_id> <your_username> <your_password> <server> <hostname> (debug)
- Note: use optional debug param to know state of the execution.
In my case:
$ bash curl.sh home_network z3nth10n blablabla z3nth10n.net home
$ bash curl.sh vpn_server z3nth10n blablabla z3nth10n.net vpn_server
Note: If you need to know your API token, please review this link.
This will update the A record for my home
subdomain in name.com:
Then, configure a Cron task:
$ crontab -e
Append this line:
@hourly /<path>/curl.sh <instance_id>
In my case:
@hourly /root/curl.sh home_network
@hourly /root/curl.sh vpn_server
This will execute this script every hour, keeping in track new IPs changes.
Also read: https://man7.org/linux/man-pages/man5/crontab.5.html & https://crontab.guru/
Copyright (c) 2022 z3nth10n (VIZZUTA).
License: MIT