> For the complete documentation index, see [llms.txt](https://rubrik.gitbook.io/rubrik-sdk-for-python/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rubrik.gitbook.io/rubrik-sdk-for-python/beta/rubrik_cdm/cluster/configure_dns_servers.md).

# configure\_dns\_servers

Configure the DNS Servers on the Rubrik cluster.

```python
def configure_dns_servers(self, server_ip, timeout=15):
```

## Arguments

| Name       | Type | Description                                               | Choices |
| ---------- | ---- | --------------------------------------------------------- | ------- |
| server\_ip | list | The DNS Server IPs you wish to add to the Rubrik cluster. |         |

## Keyword Arguments

| Name    | Type | Description                                                                                                  | Choices | Default |
| ------- | ---- | ------------------------------------------------------------------------------------------------------------ | ------- | ------- |
| timeout | int  | The number of seconds to wait to establish a connection the Rubrik cluster before returning a timeout error. |         | 15      |

## Returns

| Type | Return Value                                                                                |
| ---- | ------------------------------------------------------------------------------------------- |
| str  | No change required. The Rubrik cluster is already configured with the provided DNS servers. |
| dict | The full API response for `POST /internal/cluster/me/dns_nameserver'`                       |

## Example

```python
import rubrik_cdm

rubrik = rubrik_cdm.Connect()

dns_server_ip = ["192.168.100.21", "192.168.100.22"]
cluster_dns_servers = rubrik.configure_dns_servers(dns_server_ip)
```
