News for hackers. Stuff that matters.
Re:WireGuard is now in Linus' tree by Polylactic_acid on Tuesday January 28, 2020 @11:36PM (#22177483)
I have a rpi set up with a minutely cron job to update my domain name to point to home. Works pretty well. At the worst you lose connection for a minute but usually the IP address only changes when the home connection fails which can take more than a minute to reset anyway.
Re:WireGuard is now in Linus' tree by core-questions on Wednesday January 29, 2020 @01:29AM (#22178000)
Isn't this what the DynDNS protocol and various daemons are for? Why write your own? :P
Re:WireGuard is now in Linus' tree by input_sh on Wednesday January 29, 2020 @01:42AM (#22178070)
That's precisely how they work. You install a client that pings their server. They see if there's an IP address change and switch the A DNS record.

If your DNS provider has an API, this is probably the very first example in the docs.

Re:WireGuard is now in Linus' tree by gjhr on Wednesday January 29, 2020 @04:08AM (#22178719)
Why not? It is pretty simple and very fun! My first project in golang was a program that polled for the machine's IP address and updated a AWS Route53 record.
Re:WireGuard is now in Linus' tree by canofbars on Wednesday January 29, 2020 @05:04AM (#22179004)
Its not exactly "write your own" I have a single line in my crontab that just uses curl to post to a url and the remote server takes the IP address it got the request from and sets the dns to that.
Re:WireGuard is now in Linus' tree by cbzbc on Wednesday January 29, 2020 @06:33AM (#22179447)
Though usually on firmware like openwrt the request going out is tied to a particular interface going up (and down) as it should be, so its somewhat more robust and 'correct' than crontab would be.