---
title: Set DNS server addresses
canonical: https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-0/settings/set-dns-server-addresses/
product: CloudConnexa Docs
---

# Set DNS server addresses

`PUT /api/v1/settings/dns/custom-servers`

## Body parameter

```json
{
  "primaryIpV4": "string",
  "secondaryIpV4": "string"
}
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| body | body | [DnsServerAddresses](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-0/schemas/dnsserveraddresses.md) | true | none |
| » primaryIpV4 | body | string | false | none |
| » secondaryIpV4 | body | string | false | none |

## Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | [DnsServerAddresses](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-0/schemas/dnsserveraddresses.md) |

To perform this operation, you must be authenticated by means of one of the following methods: oauth

---

Prev: [Get DNS server addresses](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-0/settings/get-dns-server-addresses.md)
Next: [Get 2FA enabled](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-0/settings/get-2fa-enabled.md)
Index: https://openvpn.net/cloud-docs/llms.txt
