The following get request is returning an error:
https://api.dynadot.com/api3.xml?key=mykey&domain=mydomain.com&command=add_ns&host=ns1.mydomain.com
<?xml version="1.0"?>
<AddNsResponse>
<AddNsHeader>
<SuccessCode>-1</SuccessCode>
<Status>error</Status>
<Error>problem with connection to main server</Error>
</AddNsHeader>
</AddNsResponse>
I was able to successfully use the register_ns command, now I'm trying to set that name server to be the name server of a particular domain.
Thanks
C
Posted By teamdynadot09/14/2017 21:09
teamdynadot replied dupersuperluper
Hi there, you should use the set_ns command to assign the name servers you've registered to your domain, that command can be found here:
https://www.dynadot.com/domain/api3.html#set_ns
The command itself is:
https://api.dynadot.com/api3.xml?key=mykey&command=set_ns&domain=domain1.com,domain2.com&ns0=ns1.hostns.com&ns1=ns2.hostns.com
Hope this helps.
<Error>problem with connection to main server</Error>