Configuring DNS Servers
This chapter includes the following sections:
- DNS Policies
- Configuring a DNS Policy
- Deleting a DNS Policy
- Configuring a DNS Server for a DNS Policy
- Deleting a DNS Server from a DNS Policy
DNS Policies
Cisco UCS Central supports global DNS policies defining the DNS server and domain name. Registered Cisco UCS domains choosing to define DNS management globally within that domain's policy resolution control will defer DNS management to its registration with Cisco UCS Central.
Configuring a DNS Policy
Before configuring a DNS policy in a domain group under the Domain Group root, this policy must first be created. Policies under the Domain Groups root were already created by the system and ready to configure.
The following example shows how to scope into the domain group root (which has an existing DNS policy by default), define the DNS domain name as dnsdomain, and commit the transaction:
UCSC # connect policy-mgr UCSC(policy-mgr)# scope domain-group / UCSC(policy-mgr) /domain-group # scope dns-config UCSC(policy-mgr) /domain-group/domain-group # set domain-name dnsdomain UCSC(policy-mgr) /domain-group/domain-group* # commit-buffer UCSC(policy-mgr) /domain-group/domain-group #
The following example shows how to scope into the domain group domaingroup01, create the DNS policy for that domain group, define the DNS domain name as dnsdomain, and commit the transaction:
UCSC # connect policy-mgr UCSC(policy-mgr)# scope domain-group domaingroup01 UCSC(policy-mgr) /domain-group # create dns-config UCSC(policy-mgr) /domain-group/domain-group* # set domain-name dnsdomain UCSC(policy-mgr) /domain-group/domain-group* # commit-buffer UCSC(policy-mgr) /domain-group/domain-group #
Deleting a DNS Policy
The following example shows how to scope into the domain group domaingroup01, delete the DNS policy for that domain group, and commit the transaction:
UCSC # connect policy-mgr UCSC(policy-mgr)# scope domain-group domaingroup01 UCSC(policy-mgr) /domain-group/domain-group # delete dns-config UCSC(policy-mgr) /domain-group/domain-group* # commit-buffer UCSC(policy-mgr) /domain-group/domain-group #
Configuring a DNS Server for a DNS Policy
Configure a DNS policy.
| Command or Action | Purpose | |
|---|---|---|
| Step 1 | UCSC# connect policy-mgr | Enters policy manager mode. |
| Step 2 | UCSC(policy-mgr)# scope domain-group domain-group | Enters domain group root mode and (optionally) enters a domain group under the domain group root. To enter the domain group root mode, type / as the domain-group. |
| Step 3 | UCSC(policy-mgr) /domain-group # scope dns-config | Enter an existing DNS policy's configuration mode from the Domain Group root or a domain group scoped into. |
| Step 4 | UCSC(policy-mgr) /domain-group/dns-config # create dns server-IP-address | Creates a DNS server instance. |
| Step 5 | UCSC(policy-mgr) /domain-group/dns-config* # commit-buffer | Commits the transaction to the system configuration. |
The following example shows how to scope into the domain group root, create a DNS server instance named 0.0.0.0, and commit the transaction:
UCSC # connect policy-mgr UCSC(policy-mgr)# scope domain-group / UCSC(policy-mgr) /domain-group # scope dns-config UCSC(policy-mgr) /domain-group/domain-group # create dns 0.0.0.0 UCSC(policy-mgr) /domain-group/domain-group* # commit-buffer UCSC(policy-mgr) /domain-group/domain-group #
The following example shows how to scope into the domain group domaingroup01, create a DNS server instance named 0.0.0.0, and commit the transaction:
UCSC # connect policy-mgr UCSC(policy-mgr)# scope domain-group domaingroup01 UCSC(policy-mgr) /domain-group # scope dns-config UCSC(policy-mgr) /domain-group/domain-group # create dns 0.0.0.0 UCSC(policy-mgr) /domain-group/domain-group* # commit-buffer UCSC(policy-mgr) /domain-group/domain-group #
Deleting a DNS Server from a DNS Policy
| Command or Action | Purpose | |
|---|---|---|
| Step 1 | UCSC# connect policy-mgr | Enters policy manager mode. |
| Step 2 | UCSC(policy-mgr)# scope domain-group domain-group | Enters domain group root mode and (optionally) enters a domain group under the domain group root. To enter the domain group root mode, type / as the domain-group. |
| Step 3 | UCSC(policy-mgr) /domain-group # scope dns-config | Enter an existing DNS policy's configuration mode from the Domain Group root or a domain group scoped into. |
| Step 4 | UCSC(policy-mgr) /domain-group/dns-config # delete dns server-IP-address | Deletes a DNS server instance. |
| Step 5 | UCSC(policy-mgr) /domain-group/dns-config* # commit-buffer | Commits the transaction to the system configuration. |
The following example shows how to scope into the domain group root, delete a DNS server instance named 0.0.0.0, and commit the transaction:
UCSC # connect policy-mgr UCSC(policy-mgr)# scope domain-group / UCSC(policy-mgr) /domain-group # scope dns-config UCSC(policy-mgr) /domain-group/domain-group # delete dns 0.0.0.0 UCSC(policy-mgr) /domain-group/domain-group* # commit-buffer UCSC(policy-mgr) /domain-group/domain-group #
The following example shows how to scope into the domain group domaingroup01, delete a DNS server instance named 0.0.0.0, and commit the transaction:
UCSC # connect policy-mgr UCSC(policy-mgr)# scope domain-group domaingroup01 UCSC(policy-mgr) /domain-group # scope dns-config UCSC(policy-mgr) /domain-group/domain-group # delete dns 0.0.0.0 UCSC(policy-mgr) /domain-group/domain-group* # commit-buffer UCSC(policy-mgr) /domain-group/domain-group #
Feedback