News for hackers. Stuff that matters.
Re:Free DDNS with Cloudflare and a Cronjob by tcfhgj on Saturday July 27, 2024 @12:34PM (#41087642)
could you not retrieve your ipv6 directly from the system?
Re:Free DDNS with Cloudflare and a Cronjob by codetrotter on Saturday July 27, 2024 @01:29PM (#41088045)
Yes, but getting it in a response from an external server means I don’t have to be specific about which interface to get the IPv6 address of and so on.
Re:Free DDNS with Cloudflare and a Cronjob by tcfhgj on Saturday July 27, 2024 @01:37PM (#41088116)
the same specific interface used to contact the external server
Re:Free DDNS with Cloudflare and a Cronjob by codetrotter on Saturday July 27, 2024 @02:14PM (#41088340)
Which is neatly abstracted away so you don’t have to think about it unless you want to. And therefore reaching out to an external server and having it say where the request came from is the path of least resistance for a script that can work across different hosts with minimal machine specific configuration.

Listen, if you want to check the IPv6 address from the interface list go ahead I’m not trying to stop you.

But because I anyway need to reach a third party to know my own IPv4 address then yeah when that third party can also tell me IPv6 address I’m gonna do it that way.

Re:Free DDNS with Cloudflare and a Cronjob by wizzwizz4 on Saturday July 27, 2024 @02:00PM (#41088256)
i.e., an arbitrarily-selected interface capable of reaching Cloudflare.
Re:Free DDNS with Cloudflare and a Cronjob by graton on Saturday July 27, 2024 @07:31PM (#41090123)
That requires running it on the router/device which gets the public IP address. By using the service you can update your DNS IP address on a system that is behind the router.
Re:Free DDNS with Cloudflare and a Cronjob by tcfhgj on Sunday July 28, 2024 @03:25AM (#41091773)
What do you mean?

Every device gets a public ipv6 (usually).

Re:Free DDNS with Cloudflare and a Cronjob by graton on Sunday July 28, 2024 @11:26AM (#41093853)
I have a router connected to the internet, it gets the public IP address.

The router is connected to the internal network in my home and has the IP address of 192.168.1.1.

Behind the router is my computer which has a non-public IP address, for example 192.168.1.2. My computer is the one I want to run the program to update the DNS entry. My computer does not know what the public IP address is by looking at its interfaces.

Re:Free DDNS with Cloudflare and a Cronjob by tcfhgj on Sunday July 28, 2024 @02:50PM (#41095107)
We're talking ipv6 not ipv4
Re:Free DDNS with Cloudflare and a Cronjob by graton on Monday July 29, 2024 @02:19AM (#41098296)
I think the same situation applies for IPv6 if you are behind a router.
Re:Free DDNS with Cloudflare and a Cronjob by tcfhgj on Monday July 29, 2024 @03:58AM (#41098687)
No, it doesn't
Re:Free DDNS with Cloudflare and a Cronjob by graton on Monday July 29, 2024 @12:14PM (#41101531)
I'll agree to disagree :)
Re:Free DDNS with Cloudflare and a Cronjob by tcfhgj on Tuesday July 30, 2024 @02:48AM (#41106626)
Re:Free DDNS with Cloudflare and a Cronjob by graton on Tuesday July 30, 2024 @11:02AM (#41109841)
As I've said before. The server behind the router does not have a public IPv6 address. It is NATed to the Internet. Getting the internal IPv6 address is useless for this case.

I do not like to have the servers/computers that are on the internal home network directly connected to the Internet.

Re:Free DDNS with Cloudflare and a Cronjob by tcfhgj on Thursday August 01, 2024 @03:50AM (#41127013)
Nating in the context of ipv6 is not a common thing. It is the exception, while it's the rule for ipv4