7-4
Description
Use the display ip host command to display the host names and corresponding IPv4 addresses in the
static domain name resolution table.
Examples
# Display the host names and corresponding IPv4 addresses in the static domain name resolution
table.
<Sysname> display ip host
Host Age Flags Address
My 0 static 1.1.1.1
Aa 0 static 2.2.2.4
Table 7-4 display ip host command output description
Field Description
Host Host name
Age
Time to live. 0 means that the static mapping will never age out.
You can only manually remove the mappings between host names and IP addresses.
Flags
Indicates the mapping type, static or dynamic.
Static represents static domain name resolution.
Address Host IP address
dns domain
Syntax
dns domain domain-name
undo dns domain [ domain-name ]
View
System view
Default Level
2: System level
Parameters
domain-name: Domain name suffix, consisting of character strings separated by a dot (for example,
aabbcc.com). Each separated string contains no more than 63 characters. A domain name suffix may
include case-insensitive letters, digits, hyphens (-), underscores (_), and dots (.), with a total length of
238 characters.
Description
Use the dns domain command to configure a domain name suffix. The system can automatically add
the suffix to part of the domain name you entered for resolution.
Use the undo dns domain command to delete a domain name suffix (with a domain name suffix
specified) or all domain name suffixes (with no domain name suffix specified).
No domain name suffix is configured by default, that is, only the provided domain name is resolved.
Note that: