Simple Python3 script to update Freemyip.com dynamic DNS.
-
Clone or download the repo.
-
Fill
tokens.csv
file with your domain & token in csv format using any text editor like the following:domain1.freemyip.com,TOKEN_OF_DOMAIN1 domain2.freemyip.com,TOKEN_OF_DOMAIN2
-
Run the script
python3 freemyip.py
-
The script could able to show the last log data without update using
log
as a parameter. i.e:python3 freemyip.py log
-
Showing log file path:
python3 freemyip.py logpath
-
New Setting the connection timeout in milli seconds. The default value is 100 ms.
python3 freemyip.py t=140
-
New Force update and force update with timeout
python3 freemyip.py f python3 freemyip.py ft=140
-
Help parameter h
python3 freemyip.py h
Hint: The above command can be added to crontab in Linux-based operating systems or any equivalent tool in other operating systems to keep automatic host update.
Introducing flooding requests inhibition on freemyip.com server, by identifying the current public IP of the host using third party api and comparing it with the last recorded log IP and last update time. In other words, if the host IP has not been changed in the last hour, for example, the updating of the specified domain will not occure.
Now TODO has been done using ipify.org api to identify the current public IP of the host.