this post was submitted on 18 Nov 2024
34 points (100.0% liked)

Selfhosted

40296 readers
344 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hi everyone!

I want this to be my first post here over Lemmy.

Recently, I moved my domains from GoDaddy to OVH due to GD's policy changes that removes the ability of using its API for updating the IP of subdomains if you don't pay more or you don't have more than X domains with them.

When I looked up for methods or APIs to update the IP of my subdomains on OVH, I realised that all the methods that I found uses the the "DynHost" option from OVH, so you need to create another subdomain with credentials, that were the one you will update with your IP, and then associate that with your real A subdomain.

I'm more an API guy, so I made a quick research and found that OVH has also API endpoints that allows to update the IP of the subdomain(s) you want, as I was doing with GoDaddy and other providers.

So I made a real simple IP updater for OVH that uses this method! Feel free to comment, use or share, this is my real first opensource and selfhosted project and I want to learn :)

you are viewing a single comment's thread
view the rest of the comments
[–] poVoq@slrpnk.net 2 points 2 days ago* (last edited 2 days ago) (2 children)

Cool. I am currently using the OVH dyndns option and it is a bit annoying that you have to update each sub-domain individually and can't just tell OVH to update all subdomains to the same new IP via a wildcard.

Is that something your script could do?

Also it seems like the OVH dyndns API currently only does either IPv4 or IPv6 but not both the same time.

Edit: Ah I see you plan to allow creating sub-domains through it. I guess that would indirectly solve my issue as well.

[–] decisoft@lemm.ee 3 points 2 days ago* (last edited 2 days ago) (1 children)

Hi!

Thanks for your feedback. First of all, I've just dropped a new update that will create a subdomain if you specify one on the environment variables that does not exist. That was a cool feature I use a lot on previous Docker images I used with other providers.

I don't know if that solves your problem (I think not), but I will be glad of hearing your issue. I don't know if you want to put a single * or something like that in the field of subdomains to update, instead of writing all down (sub1, sub2, sub3, sub4, sub5).

Regarding IPv4 and IPv6, I'm working on implement IPv6 now, I want that to be part of the next release (within one month), as well as multi-arch images. Definitely, I will try to update both at the same time as you want.

Thanks again!

Edit: and of course, feel free to open an issue to ask for more features or bug fixes you may face!

[–] poVoq@slrpnk.net 1 points 2 days ago

It does solve my problem in the sense that right now I need to configure each subdomain individually both in the OVH web-ui and then a second time on my firewall for the dyndns update. With a few dozen subdomains that is both annoying and easy to mess up accidentally.

If I can manage everything from env parameters in a single location that saves me a lot of hassle.