Huawei S9300 Configuration Manual page 158

Terabit routing switch
Table of Contents

Advertisement

S9300&S9300E Terabit Routing Switch
Configuration Guide - IP Service
l
Procedure
Step 1 Configure Switch A.
# Configure static DNS entries.
<SwitchA> system-view
[SwitchA] ip host SwitchB 4.1.1.1
[SwitchA] ip host SwitchC 4.1.1.2
# Enable DNS resolution.
[SwitchA] dns resolve
# Configure an IP address for the DNS server.
[SwitchA] dns server 3.1.1.2
# Configure a domain name suffix "net".
[SwitchA] dns domain net
# Configure a domain name suffix "com".
[SwitchA] dns domain com
[SwitchA] quit
Step 2 Verify the configuration.
# Run the ping huawei.com command on Switch A to ping the IP address 2.1.1.3. The ping
succeeds.
<SwitchA> ping huawei.com
Trying DNS server (3.1.1.2)
PING huawei.com (2.1.1.3): 56
--- huawei.com ping statistics ---
# Run the display ip host command on Switch A to view static DNS entries, including mappings
between host names and IP addresses.
<SwitchA> display ip host
Host
SwitchB
SwitchC
# Run the display dns dynamic-host command on Switch A to view dynamic DNS entries in
the domain name cache.
Issue 01 (2012-03-15)
Suffixes of domain names
NOTE
To complete DNS resolution, configuring routes from Switch A to the DNS server is mandatory. For
procedures for configuring routes, refer to the S9300&S9300E Terabit Routing Switch Configuration
Guide - IP Routing.
Reply from 2.1.1.3: bytes=56 Sequence=1 ttl=126 time=6 ms
Reply from 2.1.1.3: bytes=56 Sequence=2 ttl=126 time=4 ms
Reply from 2.1.1.3: bytes=56 Sequence=3 ttl=126 time=4 ms
Reply from 2.1.1.3: bytes=56 Sequence=4 ttl=126 time=4 ms
Reply from 2.1.1.3: bytes=56 Sequence=5 ttl=126 time=4 ms
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 4/4/6 ms
Age
0
0
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
data bytes, press CTRL_C to break
Flags
Address
static 4.1.1.1
static 4.1.1.2
8 DNS Configuration
147

Advertisement

Table of Contents
loading

This manual is also suitable for:

S9300e

Table of Contents