获取域的名称服务器
我想在个人服务器上托管我的域名 mydomain.com,但我的注册商要求我提供域名服务器。是否可以创建一个名称服务器 ns.mydomain.com 并将其指向我的托管 PC 拥有的静态 IP?
换句话说,是否也可以将托管计算机设置为名称服务器?
I want to host my domain mydomain.com on a personal server, but my registrar asks me for my nameservers. Would it be possible to create a nameserver ns.mydomain.com and point it to the static IP that my hosting PC has?
In other words is it possible to set the hosting machine as the nameserver also?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的。只要您在那台机器上运行着一个名为“服务器”的机器,就可以这样做。另一种选择是使用 Amazon Route 53 作为您的名称服务器。每月只需几分钱,而且比您自己的服务器更可靠。
Yes. THis is fine to do, as long as you have a name "Server" running on that machine. Another option is to use Amazon Route 53 as your name server. Its pennies per month and more reliable than your own server.
您还需要在域名注册商处注册名称服务器。
如果您的域名是 xdomain.com 并且是通过 aRegistrar.com 注册的,则 aRegistrars 面板中应该有一个选项来创建 NS 权威记录并将新名称服务器指向 IP。
这与您必须为名称服务器托管商创建的 A 记录不同。
You need to register the nameserver at your domain-registrar as well.
If your domain is xdomain.com and is registered through aRegistrar.com, there should be an option in the aRegistrars panel to create a NS authoritative record and point the new nameserver to an IP.
This is a different record from the A record you have to create to your nameserver hoster.
如果您在自己的服务器(即 vps/专用服务器)中托管域。
您可以使用您的域名来拥有名称服务器。
例如 adomain.com
那么,域名服务器将是
ns1.adomain.com和ns2.adomain.com。
If you host your domain in your own server(ie., vps/dedicated server).
You can have the nameservers with your domain name.
Like for adomain.com
Then, the nameservers will be
ns1.adomain.com and ns2.adomain.com.