Dynamic DNS + one.com?
-
I made a python script that lets you dynamically change the IP address a dns entry is pointing to.
So far it only works for type A record subdomains. If you need a different type, please try to reconfigure the script yourself. If you're not experienced with python, you can contact me and i will try to adapt the script.=== IMPORTANT EDIT ===
There isa new version of this script, and alsoa GitHub Repository.
Most recent version will always be on GitHub!The outdated script can be found here:
http://lugico.de/ddns.py
Everything below is old.
=====================execute it like this:
python3 ddns.py youripaddress
Run this every once in a while, maby through crontab, and you should be good.
you can get your ip address in plain text from this address: https://api.ipify.org/?format=text
combining the two could look like this (on linux):
IP=$(curl https://api.ipify.org/?format=text); python3 my_ddns.py $IP
Also, i dont speak swedish, i used google translate.
If you need any help using the script, feel free to contact me through this email: main@lugico.de -
Thank you for the script, it works perfectly for me
-
@technoid-se hi! is it still working?, been looking everywhere for something like this.
-
@hellfire Yes the script should still be working, but you won't need to get your IP address beforehand andymore. The script will do that for you. I can send you an updated version, that is even simpler to use.
-
Ok for everyone still finding this thread:
I made a new, updated version, that is much simpler to use.
https://lugico.de/one_com_ddns.py
Most recent version can be found on GitHubEdit the file beforehand to fit your needs. All the things you might have to change are in the top few lines. Execute it like this:
python3 one_com_ddns.py
python can be downloaded and installed from here: https://www.python.org/downloads/
or on debian / ubuntu based machines, including raspberry pi OS, it can be installed using apt:sudo apt-get install python3
You will also need to install the requests package.
sudo pip3 install requests
or
sudo pip install requests
on windows just remove the "sudo"
-
@lugico Thanks a lot, this well spare me 3rd party apps & the monthly verification.
I'm adding some keywords to make users find this (both swedish and English) :
dynamic ip one.com, update DNS automatically with your dynamic ip
dynamiskt ip one.com, uppdatera dns automatiskt med ditt dynamiska ip -
@lugico couldn't get it to work, got username, PW, and id number, domain everything is correct.
I noticed the id number is different depending on what subdomain you want to change..{"result":null,"metadata":{"messages":[{"text":"No matching order found for current user matching requested domain name","code":"CRMRST_000302","arguments":null,"type":"error"}]}} 89.160.xxx.xxx (my ip)
-
-
@lugico will try, your previous link to the new script, links to the old one...
-
@lugico it worked fine!
.. now I just need to learn python, so it can be tweaked (would be great if it saved the last updated ip and checked if the ip has changed before it logs in and update it) -
@hellfire I just added this feature. If you click the link again you should get the new version. It saves the last IP address in a file ("lastip.txt") and only if the content of the file and the current IP address don't match, the script gets executed.
-
@lugico Works perfect! thx a lot!
-
feature request created: https://redmine.pfsense.org/issues/11293
-
@Lugico Is it so that I missed this terrific script by a mere half year?
(ie. the link provided above now leads to 404 page) -
Hi @eriond
I did some restructuring on my Website and forgot about the script.
Check the link again in a few minutes, I'll update it right now. -
@lugico Excellent, thank you! If there is a way to make it permanently available, like via the wayback machine or something similar, that would be great...
-
https://pastebin.com/uCeZ8eKK
Made a pastebin with the Script in case my Website ever doesn't work.Edit: There is a GitHub Repo now
-
Hello everyone,
as of recently one.com has changed their login back end. Therefore some changes on the script were necessary.I have updated the script to work again as of Sep. 7th 2021.
The newest version is again available on my website (direct download), pastebin and now also on GitHub
Please always use the GitHub, as it's the most recent version.
-
@lugico Thank you!
Really appreciate it! -
@lugico I literally just registered on this website to say thank you!! You are my hero for making this script. Please notify us should you ever consider not supporting this script anymore!
You could also have a look at this question over on SO. Maybe we can rely on this "network interface restarts when ISP IP changes" and automatically run the script whenever that happens!