大网数据广告活动
网站运营与故障问答

Can I use different nameservers for different subdomains?

· 52CE 我爱测

Suppose I have example.com and the nameserver I'm using is the one from the hosting server where I'm hosting the main site, say mainhosting.com . Now suppose I add a new subdomain e.g. bla.example.com which I'm hosting somewhere …

问题原文

原帖链接 · RocketNuts · CC BY-SA 3.0

Suppose I have example.com and the nameserver I'm using is the one from the hosting server where I'm hosting the main site, say mainhosting.com.

Now suppose I add a new subdomain e.g. bla.example.com which I'm hosting somewhere else, say at subhosting.org.

This typically requires editting the DNS settings at mainhosting.com, adding an A record for bla.example.com to resolve to the webserver's IP address at subhosting.org.

Is it also possible to set things up so bla.example.com (but only the subdomain, not the entire example.com domain) is using subhosting.org's nameserver instead? So whenever the IP address for subhosting.org's webserverver changes, it can be updated automatically.

I mean the webhoster at subhosting.org can typically update any relevant DNS settings for their own webservers automatically, but obviously this doesn't work when I'm using an external nameserver (and thus the DNS records are configured externally).

已采纳解答

原帖链接 · Amarjit Singh · CC BY-SA 4.0

Yes, You can.

you will have to add the NS records for the subdomain in the DNS Manager for your TLD (Top Level Domain).

For Example: In DNS Manager for TLD add NS records Like.

bla.example.com. 1799 IN    NS  ns1.subhosting.org.
bla.example.com. 1799 IN    NS  ns3.subhosting.org.
bla.example.com. 1799 IN    NS  ns2.subhosting.org.

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

资料来源与适用范围

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

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

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