NetTalk Central

Author Topic: NT CLient for updating DDNS for DNSSIMPLE  (Read 785 times)

rjolda

  • Sr. Member
  • ****
  • Posts: 455
    • View Profile
    • Email
NT CLient for updating DDNS for DNSSIMPLE
« on: August 13, 2026, 11:13:12 AM »
Hi,
I have a DNSSIMPLE account for my DNS resolution.  My ISP gives me a Dynamic IP address.  DNSSIMPLE has an API to update DNS records when your HOST IP address changes.
Anyone with NetWebClient code to update DNS record when the host IP address changes. 
I have set up an OAUTH token on my DNSSIMPLE account.
They have an API but I have not got it working.
Anyone have working code that they can share? 
Thanks,
Ron

Jane

  • Sr. Member
  • ****
  • Posts: 432
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: NT CLient for updating DDNS for DNSSIMPLE
« Reply #1 on: August 13, 2026, 05:13:16 PM »
No, I haven't.
Have you tried the examples in the nettalk\NetDns folder?

rjolda

  • Sr. Member
  • ****
  • Posts: 455
    • View Profile
    • Email
Re: NT CLient for updating DDNS for DNSSIMPLE
« Reply #2 on: August 14, 2026, 07:58:20 AM »
HI Jane,
I did re-look at DNS stuff. Indeed, it is the FULL API for DNSSIMPLE.  However, DNS Simple has  their own lightweight Dynamic DNS (DDNS) implementation, available at ddns.horse.
They provide a Curl example:  Here is an example using curl: curl -i "https://ddns.horse/nic/update?hostname=example.com&myip=1.2.3.4&myipv6=2001:db8::8a2e:370:7334" -u "accountid:token"
On capesoft I got the conversion
  net.Start()
  net.Authorization = net.CreateAuthorizationString ('accountid','token', Net:WebBasicAuthentication,true)
  net.Get('https://ddns.horse/nic/update?hostname=example.com&myip=1.2.3.4&myipv6=2001:db8::8a2e:370:7334')
I am using my Account ID for the authorization string "accountid"  and my OAuthToken for the 'token' part of it.

However, I am getting authorization failure. 
So, I can't get past the authorization with my credentials.  I did double check my credentials and they are correct. 
That is where I am at,
Ron

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11334
    • View Profile
Re: NT CLient for updating DDNS for DNSSIMPLE
« Reply #3 on: August 16, 2026, 03:25:21 AM »
If you run the CURL command in a command window (aka DOS prompt), does it work?

rjolda

  • Sr. Member
  • ****
  • Posts: 455
    • View Profile
    • Email
Re: NT CLient for updating DDNS for DNSSIMPLE
« Reply #4 on: August 16, 2026, 03:11:24 PM »
HI Bruce,
This is new to me as I rely on Net Talk products to do the work for me!  I did not know that I could run curl from command line.  That is a great way to test the login authorization.  Will give it a go. Thanks for the info.
Ron

Jane

  • Sr. Member
  • ****
  • Posts: 432
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: NT CLient for updating DDNS for DNSSIMPLE
« Reply #5 on: August 16, 2026, 08:09:11 PM »
Ron,
After you get it working in CURL, you can also do some testing with the web client that's in the NetDemo app in the NetTalk examples.
It's useful because you can see what's sent and received and figure out how to make things work.