show hosts
Use this command to display the DNS name servers and domain names.
Command Syntax
show hosts (vrf management|all)
Parameters
vrf
management or all VRFs
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The following is a sample output of this command displaying two name servers: 10.10.0.2 and 10.10.0.88.
#show hosts
VRF: management
DNS lookup is enabled
Default domain : .com
Additional Domain : .in .ac
Name Servers : 10.12.3.23
Host Address
---- -------
test 10.12.12.67
test 10::23
* - Values assigned by DHCP Client.
Table 10-18 explains the output fields.
Table 10-18: show hosts fields
Entry | Description |
---|
VRF: management | DNS configuration of specified VRF. |
DNS lookup is enabled | DNS feature enabled or disabled. |
Default domain | Default domain name used to complete unqualified host names (names without a dotted decimal domain name). |
Additional Domain | A list of default domain names used to complete unqualified host names. Each domain in the list is to be tried in turn. |
Name Servers | DNS server addresses that are used to translate hostnames to IP addresses. |
Host | Static hostname-to-address mappings in DNS. |
Test | Static hostname-to-address mappings in DNS. |
* - Values assigned by DHCP Client. | Name-server indicates it has been learned dynamically. |
Last modified date: 10/19/2023