如果您更改域名服务器,是否会使您在域名注册商中输入的所有 DNS/MX/A 记录无效? [英] If you change your domain nameservers does that void all DNS/MX/A record you input in your domain registrar?

查看:25
本文介绍了如果您更改域名服务器,是否会使您在域名注册商中输入的所有 DNS/MX/A 记录无效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设您有一个域 (mydomain.com) 已注册到注册商,例如 namecheap,

say you have a domain (mydomain.com) in registered to a registrar, say namecheap,

您已设置 MX 记录来处理发送到您域的电子邮件

you have setup MX record to handle email sent to your domain

您已设置 A 记录以使子域使用不同的虚拟主机

you had setup an A record to make a subdomain use a different webhost

Name: intranet.mydomain.com
Value: 108.xxx.xxx.xx
Type: A name

现在,您希望将主域托管到虚拟主机,以便当用户将 mydomain.com 加载到他们的浏览器时,它将使用虚拟主机加载资源

now, you want to host the primary domain to a webhost, so that when a user load mydomain.com to their browser it will use webhost to load the resources

问题,webhost 要求您更新域名服务器才能使用

Question, the webhost requires you to update domain nameserver to use

ns1.myhost.com
ns2.myhost.com

将我的域名服务器更新到我的域名注册商以使用上述域名服务器会导致/不实施现有的 A 记录吗?

Will updating my nameserver to my domain registrar to use the nameservers above will void/not-implement the already existing A records?

如果没有,你如何解决问题?谢谢!

If not, how do you solve the problem? Thanks!

推荐答案

通俗地说:

您需要区分 3 种不同(但相关)的服务:

You need to distinguish between 3 different (yet related) services:

  1. 域名注册 - 您在此处为您的域名付费.除了名称本身,您需要在此处输入您的域名服务器名称,该名称将指向下一个服务的托管位置:
  2. DNS 服务 - 您可以在此处输入指向您的其他服务(网络托管、邮件服务器等)的所有记录(A、MX、...)
  3. 服务托管提供商(例如网络托管或电子邮件服务)

您可以让不同的方为您托管这些服务,但一个服务提供商可以提供所有这些服务的情况并不少见.根据您的描述,目前您的名称注册商 (1) 似乎也在托管您的 DNS 服务 (2)(这很常见).现在,您的新网络托管服务提供商想要托管您的 DNS 服务,并要求您在名称注册商处输入其名称服务器名称(这也很常见).您是对的,如果您这样做,您在当前 DNS 提供商处输入的任何 DNS 记录都将无效(它们将保留在那里,但最终用户将永远不会看到它们,因为 (1) 将指向它们使用您的新主机提供商的名称服务来解析您的域记录).

You can have different parties host these services for you, but it is not uncommon that one service provider can offer all these services. From your description, it looks like that at the moment your Name registrar (1) is also hosting your DNS service (2) (which is quite common). Now, your new web hosting provider wants to host your DNS service, and is requiring that at your name registrar, you enter its name server names (which is also not uncommon). And you are right, if you do that, any DNS records that you entered at your current DNS provider will be void (they will remain there, but no end user will ever see them since (1) will point them to use your new hosting provider's name service to resolve your domain records).

您有两个选择:

  1. 不要遵从您的虚拟主机的要求,而是询问他们您需要在当前的 DNS 服务提供商处添加哪些 DNS 记录(可能是 A 或 CNAME),以便您的新网站可以访问.
  2. 遵守您的虚拟主机的要求,但随后您必须转到新提供商的名称服务控制台并再次添加您已在之前的 DNS 提供商处输入的所有记录.

我会选择选项 1,因为风险较小

I would choose option 1, as less risky

这篇关于如果您更改域名服务器,是否会使您在域名注册商中输入的所有 DNS/MX/A 记录无效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆