---
updatedAt: 2025-11-11T21:43:53.000Z
agentTools:
  projectIndex: https://domains.opensrs.guide/llms.txt
---

# force_dns_nameservers

Changes the nameservers on your domain to use the DNS nameservers: ns1.systemdns.com, ns2.systemdns.com, and ns3.systemdns.com.

## Request parameters for force\_dns\_nameservers

## Standard parameters

* **action** = force\_dns\_nameservers
* **object** = domain

## Attributes

Parameters within the **attributes** associative array are described below.

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter name
      </th>

      <th>
        Obligation
      </th>

      <th>
        Definition/Value
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        domain
      </td>

      <td>
        Required
      </td>

      <td>
        The domain whose nameservers you want to change to the DNS nameservers ns1.systemdns.com, ns2.systemdns.com, and ns3.systemdns.com.
      </td>
    </tr>
  </tbody>
</Table>

## Response parameters for force\_dns\_nameservers

## Standard parameters

* **action** = reply
* **object** = domain
* **is\_success** = a Boolean is returned, indicating success or failure of the\
  request
* **response\_code** = response code indicating outcome of the request
* **response\_text** = message describing the outcome of the request

## Examples for force\_dns\_nameservers

**Request**

```xml
<?xml version='1.0' encoding="UTF-8" standalone="no"?>
<!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
<OPS_envelope>
    <header>
        <version>0.9</version>
    </header>
    <body>
        <data_block>
            <dt_assoc>
                <item key="protocol">XCP</item>
                <item key="object">DOMAIN</item>
                <item key="action">FORCE_DNS_NAMESERVERS</item>
                <item key="attributes">
                    <dt_assoc>
                        <item key="domain">example.com</item>
                    </dt_assoc>
                </item>
            </dt_assoc>
        </data_block>
    </body>
</OPS_envelope>
```

**Response**

```xml
<?xml version='1.0' encoding="UTF-8" standalone="no"?>
<!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
<OPS_envelope>
    <header>
        <version>0.9</version>
    </header>
    <body>
        <data_block>
            <dt_assoc>
                <item key="protocol">XCP</item>
                <item key="object">DOMAIN</item>
                <item key="response_text">Command Successful</item>
                <item key="action">REPLY</item>
                <item key="response_code">200</item>
                <item key="is_success">1</item>
            </dt_assoc>
        </data_block>
    </body>
</OPS_envelope>
```