· 1 分钟阅读时长 · 276 字 · -阅读 -评论

title: “了解DDNS” tags: [] slug: 6931a7f0 date: 2017-08-04 19:10:23 summary: “本文介绍了解DDNS,包括使用场景、实现细节等,以提高了解DDNS的效率。”

I recently got a VPS to host a web service, but it doesn’t have a static IP. That means I can’t create a fixed A record in GoDaddy. I learned the host network supports Dynamic DNS, read up on it, and it clicked.

DDNS solves the dynamic IP problem. You can bind your web service to a dynamic hostname like aaaaaaa.asuscomm.com and access it via that domain. If you don’t want to expose the DDNS hostname publicly, add a record under your own domain (e.g., alanhe.me):

CNAME

Once set, you can use http://test.alanhe.me to access your site.

Summary

  • DDNS gives a stable hostname for changing IPs.
  • Common DNS record types:
    • A record (IP address target): points directly to an IPv4 address.
    • CNAME (alias): alias a host to another name; if the underlying IP changes, only the target’s DNS needs updating.
    • MX: mail exchanger records.

相关文章:什么是域名解析中A记录、CNAME、MX记录、NS记录

Alan H
Authors
开发者,数码产品爱好者,喜欢折腾,喜欢分享,喜欢开源