-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.

3
  • 3
    You might like this question. serverfault.com/questions/355887/…
    – Nic
    Feb 4, 2012 at 5:18
  • You completely changed your question. Let's create a new question.
    – jcisio
    Feb 5, 2012 at 9:30
  • You are correct. I already create a new question and it has been solved. http://serverfault.com/questions/356848/how-are-a-record-for-webhost-website-is-found-from-nameserver Thanks everyone :)
    – sg552
    Feb 5, 2012 at 18:50

3 Answers 3

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).

1
  • In other words, you don't have to do it because your webhost does it for you. Since they're hosting both the web side and the domain's DNS, they automate moving the information about the web hosting to the DNS. Feb 4, 2012 at 6:33
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.

4
  • OK so I use my own nameserver. Is there anyway I could just add ONLY domain nameserver under my management so I could point it to webhost instead of adding A record.
    – sg552
    Feb 4, 2012 at 8:21
  • Hypothetically, if you used your own nameserver, you could CNAME domains to your webhost's server. The httpd on their server would still have to know what to do when clients present your original domain in the Host HTTP header, of course. Feb 4, 2012 at 8:48
  • With that said your question's a little confusing. Can you clarify what you want and why? Feb 4, 2012 at 8:49
  • Hi there. I update my question.
    – sg552
    Feb 4, 2012 at 14:40
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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .