Switch CLI Reference Guide

Domain Name Server (DNS) Commands

domain name-server
Command Objective

This command configures the IP address for the domain name server.

The no form of the command disables the IP address configured for the domain name server.

Syntax

domain name-server ipv4 <ucast_addr>

no domain name-server ipv4 <ucast_addr>

Parameter Description
  • ipv4 <ucast_addr> - Sets the IP address for the domain name server in IPv4 address format.

Mode Global Configuration Mode

show ip dns name-server
Command Objective

This command displays the DNS name servers information.

Syntax

show ip dns name-server

Mode Privileged EXEC Mode

Was This Article Helpful?

Help us to improve our support portal

Techdocs Article Helpful form

  • Hidden
  • Hidden

Techdocs Article NOT Helpful form

  • Still can't find what you're looking for? Try our knowledge base or ask our community for more help.
  • Hidden
  • Hidden