Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

几种常用的 DNS 解析记录类型 #119

Closed
Dream4ever opened this issue Dec 25, 2020 · 0 comments
Closed

几种常用的 DNS 解析记录类型 #119

Dream4ever opened this issue Dec 25, 2020 · 0 comments
Labels

Comments

@Dream4ever
Copy link
Owner

Dream4ever commented Dec 25, 2020

主要类型

  • A 记录:将域名指向 IP,如果有自己的服务器和域名,将域名指向服务器 IP,就可以对外提供服务了。
    • 主机记录填 www,则将 www.domain.com 指向服务器 IP。
    • 主机记录填 @,则将 doamin.com 指向服务器 IP。
  • CNAME 记录:将一个域名指向另一个域名,由另一个域名提供 IP 地址。
    • 比如可以将域名解析至阿里云 WAF 的域名,实现对域名的安全防护。
  • URL 显性转发:将指定的主机记录通过 301/302 重定向到任意别的 URL。
    • 浏览器会显示转发后的实际 URL,所以叫 显性 转发。
  • URL 隐性转发:用 iframe 显示转发后的 URL。
  • 浏览器显示的还是用户请求访问的 URL,而不是转发后的 URL,所以叫 隐性 转发。

参考资料

解析记录类型

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant