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