--- title: "dns" slug: "cli-as-dns" tags: ["Assurance Sensor CLI"] updated: 2025-06-30T06:46:25Z published: 2025-09-04T19:23:07Z canonical: "docs.crossworkassurance.cisco.com/cli-as-dns" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt > Use this file to discover all available pages before exploring further. # dns ## dns edit dns edit - Change the DNS configuration **Description:** dns edit allows you to choose the server and the interface to use for the DNS service. **Syntax:** ``` dns edit [ {dhcp {enable | disable}} | {dhcp6 {enable | disable}} | {domain } | {hostname } | {dhcp-hostname } | {dhcp-hostname-option } {dhcp-client-id } | {server1 } | {server2 } ]+ ``` **Parameters:** | Parameter | Description | | --- | --- | | | | | dhcp | Enable/disable use of DNS settings obtained via DHCP. specifies the interface to use for obtaining DHCP information. | | dhcp6 | Enable/disable use of DNS settings obtained via DHCPv6. specifies the interface to use for obtaining DHCP information. | | domain | The domain name associated with the DNS. | | hostname | The name of the unit. Supported special characters are: `~\`!@#$%^*()_+-=[]{}\|;:,./?`. Unsupported special characters are:`&<>‘“`. | | dhcp-client-id | The DHCP client identifier (option 61). An empty string forces MAC address as client ID. | | dhcp-hostname | The DHCP client custom host name (option 12) to use when selecting custom `dhcp-hostname-option`. | | dhcp-hostname-option | The DHCP hostname option to set on the DHCP client. | | server1 | The first DNS address used if no DHCP server is set. | | server2 | The second DNS address used if no DHCP server is set. | ## dns show dns show - Show the DNS configuration **Description:** Show the DNS configuration. The "Domain", "DNS server 1" and "DNS server 2" fields are only used if "Use DHCP result" is set to Disabled. **Syntax:** ``` dns show ``` **© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)