Child pages
  • Add Resolver
Skip to end of metadata
Go to start of metadata

To add a new resolver, use the following method:

POST /settings/nameservers.xml
POST /settings/nameservers.json

XML Request Example

curl -i -X POST -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass -d '<nameserver><address></address><network_id>1</network_id></nameserver>' --url http://onapp.test/settings/nameservers.xml

JSON Request example

curl -i -X POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass -d '{"nameserver":{"address":"","network_id":"1"}}' --url http://onapp.test/settings/nameservers.json

Set the following parameters:

address* - the resolver IP address

network_id* - the ID of the network to which this resolver should belong

  • No labels