
4.5 Configuration Examples
This section provides a configuration example of DNS.
4.5.1 Example for Configuring DNS
This section provides a configuration example of DNS.
Networking Requirements
, Switch A acts as a DNS client, being required to access the host
2.1.1.3/16 by using the domain name huawei.com. You need to configure domain name suffixes
"com" and "net".
On Switch A, configure static DNS entries of Switch B and Switch C so that Switch A can
communicate with them by using domain names.
Figure 4-1
Networking diagram of DNS
Loopback0
4.1.1.1/32
Loopback0
4.1.1.2/32
Ethernet0/0/1
1.1.1.2/16
1.1.1.1/16
2.1.1.1/16
2.1.1.2/16
3.1.1.1/16
SwitchA
SwitchB
SwitchC
huawei.com
2.1.1.3/16
DNS Server
3.1.1.2/16
DNS Client
VLANIF 100
VLANIF 100
VLANIF 101
VLANIF 100
VLANIF 101
Ethernet0/0/2
Ethernet0/0/1
Ethernet0/0/1
Ethernet0/0/2
Configuration Roadmap
The configuration roadmap is as follows:
1.
Configure static DNS entries.
2.
Enable DNS resolution.
3.
Configure an IP address for the DNS server.
4.
Configure suffixes of domain names.
Data Preparation
To complete the configuration, you need the following data:
l
Domain names of Switch B and Switch C
l
IP address of the DNS server
Quidway S2700 Series Ethernet Switches
Configuration Guide - IP Service
4 DNS Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
52