code: public static base_response add(nitro_service client, dnsnameserver resource) throws Exception {
  		dnsnameserver addresource = new dnsnameserver();
  		addresource.ip = resource.ip;
  		addresource.dnsvservername = resource.dnsvservername;
  		addresource.local = resource.local;
  		addresource.state = resource.state;
  		addresource.type = resource.type;
  		return addresource.add_resource(client);
  	}
docs: Use this API to add dnsnameserver.