ServerMania logo

Add Resolver

To add a new resolver, use the following request:

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://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://test/settings/nameservers.json


address* - the resolver IP address

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