[Experience sharing] DDNS configuration--using DDNS-GO

DDNS configuration

DDNS (Dynamic Domain Name Server, dynamic domain name service) maps the user's dynamic IP address to a fixed domain name resolution service. Every time the user connects to the network, the client program will transfer the dynamic IP address of the host through information. Transmitted to the server program located on the service provider's host, the server program is responsible for providing DNS services and implementing dynamic domain name resolution.

Everyone understands the role of DNS. You can use domain names to access IP addresses. However, many of us do not have static DNS addresses at home. Some people have dynamic IP addresses at home; or the server can only provide dynamic IP addresses. IP addresses The constant changes in the domain name prevent us from using traditional DNS. Here we need to use dynamic domain name service DDNS. The simplest way is to use the DDNS-GO project, which actually has very detailed documentation. The blog only records its own installation process to prevent subsequent forgetting.

Point location:ddns-go

1. Install Docker

curl -fsSL https://test.docker.com -o test-docker.sh

sudo sh test-docker.sh

2. Docker deploy ddns-go

I don’t want to use the host mode in docker and want to customize the port for access. Here, I use the server’s 54321 to map it to the 9876 port inside the container [I use 54321 here! ! You can modify it yourself! ! ! It will also default to 54321 later]

docker run -d --name ddns-go --restart=always -p 54321:9876 -v /opt/ddns-go:/root jeessy/ddns-go

Untitled

3. Configure

Openhttp://ip:54321 for configuration, the opening interface is as follows

Untitled

3.1 Obtain Cloudflare Token

I am using cloudflare and need to obtain the token.

Untitled

  1. How to obtain a Token? You can click on the basket below to create a token—>Edit regional DNS (use template)

Untitled

Untitled

Untitled

  1. Then select the next step: Continue to summary, confirm the information, and Create Token

Untitled

  1. Then just copy the Token

Untitled

3.2 Set ipv4 and ipv6

Just keep the default, choose to access by selecting the interface, in

Untitled

Same for ipv6

3.3 Set up public network access

Untitled

3.4 Set up Webhook

Webhook can be set up for notification. For details, please refer to the official Webhook instructions, including Feishu, DingTalk, etc.https://github.com/jeessy2/ddns-go#webhook

Untitled

4. Done

You can go to cloudflare to see if the DNS resolution is successful.

Guess you like

Origin blog.csdn.net/weixin_44904205/article/details/134752699