The dns-server command enables the system to assign an IP address in the address pool to the DNS server of the client.
The undo dns-server command removes the IP address in the address pool to the DNS server of the client.
By default, no IP address of the DNS server is configured.
This command is supported only on the NetEngine 8000 F1A.
Parameter | Description | Value |
---|---|---|
ip-address |
Specifies the IP address of a DNS server. |
The value is in dotted decimal notation. A maximum of eight DNS server addresses can be configured, separated by space. The first configured ip-address is of top priority. |
all |
Deletes all DNS server addresses. |
- |
Usage Scenario
Before a host accesses the Internet, the DNS server needs to be used to resolve a domain name to an IP address. To allow a DHCP client to properly access the Internet, run the dns-server command to configure the IP address of a DHCP server so that the DHCP server can send DNS server addresses to DHCP clients through Option 6.
If DNS server addresses have been configured in an address pool, running the dns-server command adds new DNS server addresses but does not delete the configured ones. To delete the configured ones, run the undo dns-server command.Precautions
In VS mode, this command is supported only by the admin VS.