H3C Low-End Ethernet Switches Configuration Guide(V1.01)

HomeSupportSwitchesH3C S3100 Switch SeriesConfigure & DeployConfiguration ExamplesH3C Low-End Ethernet Switches Configuration Guide(V1.01)
Table of Contents
Related Documents
38-DNS Configuration Guide
Title Size Download
38-DNS Configuration Guide 62.29 KB

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.

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网