9-7
No DNS server is specified by default.
You can configure a maximum of six DNS servers, including those with IPv6 addresses.
Related commands:
display dns server
.
Examples
# Specify the DNS server 172.16.1.1.
<Sysname> system-view
[Sysname] dns server 172.16.1.1
ip host
Syntax
ip host
hostname
ip-address
undo ip host
hostname
[
ip-address
]
View
System view
Default Level
2: System level
Parameters
hostname
: Host name, consisting of 1 to 20 characters, including case-insensitive letters, numbers,
hyphens (-), underlines (_), or dots (.). The host name must include at least one letter.
ip-address
: IP address of the specified host in dotted decimal notation.
Description
Use the
ip host
command to create a host name to IP address mapping in the static resolution table.
Use the
undo ip host
command to remove a mapping.
No mappings are created by default.
You can configure only one mapping for a host name. A mapping newly configured for the host name
will overwrite the previous one if there is any.
Related commands:
display ip host
.
Examples
# Map the IP address 10.110.0.1 to the host name aaa.
<Sysname> system-view
[Sysname] ip host aaa 10.110.0.1
reset dns dynamic-host
Syntax
reset dns dynamic-host
Summary of Contents for E4510-48G
Page 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Page 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Page 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Page 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Page 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Page 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Page 914: ...5 17 Sysname reset oam ...
Page 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Page 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...