DNS和名称服务器是什么? 正在连接域和服务器
当您启动一个网站时, 您总是会遇到“ DNS” 和“ 名称服务器 ”。 了解它们是什么以及它们是如何运作的,对网站的成功运行至关重要。
在这篇文章中,我以初学者易于理解的方式解释这些基本原理,并提供您为顺利网站运行所需要的知识.
The Complete Comparison of 32 WordPress Hosting Services: Best Picks for Individuals, Businesses, and Overseas Use

当你想到“我想开始WordPress”和“WordPress建议”时,你会发现各种文章,从公司和小企业的个人计划和选择到海外服务器和廉价服务器。 说实话
- 我该看看哪个网站?
- 我想以简单易懂的方式选择一个服务器.
- 快告诉我怎么开始WordPress
don’t you feel that way? That is why this article carefully introduces handpicked recommendations from 32 hosting services for individuals, companies, domestic use, and overseas use. It is explained by the SEO lead of an app development company that uses hosting services every day.
什么是DNS吗?
DNS或域名系统,
It converts the domain names we can easily remember into IP addresses that computers can easily understand. Because of this process, you can access a site simply by entering its website address into a browser.
什么是名称服务器?
一个名称服务器是DNS系统内的服务器,它保持域名和IP地址之间的对应.
当你购买一个域时,一个名称服务器对于该域在互联网上运行至关重要. 因为这样,全世界的人都能找到你的网站.
如何配置 DNS 和名称服务器
注册域
启动网站的第一步是注册您想要的域名.
指定名称服务器
注册域后,需要指定该域使用的名称服务器. 当您报名租借服务器时,托管公司可以提供名称服务器信息.
调整 DNS 设置
最后,将域名映射到IP地址. 这包括配置A记录和MX记录.
配置一个记录
A记录,或称地址记录,是用来将域名与IP地址链接的记录. 例如,当您将您的网站域名与网络服务器的IP地址连接时,它就被使用.
- Access the DNS control panel: Log in to the control panel of the registrar managing the domain or the hosting service.
- Go to the DNS settings: Move to the DNS-related settings section, such as “DNS management” or “DNS settings.”
- Add the A record: Choose the option to add an A record and enter the required information.
Host name: Usually the domain name or subdomain name, such as www.
IP address: Enter the IP address of the server hosting the website. - Save the changes: Save the settings and apply the changes.
配置 MX 记录
MX记录,或称邮件交换记录,是用于指定处理通过域名收到的邮件的邮件服务器的记录.
- Access the DNS control panel: Again, log in to the control panel of the registrar or hosting service managing the domain.
- Go to the DNS settings: Move to the DNS-related settings section.
- Add the MX record: Choose the option to add an MX record and enter the required information.
Priority: If you configure multiple mail servers, this number determines which server receives mail first. The lower the number, the higher the priority.
Mail server address: Enter the domain name of the server that handles the mail, such as mail.example.com. - Save the changes: Save the settings and apply the changes.
观察点和成本
宣传时间

在更改名称服务器或DNS设置后,这些更改需要时间才能在整个互联网上反映. 一般来说,从几小时到大约48小时是好的。
警卫
因为也有DNS劫持的风险,所以选择一个值得信赖的服务很重要.
费用

注册一个域通常每年要花费几百到几千日元,视域而定. 名称服务器服务经常包含在租借服务器合同中,但是如果您使用专门的DNS服务,可能会申请额外的收费.
目 录
DNS和名称服务器是运行网站的基础部分.
通过学习这些知识,网站的启动和管理变得更加平稳。 我希望这篇文章有助于您的网站操作。