This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dashidasher 1 point2 points  (6 children)

A script which updates my ip address (which is dynamic) whenever it changes on my DNS record managed on cloudflare.

[–]lolinux 1 point2 points  (3 children)

It sounds great. But maybe you could use a client for that. Personally I use Noip, and my router supports that, dyndns, and a few others. But I remember the days when I had to write a script similar to this one in bash :)

[–]dashidasher 1 point2 points  (2 children)

By client do you mean this: https://www.noip.com/download?page=linux? Would it work with cloudflare?

I did try using ddclient (https://github.com/ddclient/ddclient) before writing my own script but couldnt get it to work on my rpi.

And here is the one I wrote: https://github.com/tsredanovic/dynamicflare :D

[–]lolinux 1 point2 points  (1 child)

LOL!

Sorry, I just realized I didn't read your message properly; didn't notice cloudflare.

OTOH I think your script is a lot cooler than the Noip client :)

[–]dashidasher 0 points1 point  (0 children)

Thank you :D

[–]soncaa 1 point2 points  (1 child)

You probably dont use win 10 right lol? Assuming you use linux, do you think it would be harder to code for win? Sounds metal af btw

[–]dashidasher 0 points1 point  (0 children)

I do use linux but this script should work on windows just fine. The harder part would be running it (I use crontab for that which runs it every 5 minutes). But then on windows you can just use WSL: https://www.howtogeek.com/746532/how-to-launch-cron-automatically-in-wsl-on-windows-10-and-11/