大网数据广告活动
服务器运维问答

Is it possible to combine DNS name servers?

· 52CE 我爱测

Question: Is it possible to combine DNS name servers? For this example lets say that I lease the domain example.com through a service ( godaddy , name.com , etc) I have the option of pointing this domain and all it's records to a…

问题原文

原帖链接 · Levi Roberts · CC BY-SA 3.0

Question: Is it possible to combine DNS name servers?

For this example lets say that I lease the domain example.com through a service (godaddy, name.com, etc)

I have the option of pointing this domain and all it's records to a different nameserver however what if I want to keep this nameserver for things like the A records but point wildcard subdomains (*.example.com) to a different nameserver? Is this possible?

I have looked into NS records, however those only seem to be for the purpose of load balancing DNS across multiple servers.

In addition, the "custom" nameserver in this example would be a node application (dnsd)

Although I'm not sure if that is important.

To explain a little more (using local IPs for the sake of explanation):

My requirements are as follows:

These records are hosted on name.com for example:
A - example.com to ns1.name.com nameserver
A - api.example.com to ns2.name.com nameserver

These records are hosted on dnsd (a different nameserver):
A - *.example.com to 192.168.0.32 nameserver

Would a potential solution be to define a nameserver for example.com (ns.example.com) and then point an ns record of *.example.com to ns.example.com ?

已采纳解答

原帖链接 · Tim Brigham · CC BY-SA 3.0

DNS records are a hierarchy. Anything at the same level (v1.example.com, v2.example.com, etc) will all be resolved by the NS records set for that level (example.com)

You can have different nameservers for different levels / subdomains if you are so inclined, for example (example.com at godaddy, subdomain1.example.com network solutions, subdomain2.example.com dns made easy).

This is called zone delegation.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-08-11)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。