ip dns server
This command enables the DNS server on all Layer 3 interfaces. Use the no form of this command to disable the DNS server on all Layer 3 interfaces.
Syntax
ip dns server all auto ip dns server all static no ip dns server all auto
Command |
Description |
---|---|
auto |
Automatically sets the DNS server address by the response from the DHCP server. The interface must be set to obtain IP addresses from DHCP. |
static |
Statically sets the DNS server address by the configuration. |
Default
NA
Related Commands
ip host
The ip dns server command is also available from the interface configuration subdirectory (see the dns-server command).
Command Mode
Privileged User
Example
This example enables a static DNS server for all Layer 3 interfaces:
(config-data)# ip dns server all static