Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: documentation: DDNS example #507

Open
SpareSimian opened this issue Feb 5, 2025 · 2 comments
Open

[Feature]: documentation: DDNS example #507

SpareSimian opened this issue Feb 5, 2025 · 2 comments
Labels
enhancement issues that request a enhancement

Comments

@SpareSimian
Copy link

Description

I'd like my Linodes and my home system to automatically update their A and AAAA records in my domain when rebooted or receiving a new address via DHCP. An example script to do that would be most helpful. Perhaps added after the other examples in the README. An example with "[remote_addr]" would be ideal, but it's not clear how to get the library to choose between IPv4 and IPv6 to update the A vs AAAA record.

@SpareSimian SpareSimian added the enhancement issues that request a enhancement label Feb 5, 2025
@SpareSimian
Copy link
Author

Some info on forcing IPv4/IPv6 in requests:
psf/requests#1691
https://stackoverflow.com/questions/33046733/force-requests-to-use-ipv4-ipv6

Given how complicated that is, it does seem easier to find one's own address first using a website that only responds to IPv4 or IPv6 but not both and then use the address discovered in the Linode v4 API. Perhaps the API server can provide two URLs just for that purpose, one on each transport.

@SpareSimian
Copy link
Author

With the above clues I was able to produce this. I suggest adding it to the examples.

https://github.com/SpareSimian/LinodeDDNS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement issues that request a enhancement
Projects
None yet
Development

No branches or pull requests

1 participant