**How do I update my IP using curl and dynhost?*
Hello everyone,
I have the following problem :
I would like to dynamically update my ip for my .ovh domain.
I therefore created a dynhost user+password login pair, set as:
Username: mydomain.ovh-dynaddress
Password: [Of course I'm not givin it there]
Subdomain: *
Is my hosting/server with OVHcloud? No, I am hosting my website on a local server. The website is reached fine, but sometimes my IP changes and I want to fix that.
As my router does not really go well with custom dyndns services, I want to use the CURL utility in order to automate the ip address update.
I am then using the URL given by OVH documentation, and my curl request looks like this:
`curl --user "**mydomain.ovh-dynaddress**s:**password** " https://www.ovh.com/nic/update?system=dyndns&hostname=mydomain.ovh&myip=1.2.3.4.5`
But I keep getting the error:
Unauthorized
This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.
Apache Server at www.ovh.com Port 443
``
What am I doing wrong here?