Huawei AR150 series Configuration Manual page 111

Hide thumbs Also See for AR150 series:
Table of Contents

Advertisement

Huawei AR150&200 Series Enterprise Routers
Configuration Guide - IP Service
[RouterA-Ethernet1/0/0] ip address 1.1.1.1 255.255.0.0
[RouterA-Ethernet1/0/0] quit
Step 2 Configure a DNS server.
# Enable dynamic DNS resolution.
[RouterA] dns resolve
# Configure a DNS server that the DNS proxy or relay access.
[RouterA] dns server 2.1.1.1
# Enable DNS proxy.
[RouterA] dns proxy enable
# Set the aging time of DNS entries to 150s on the DNS proxy or relay.
[RouterA] dns forward expire-time 150
Step 3 Enable DNS spoofing and specify the IP address in response messages as 10.1.1.3.
[RouterA] dns spoofing 10.1.1.3
Step 4 Configure OSPF.
[RouterA] ospf
[RouterA-ospf-1] area 0
[RouterA-ospf-1-area-0.0.0.0] network 1.1.0.0 0.0.255.255
[RouterA-ospf-1-area-0.0.0.0] quit
[RouterA-ospf-1] quit
Step 5 Verify the configuration.
# Run the display current-configuration command on RouterA to view the DNS proxy
configuration.
<RouterA> display current-configuration | include dns
dns resolve
dns server 2.1.1.1
dns proxy enable
dns spoofing 10.1.1.3
dns forward expire-time 150
----End
Configuration Files
Configuration file of RouterA
#
sysname RouterA
#
interface Ethernet 1/0/0
ip address 1.1.1.1 255.255.0.0
#
dns resolve
dns server 2.1.1.1
dns proxy enable
dns forward expire-time 150
#
dns spoofing 10.1.1.3
Issue 02 (2012-03-30)
NOTE
You must configure OSPF on RouterB so that a route between RouterA and the DNS server can be
generated. For details about OSPF configurations on RouterB, see the configuration file.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
4 DNS Configuration
99

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ar200 seriesAr3200 series

Table of Contents