Are you sure you want to close the chat?Chat will be closed and the chat history will be cleared.
continue to sign out,
or stay on chat.
To review this chat session please click this windows.
Chat Online
Chat Online0
Support

Forum

A place for Dynadot and community experts alike to ask questions, share ideas, and more.
problem with connection to main server
9/12/2017 12:00
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
Reply Quote
9/14/2017 14:09
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.
Reply Quote