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 admin role.

A maximum of 6 DNS domain names is supported.

A maximum of 3 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

device(config)# ip dns domain-name test7 
Reached max number of domain names (6)

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 

device(config)# ip dns name-server 0.0.0.0 
Not a unicast IP address 

device(config)# ip dns name-server 255.255.255.255 
Not a unicast IP address 

device(config)# ip dns name-server ff00::00        
Not a unicast IP address 

device(config)# ip dns name-server 4.4.4.4 
Reached max number of name servers(3)