Dynamic DNS REST API

Advanced feature discussion, beta programs and unsupported "Labs" features.
16 posts Page 1 of 2
by williamt » Thu Feb 21, 2013 3:09 pm
We have put together a REST API so customers can dynamically update their DNS.

The API,documentation and usage examples are available here: https://public-api.sonic.net/dyndns
Note this is only available via https not http.

Since this is a labs project please direct any questions to the forum as support will not be able to assist you.
Sr. Systems Administrator @ sonic.net
by Guest » Fri Feb 22, 2013 5:34 pm
Cool!
by dane » Fri Feb 22, 2013 7:41 pm
Do post if you develop an application that uses the API.
Dane Jasper
Sonic
by netllama » Sun Feb 24, 2013 8:36 am
I guess I'm confused. What does this do for me that wasn't possible before?
by jon » Sun Feb 24, 2013 12:33 pm
If your version of curl uses an older version of OpenSSL (e.g, 0.9.8) and you get the following error:

curl: (35) error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112)

try adding the "-3" option to the curl command, e.g,

Code: Select all

curl -3 -X GET https://public-api.sonic.net/dyndns/ip
Ref: http://carnivore.it/2011/10/07/error_14 ... eason_1112
by kgc » Sun Feb 24, 2013 7:55 pm
netllama wrote:I guess I'm confused. What does this do for me that wasn't possible before?
With this API and a little programming you could build a dynamic dns system - this allows you to associate a host name with a computer that does not have a static ip address. There are several commercial (and free?) dyndns services out there but this is unique in that it allows you to use your domain hosted with us.
Kelsey Cummings
System Architect, Sonic.net, Inc.
by klui » Sun Feb 24, 2013 10:40 pm
kgc wrote:With this API and a little programming you could build a dynamic dns system - this allows you to associate a host name with a computer that does not have a static ip address. There are several commercial (and free?) dyndns services out there but this is unique in that it allows you to use your domain hosted with us.
I'm confused by what you wrote. Does this mean we could use this API to query our public IPs even though we don't have a domain or do we need to have a domain before we could use the API?

I attempted to list API keys but get
{"message":"Unauthorized : you are not authorized to access this information.","result":"401"}

Or do I just need to request an API key and think up a hostname and that will work? The above only worked with a JSON POST and not Form POST because I have non-alpha numeric characters in my password. I used HTML quoting.


Thanks.
by netllama » Mon Feb 25, 2013 7:17 am
kgc wrote:
netllama wrote:I guess I'm confused. What does this do for me that wasn't possible before?
With this API and a little programming you could build a dynamic dns system - this allows you to associate a host name with a computer that does not have a static ip address. There are several commercial (and free?) dyndns services out there but this is unique in that it allows you to use your domain hosted with us.
Ah, that's the part that I was missing. I need to be hosting a domain with you. Since I already have a dyndns hostname from some other service, this new service doesn't seem to be targeted at me.
by augie » Mon Feb 25, 2013 2:48 pm
I have written a Perl example of using the API and posted it here:

https://github.com/augieschwer/SonicDynDNS

It is also a test suite for the entire API and documents some of the return codes you might see in error cases.

If folks have other language examples, I could add them to the above repository too.
by klui » Mon Feb 25, 2013 3:10 pm
augie wrote:I have written a Perl example of using the API and posted it here:
No encode() necessary for the password?
16 posts Page 1 of 2