- Table of Contents
-
- H3C Low-End Ethernet Switches Configuration Guide(V1.01)
- 01-Login Configuration Guide
- 02-VLAN Configuration Guide
- 03-IP Address Configuration Guide
- 04-Voice VLAN Configuration Guide
- 05-GVRP Configuration Guide
- 06-Ethernet Interface Basic Configuration Guide
- 07-Link Aggregation Configuration Guide
- 08-Port Isolation Configuration Guide
- 09-Port Security Configuration Guide
- 10-Port Binding Configuration Guide
- 11-MAC Address Table Management Configuration Guide
- 12-DLDP Configuration Guide
- 13-Auto Detect Configuration Guide
- 14-MSTP Configuration Guide
- 15-Routing Configuration Guide
- 16-Multicast Configuration Guide
- 17-802.1x Configuration Guide
- 18-AAA Configuration Guide
- 19-MAC Authentication Configuration Guide
- 20-VRRP Configuration Guide
- 21-ARP Configuration Guide
- 22-DHCP Configuration Guide
- 23-ACL Configuration Guide
- 24-QoS-QoS Profile Configuration Guide
- 25-Web Cache Redirection Configuration Guide
- 26-Mirroring Configuration Guide
- 27-IRF Configuration Guide
- 28-Cluster Configuration Guide
- 29-PoE-PoE Profile Configuration Guide
- 30-UDP Helper Configuration Guide
- 31-SNMP-RMON Configuration Guide
- 32-NTP Configuration Guide
- 33-SSH Configuration Guide
- 34-FTP and TFTP Configuration Guide
- 35-Information Center Configuration Guide
- 36-VLAN-VPN Configuration Guide
- 37-HWPing Configuration Guide
- 38-DNS Configuration Guide
- 39-Access Management Configuration Guide
- 40-Web Authentication Configuration Guide
- 41-IPv6 Management Configuration Guide
- 42-Smart link - Monitor Link Configuration Guide
- 43-VLAN Mapping Configuration Guide
- Related Documents
-
Title | Size | Download |
---|---|---|
38-DNS Configuration Guide | 62.29 KB |
Static Domain Name Resolution Configuration Guide
Networking and Configuration Requirements
Dynamic Domain Name Resolution Configuration Guide
Networking and Configuration Requirements
Static Domain Name Resolution Configuration Guide
Static domain name resolution is based on manually configured domain name-to-IP address mappings. If you telnet a remote device using its name, the local device will look up the corresponding IP address in the static domain name resolution table.
Network Diagram
Figure 1-1 Network diagram for static domain name resolution configuration
Networking and Configuration Requirements
As shown in the above figure, the switch can use static domain name resolution to access host 10.1.1.2 through domain name host.com.
Applicable Product Matrix
Product series |
Software version |
Hardware version |
S5600 series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S5100-SI/EI series Ethernet switches |
Release 2200, Release 2201 |
All versions |
S3600-SI/EI series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S3100-EI series Ethernet switches |
Release 2104, Release 2107 |
All versions |
S3100-C-SI series Ethernet switches S3100-T-SI series Ethernet switches |
Release 0011, Release 2102, Release 2107 |
All versions |
S3100-TP-SI series Ethernet switches |
Release 2102, Release 2107 |
All versions( except S3100-52TP-SI) |
S3100-52TP-SI |
Release 2106, Release 2107 |
S3100-52TP-SI |
S3100-52P |
Release 1500, Release 1602 |
S3100-52P |
Configuration Procedure
# Map host name host.com to IP address 10.1.1.2.
<Switch> system-view
[Switch] ip host host.com 10.1.1.2
# Execute the ping host.com command to verify that Switch can get the IP address 10.1.1.2 of name host.com.
[Switch] ping host.com
PING host.com (10.1.1.2): 56 data bytes, press CTRL_C to break
Reply from 10.1.1.2: bytes=56 Sequence=1 ttl=127 time=3 ms
Reply from 10.1.1.2: bytes=56 Sequence=2 ttl=127 time=3 ms
Reply from 10.1.1.2: bytes=56 Sequence=3 ttl=127 time=2 ms
Reply from 10.1.1.2: bytes=56 Sequence=4 ttl=127 time=5 ms
Reply from 10.1.1.2: bytes=56 Sequence=5 ttl=127 time=3 ms
--- host.com ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 2/3/5 ms
Complete Configuration
#
ip host host.com 10.1.1.2
#
Precautions
None
Dynamic Domain Name Resolution Configuration Guide
Domain Name System (DNS) is a distributed database used by TCP/IP applications to translate domain names into corresponding IP addresses. With DNS, you can use easy-to-remember domain names in some applications and let the DNS server translate them into correct IP addresses.
Network Diagram
Figure 1-2 Network diagram for dynamic domain name resolution configuration
Networking and Configuration Requirements
l Switch serves as a DNS client to access the host at 3.1.1.1/16 through domain name host.
l The DNS server has the IP address 2.1.1.2/16. The domain name suffix is com.
Applicable Product Matrix
Product series |
Software version |
Hardware version |
S5600 series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S5100-SI/EI series Ethernet switches |
Release 2200, Release 2201 |
All versions |
S3600-SI/EI series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S3100-EI series Ethernet switches |
Release 2104, Release 2107 |
All versions |
S3100-52P |
Release 1500, Release 1602 |
S3100-52P |
Configuration Procedure
# Enable dynamic domain name resolution.
<Switch> system-view
[Switch] dns resolve
# Specify the DNS server 2.1.1.2.
[Switch] dns server 2.1.1.2
# Configure com as the DNS suffix.
[Switch] dns domain com
Execute the ping host command on Switch. The ping is successful and the corresponding IP address is 3.1.1.1.
[Switch] ping host
Trying DNS server (2.1.1.2)
PING host.com (3.1.1.1): 56 data bytes, press CTRL_C to break
Reply from 3.1.1.1: bytes=56 Sequence=1 ttl=125 time=4 ms
Reply from 3.1.1.1: bytes=56 Sequence=2 ttl=125 time=4 ms
Reply from 3.1.1.1: bytes=56 Sequence=3 ttl=125 time=4 ms
Reply from 3.1.1.1: bytes=56 Sequence=4 ttl=125 time=4 ms
Reply from 3.1.1.1: bytes=56 Sequence=5 ttl=125 time=5 ms
--- host.com ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 4/4/5 ms
Complete Configuration
#
dns resolve
dns server 2.1.1.2
dns domain com
#
Precautions
l The routes between the DNS server, Switch, and Host are reachable. Necessary configurations are done on the devices.
l There is a mapping between domain name host and IP address 3.1.1.1/16 on the DNS server.