dns-server A.B.C.D
Use this command to specify a DNS name server in the IPv4 DHCP Dynamic Host Configuration Protocol server pool. Multiple name servers can be added to the pool.
Use the no
form of this command to delete a DNS name server details from the IPv4 DHCP server pool.
Command Syntax
Copy
dns-server A.B.C.D
no dns-server A.B.C.D
Parameters
A.B.C.D
IPv4 DNS name server address
Default
None
Command Mode
DHCP configure mode
Applicability
This command was introduced in OcNOS version 6.1.0.
Examples
Copy
#configure terminal
(config)#ip dhcp server pool test-pool
(dhcp-config)#dns-server 10.12.3.23
#configure terminal
(config)#ip vrf vrf1
(config-vrf)#ip dhcp server pool test-pool
(dhcp-config)#dns-server 10.12.3.23