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 <interface-name> | disable}} |
{dhcp6 {enable <interface-name> | disable}} |
{domain <string>} |
{hostname <string>} |
{dhcp-hostname <string>} |
{dhcp-hostname-option <custom|serial-number|current>}
{dhcp-client-id <string>} |
{server1 <ip-addr|ipv6-addr>} |
{server2 <ip-addr|ipv6-addr>} ]+
Parameters:
Parameter | Description |
---|---|
<interface-name> | <string> |
dhcp | Enable/disable use of DNS settings obtained via DHCP. <interface-name> specifies the interface to use for obtaining DHCP information. |
dhcp6 | Enable/disable use of DNS settings obtained via DHCPv6. <interface-name> 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
© 2025 Cisco and/or its affiliates. All rights reserved.
For more information about trademarks, please visit: Cisco trademarks
For more information about legal terms, please visit: Cisco legal terms
For legal information about Accedian Skylight products, please visit: Accedian legal terms and tradmarks