Ddns configuration example ii, Network requirements – H3C Technologies H3C SecPath F1000-E User Manual

Page 265

Advertising
background image

240

# Create a DDNS policy named 3322.org, and enter its view.

<SecPath> system-view

[SecPath] ddns policy 3322.org

# Specify for DDNS update requests the URL address with the login ID steven and password nevets.

[SecPath-ddns-policy-3322.org] url

http://steven:[email protected]/dyndns/update?system=dyndns&hostname=<h>&myip=<

a>

# Set the interval for sending DDNS update requests to 15 minutes.

[SecPath-ddns-policy-3322.org] interval 0 0 15

[SecPath-ddns-policy-3322.org] quit

# Enable dynamic domain name resolution on the SecPath.

[SecPath] dns resolve

# Specify the IP address of the DNS server as 1.1.1.1.

[SecPath] dns server 1.1.1.1

# Apply DDNS policy 3322.org to interface GigabitEthernet 0/1 to enable DDNS update and
dynamically update the mapping between domain name whatever.3322.org and the primary IP address

of GigabitEthernet 0/1.

[SecPath] interface GigabitEthernet 0/1

[SecPath-GigabitEthernet0/1] ddns apply policy 3322.org fqdn whatever.3322.org

After the preceding configuration is completed, the SecPath will notify the DNS server of its new domain
name-to-IP address mapping through the DDNS server provided by www.3322.org, whenever the IP
address of the SecPath changes. Therefore, the SecPath can always provide Web service at

whatever.3322.org.

DDNS configuration example II

Network requirements

As shown in

Figure 149

, the SecPath is a Web server with domain name whatever.gicp.cn.

The SecPath acquires the IP address through DHCP. Through the PeanutHull server, the SecPath informs

the DNS server of the latest mapping between its domain name and IP address.
The IP address of the DNS server is 1.1.1.1. The SecPath uses the DNS server to translate www.oray.cn into
the corresponding IP address.

Advertising