DDNS Explained (Simple Guide)

This article introduces DDNS (Dynamic DNS), including usage scenarios and implementation details, to improve the efficiency of understanding DDNS.

Aug 4, 2017 · 2 min read · 251 Words · -Views -Comments · Programming
🇨🇳 阅读中文版
Read with AI

Choose an AI assistant

ChatGPT Open in a new tab with the article link and prompt
Claude Copy the prompt, then open Claude

Open Claude
Trouble reading the article?

If the prompt is missing, copy the full prompt below into your AI assistant. If the AI cannot read the article, paste the visible passage you want to discuss and add your question.

Recently, I got a VPS that I plan to use to build a web service. However, the problem I face is that the VPS doesn’t have a fixed IP, so I can’t directly add a domain-to-IP resolution record on GoDaddy. While confused, I learned that the network environment of the server where the VPS is located has Dynamic DNS. I didn’t understand this technology before, so I spent some time on Wikipedia and finally figured it out.

DDNS is designed to solve the dynamic IP problem. You can use DDNS to give a fixed dynamic domain name, such as [aaaaaaa.asuscomm.com], which is bound to the web service, so you can directly use this dynamic domain name to access it.

Of course, when we normally build a website, we certainly don’t want to use this domain name directly. What should we do? It’s easy—just add a record to your own domain name, such as alanhe.me.

CNAME

After successful configuration as above, you can use http://test.alanhe.me to access the web you built.

Summary

  • DDNS itself is to solve the problem of dynamic IP needing a fixed domain name.
  • DNS record types:
    • A record (IP pointing) The target host address type must be an IP address.
    • CNAME (alias pointing) Can set aliases for hosts, equivalent to using subdomains instead of IP addresses. If the IP address changes, only the subdomain resolution needs to be modified.
    • MX Mail exchange record.

Related article: What are A records, CNAME, MX records, and NS records in domain name resolution

Authors
Developer, digital product enthusiast, tinkerer, sharer, open source lover