问题原文
原帖链接 · I am the Most Stupid Person · CC BY-SA 3.0
Until today, I thought that we should point the name servers to hosting company to set add-on domain, sub domains, etc.
But, I read this article from inmotion hosting.
You can find following sentence from that article.
If you are not pointed to InMotion Hosting's Nameservers, you must ALSO create the subdomain where your Nameservers are hosted, then point the subdomain's "A record" to your Shared IP address.
I could not understand what is it... I mean I thought we must point name servers to hosting company to create sub domains etc... So what is the meaning of this message? What did I have understand incorrectly?
已采纳解答
原帖链接 · Simon Hayter · CC BY-SA 3.0
Name servers host your DNS zone file
Domains point to name servers that simply hosts the zone file which holds all your DNS entries, due to simplicity, web hosts recommend that users point their domain to their own hosting because then the user does not need to add manually DNS entries, since cPanel, WHM or Plesk will automatically edit the zone file with the necessary records.
Example
A real world example of this would be that you add a sub domain to cPanel called 'CDN' e.g cdn.example.com, cPanel automatically edits the zone file and adds A record of the IP address that the sub domain points to.
Perks and Benefits of each
The benefits of using the name servers provided by your web host is that you never need to manually edit the zone file for most tasks but the benefits of using an external name servers is often they come with better reliability and more features, such as those provided by DynDNS, Rackspace DNS, Cloudflare etc.
How to use A records
If you want to use a different name server and dns provided by your registrar or another company, then simply login to cPanel and check the IP listed in the server information panel or page, like so:
Take note of the IP address and then simply login to your DNS management of the domain and add the A record and cname, like so:
Using the above example would make the website work without having to use the name servers provided by your host, giving you more options, faster TTL's and generally easier administration once you understand the basics.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
