ServerMania logo

Edit Resolver

To edit a resolver, use the following request:

PUT /settings/nameservers/:id.xml
PUT /settings/nameservers/:id.json

XML Request Example

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

JSON Request Example

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

Where:

address - the resolver IP address

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