如何使用 DNS 将通配符子子域链接到另一个 url?
如何使用 DNS 将通配符子子域链接到主域?
前任: *。 * .example.com -> example.com
How do I link a wildcard sub-subdomain to main domain using DNS?
ex: *. * .example.com -> example.com
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你不知道。
通配符在 DNS 中的工作方式并非如此。
RFC 1034 §4.3.3 说:
因此,使用此规则
*.*.example.com
是 NOT 通配符(您完全可以在区域中使用此名称,但名称服务器不会将特定的通配符规则应用于它)。RFC 4592“域名系统中通配符的作用”确实取消了这一限制,但实际上它仍然如此。
named-checkzone
会警告您有关该问题的信息:您在 https://en.wikipedia.org/wiki/Wildcard_DNS_record
You don't.
Wildcards don't work like this in the DNS.
RFC 1034 §4.3.3 says:
So with this rule
*.*.example.com
is NOT a wildcard (you can totally have this name in the zone, but nameservers won't apply specific wildcards rule on it).RFC 4592 "The Role of Wildcards in the Domain Name System" did kind of removed this restriction, but in practice it stays like that.
named-checkzone
will warn you about the problem:You have a good discussion on the subject at https://en.wikipedia.org/wiki/Wildcard_DNS_record