-1

I have always wondered this. You park your domain at a webhost and add webhost's nameserver to registrar. After that, the domain points to your website at webhost server.

Why don't I need to add an A record that points to webhost IP or add an A record for www subdomain that points to webhost IP? I just add nameserver and it works.

I thought that to point to webhost I would always need to create an A record with webhost IP and add webhost nameserver at DNS management website. How do they work?

UPDATE
Thanks for your reply. What I want to do is using my subdomain name at other webhost. For example using blog.myname.com at other webhost lets say hostgator.com while myname.com is hosted at dreamhost vps. As you know I could do this by adding A record in my bind DNS zone at my vps. I want to add only hostgator nameserver to my DNS zone to propagate my subdomain to hostgator.

sg552
  • 429

3 Answers3

1

The registrar does not point it, but the webhosting company of which you use the name server, point the domain to an IP address. They know where they host your website, and they point it automatically. If you don't want to use their name server, you will have to point the domain manually (and it becomes complicated, as you'll need to know the IP address of the web server).

jcisio
  • 586
1

Your webhost is maintaining A records for you, probably somewhat automatically. If instead you had the registrar point the domain at nameservers under your own direct control (rather than your webhost's nameservers), then you would indeed need to create A records on your nameservers.

0

You /could/ do this, but the nameservers for TLDs are under enough load without going ahead and providing full DNS record storage for you. Thus the apex of the zone is delegated to your own nameservers and you're responsible for it - you can do exactly the same thing yourself with any subdomains within yours.

Olipro
  • 3,147