ip dns

Configures the DNS IP address.

Syntax

ip dns domain-name NAME
ip dns name-server [ A.B.C.D | XX:XX::XX ]
no ip dns domain-name NAME
no ip dns name-server [ A.B.C.D | XX:XX::XX ]

Parameters

domain-name NAME
Specifies the DNS domain name.
name-server A.B.C.D | XX:XX::XX
Specifies the IPv4 or IPv6 address of the DNS name server.

Modes

Config mode

Usage Guidelines

This command is available only to users with the admin role.

A maximum of six DNS domain names is supported.

A maximum of three DNS name servers is supported.

The no ip dns domain-name command removes the specified DNS domain name.

The no ip dns name-server command removes the specified DNS name server.

Examples

The following example configures IP DNS domain name.

device(config)# ip dns domain-name extreme.com 

device(config)# ip dns domain-name corp.extreme.com 

device(config)# do sh running-config ip dns  
ip dns domain-name corp.extremenetworks.com 
ip dns domain-name extremenetworks.com 
ip dns name-server 10.6.16.32 
ip dns name-server 10.6.24.30 
ip dns name-server 1111:2222::1

The following example configures IP DNS name server.

device(config)# ip dns name-server 10.6.16.32 

device(config)# ip dns name-server 1111:2222::1 

device# sh running-config ip dns  
ip dns name-server 10.6.16.32 
ip dns name-server 1111:2222::1