IONOS DynDNS Api - HowTo

Started by BGP4, April 26, 2025, 04:15:47 PM

Previous topic - Next topic
Hi,

let's start giving sth. to the community, before posting ask-posts...

How-To Setups IONOS API with Dynamic DNS?

1. Install ddclient Package
2. Goto Services>Dynamic DNS
3. Check if General Settings is to "native" for backend
4. Use the Update URL from IONOS Manual [1]
5. Add Account (+) with: Service: custom, Protocol: Custom GET
   For Server put: https://ipv4.api.hosting.ionos.com/dns/v1/dyndns?q=xxxxxxxxxxxxxxxxxxxxxxSECRETxxxxxxfromxxxxAPIxxxxPortal&ipv4=__MYIP__
   Hostname: Your DynDNS Hostname which should be the same as in API command
   Check ip method: Interface [IPv4] if direct dialin/connection (OPNsense knows WAN IP)
   Interface to monitor: WAN IF (e.g. VLAN 7 or PPoE)
   Force SSL: enabled (default)

The main difference which can cause problems is:
1. You try POST instead of GET (because IONOS writes about POST...)
2. You can use the GET URL in your Browser and it works without &ipv4=__MYIP__ but if you dont add this in this Server URI, it wont work.
Logs are so bad, even on verbose, there should be a much more detailed Web-UI for debugging this...

Anyway i hope someone finds this information usefull.
if so, please just reply if it worked for your.





[1] https://www.ionos.de/hilfe/domains/ip-adresse-konfigurieren/dynamisches-dns-ddns-einrichten-bei-company-name/

April 27, 2025, 08:40:25 PM #1 Last Edit: April 27, 2025, 08:43:15 PM by bringha
That's really interesting!
However, I have some difficulties to map your Server Update URL to the Update URL format given in [1].

The format as being defined in [1] look like
https://ipv4.api.hosting.ionos.com/dns/v1/dyndns?q=ZsWxJSLcX8Dpy40nu0fhycBXdnnTb0gM2yqKS3Xcmx4c3yA6EhZp3Sg0467MRvdn6dU4P0kQntSeskxpYsFMxXnrKmW8teSHSHc3eefgYu4tjb2veJH4tESXaTmW4tvNW6nrtSm6Vb6E7e2SpuqqjvFaqbBS4XGCS.
You may complement this with &ipv4=...&ipv6=... parameters which I could get working only so far from a FritzBox accordingly to have the desired result of an A AND an AAAA record in IONOS DNS for my domain. With all other routers, I could achieve only either or (either A or AAAA record). Even separate entries for ipv4 and ipv6 in dyndns config did not work.

Considering the format you mention though reads like there are some more parameters in your URL which leads to some questions:

1.) What means SECRET, API, from, PORTAL and from where are the required values here shown as xxxxx..... coming from?
2.) I assume that __MYIP__ is filled automatically by the check ip method ?!
3.) Is there a complement also for ipv6, eg __MYIPv6__ ?

Looking forward to a short reply

Br br