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/
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/