OpenWrt install and configure Tencent Cloud dynamic dns dnspod tencent ddns

Original link: https://hellodk.cn/post/1060

Plugin open source address https://github.com/Tencent-Cloud-Plugins/tencentcloud-openwrt-plugin-ddns

Enter the openwrt background, go to “System” -> “Packages” and paste this uri in the input box of “Download and Install Software Packages” http://openwrt-tencentddns-1301800460.cos.ap-guangzhou.myqcloud.com/luci-app-tencentddns_0.1.0-1_all.ipk and then click to confirm, if there is no error in general, the tencent ddns containing luci is installed, refresh the page as shown in the figure

20220624214233

Then there is the configuration, you can refer to the following figure

20220624221741

I encountered this error during configuration: ERROR, Please Check Config/Time

This problem is due to the wrong id and token. Note the source of this “Key ID” and “Key Token”: https://console.dnspod.cn/account/token/token is to enter this page to create a new “Key”, and use its ID and Token to fill in OpenWrt plugin settings. Check out this issue

20220624221644

After the configuration is complete, click “Save & Apply”.

If you want to see the result as soon as possible at the beginning of the operation, you can set the check time to 1 minute. When you see the log of the successful update, you can go to the background of dnspod.cn to check whether the dns A record has been successfully added.

In fact, the principle of ddns is very simple, that is, the router regularly detects the public ip of its wan interface, and then regularly reports it to the dns service provider. The report to the dns service provider is to add or update the A record. Generally, an HTTP POST request is sent with some authentication information, such as id and token, and then public ip, the host equivalent of this A record. If the request is successful, then this dns A record is successfully added or updated. .

After running for a while, you can see the log as follows

 2022-06-24 19:00:00 WAN-IP: 111.111.111.111 2022-06-24 19:00:00 DOMAIN-IP: 111.111.111.111 2022-06-24 19:00:00 IP dont need UPDATE... 2022-06-24 19:40:00 WAN-IP: 111.111.111.111 2022-06-24 19:40:00 DOMAIN-IP: 111.111.111.111 2022-06-24 19:40:00 IP dont need UPDATE... 2022-06-24 20:00:00 WAN-IP: 111.111.111.111 2022-06-24 20:00:00 DOMAIN-IP: 111.111.111.111 2022-06-24 20:00:00 IP dont need UPDATE... 2022-06-24 20:40:00 WAN-IP: 111.111.111.111 2022-06-24 20:40:00 DOMAIN-IP: 111.111.111.111 2022-06-24 20:40:00 IP dont need UPDATE... 2022-06-24 21:00:00 WAN-IP: 111.111.111.111 2022-06-24 21:00:00 DOMAIN-IP: 111.111.111.111 2022-06-24 21:00:00 IP dont need UPDATE... 2022-06-24 21:40:00 WAN-IP: 111.111.111.111 2022-06-24 21:40:00 DOMAIN-IP: 111.111.111.111 2022-06-24 21:40:00 IP dont need UPDATE...

ps: 111.111.111.111 is the coded IP address

This article is reprinted from: https://hellodk.cn/post/1060
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment