不同子域的不同名称服务器
假设我有一个网站 example.com
,该网站是通过通用域名注册机构 nomcheap.com
购买的.
Let's say I have a website example.com
which I bought via a common domain registry nomcheap.com
.
我希望到特定子域 app.example.com
的所有流量都转到名称服务器 ns1.appserver.com
,以便为特定的用户应用提供服务.
I want all traffic to a specific subdomain app.example.com
to go to name server ns1.appserver.com
so I can serve a specific user app.
我还希望所有其他流量( www.example.com
, hello.example.com
, *.example.com
等.)从另一个提供商 ns1.squaresites.com
转到另一个名称服务器,这样我就可以为一般网站提供服务(例如商业WordPress网站之类的东西).
I also want all other traffic (www.example.com
, hello.example.com
, *.example.com
, etc.) to go to a different name server from a different provider ns1.squaresites.com
so I can serve a general website (think something like a commerce Wordpress site).
原始域名注册机构 nomcheap.com
均不提供名称服务器.
None of the name servers are provided by the original domain registry nomcheap.com
.
这可能吗?如果是这样,有什么建议吗?
Is this possible? If so, any suggestions on how?
要将子域指向名称服务器,您需要为该子域创建NS记录:
To point a subdomain to a name servers you need to create an NS record for the subdomain:
app.example.com NS ns1.appserver.com
这将使所有查询进入 ns1.appserver.com
*.example.com NS ns1.squaresites.com
第二条记录应捕获所有没有自己记录(任何类型)的子域.
The second record should catch all subdomains that don't have their own records (of any kind).