Understanding DDNS

Aug 4, 2017 · 2 min read · 251 Words · -Views -Comments

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