Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Automatic update of Ali domain name

Shulou Source: shulou.com Published: 2022-06-01 04:53:54 10月04日 Update

With the popularity of domain names and the acceleration of home broadband bandwidth, home 100Mbps (download) and 4Mbps (upload) are fast enough to allow a large number of technology losers to mess around at home, and I am one of them.

To get back to today's topic, if you want to play WEB, FTP, remote desktop, Citrix application, Exchange, Lycn and so on at home on the dynamic ADSL dialing line, you need to have the following premises.

I. Domain name

1) have your own first-level domain name, recommend Aliyun (formerly Wanwang, this is not an advertisement, you'll see why)

2) after entering the Aliyun domain name management platform, you need to activate the real name system after registration.

3) enter AccessKeys to create and get "AccessKey ID" and "AccessKey Secret"

4) define the host A record related to your domain name

Gateway devices that support port mapping

1) usually simpler wireless routers such as TPLINK and DLINK range in price from tens to hundreds of yuan.

Advantages: easy to configure

Disadvantages: not very stable, the router is easy to crash, does not support routing, usually a single LAN network, the network architecture does not support three-layer switches and multi-VLAN environment, low-end price usually does not support multi-WAN port

2) the high-end ones can choose routers such as Netware, Cisco and H3C, with prices ranging from a few hundred yuan to thousands of yuan.

Advantages: CPU and RAM are relatively large and stable, support simple static routing and VLAN, and support multiple WAN ports

Disadvantages: the operation technical requirements are slightly higher, generally do not support port mapping across network segments, and the probability of death is low.

3) those who have network foundation can choose firewalls eliminated by some enterprises, such as juniper, Fei Tower, etc., the price of a treasure ranges from tens of yuan to tens of thousands of yuan, and they have to find the price in mind.

Advantages: firewall, × ×, the real router rather than the above NAT "router"

Disadvantages: generally speaking, only 100m LAN ports are available for those with less than 500m yuan, and they do not support wireless. High-end ones support 1000Mbps and wireless, but the performance / price ratio is not high. Low-end firewall policies generally do not support wildcards.

Third, Aliyun domain name automatic update program, let's name it Aliyun DDNS client.

I picked it in the forum outside the wall, modified it on the basis of the source code and made it into a program.

Http://down.51cto.com/data/2256480

1) install .net 4.5 first

2) the program decompresses to disk C.

3) modify the program configuration file and fill in it according to the actual situation

4) whether it is normal to run the program manually (as shown below)

5) set the scheduled task, and import the attached xml file into the scheduled task.

Tags: Support routing domain name program router Ali price advantages meta-to wireless disadvantages network firewall fire prevention price task low-end basic home technology Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information vpn Shulou Tech Info Microsoft macOS