Child pages
  • Add Resolver

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

To add a new resolver, use the following method:

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

XML Request Example

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

JSON Request example

Code Block
curl -i -X POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass -d '{"nameserver":{"address":"126.123.123.123","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