should wildcards belong to CNAME or A NAME? Both looks the same to me, and googling gives me a inconclusive result.
野生动物卡应该属于CNAME还是A NAME?两者对我来说都是一样的,谷歌搜索给了我一个不确定的结果。
Any rational and implications behind for choosing one over the other? (underlying DNS server software? web hosting software? speed?)
选择一个而不是另一个的任何理性和影响? (底层DNS服务器软件?网络托管软件?速度?)
2 个解决方案
#1
I don't think it practically matters.
我认为这几乎不重要。
A wildcard can be used for any DNS record type, so it's not a wildcard for *.domain it's a wildcard only for the particular record type.
通配符可用于任何DNS记录类型,因此它不是* .domain的通配符,它只是特定记录类型的通配符。
RFC 4592 covers them in extreme detail.
RFC 4592非常详细地介绍了它们。
#2
You can add wildcard in both A records and CNAMES.
您可以在A记录和CNAMES中添加通配符。
The typical example of why would you want to add a wildcard in A records is when you have dedicated IP address, say 1.2.3.4.
为什么要在A记录中添加通配符的典型示例是具有专用IP地址,例如1.2.3.4。
if someone were to visit http://wildcard.mytestdomain.com, and the subdomain "wildcard" does not exist, the server will respond with the IP address specified as the wildcard.
如果有人访问http://wildcard.mytestdomain.com,并且子域“wildcard”不存在,则服务器将使用指定为通配符的IP地址进行响应。
A * 1.2.3.4
A * 1.2.3.4
#1
I don't think it practically matters.
我认为这几乎不重要。
A wildcard can be used for any DNS record type, so it's not a wildcard for *.domain it's a wildcard only for the particular record type.
通配符可用于任何DNS记录类型,因此它不是* .domain的通配符,它只是特定记录类型的通配符。
RFC 4592 covers them in extreme detail.
RFC 4592非常详细地介绍了它们。
#2
You can add wildcard in both A records and CNAMES.
您可以在A记录和CNAMES中添加通配符。
The typical example of why would you want to add a wildcard in A records is when you have dedicated IP address, say 1.2.3.4.
为什么要在A记录中添加通配符的典型示例是具有专用IP地址,例如1.2.3.4。
if someone were to visit http://wildcard.mytestdomain.com, and the subdomain "wildcard" does not exist, the server will respond with the IP address specified as the wildcard.
如果有人访问http://wildcard.mytestdomain.com,并且子域“wildcard”不存在,则服务器将使用指定为通配符的IP地址进行响应。
A * 1.2.3.4
A * 1.2.3.4