Child pages
  • Set Up DNS Domain
Skip to end of metadata
Go to start of metadata

To set up DNS domain, use the following methods:

POST /settings/dns_setup.xml
POST /settings/dns_setup.json

XML Request example

curl -i -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass http://onapp.test/settings/dns_setup.xml -X POST -d "<dns_setup><domain>new-mydns.com</domain></dns_setup>" 

JSON Request example

curl -i -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass http://onapp.test/settings/dns_setup.json -X PUT -d '{"dns_setup": {"domain": "my-dns2.com"}}'

Where:

The only required parameter is domain* – DNS domain name.

XML Response example

<?xml version="1.0" encoding="UTF-8"?>
<dns_setup>
<domain>mydns.com</domain>
</dns_setup>
  • No labels