Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a domain called mydomain.com on server1/IP1. I need to put the subdomain store.mydomain.com on server2/IP2.

Am I right I need to add a new DNS A record for the subdomain at the domain registrar? So the DNS zone would look something like this:

mydomain.com. 1 IN A IP1

store.mydomain.com. 1 IN A IP2

If this is correct, could you please confirm I am right in thinking if the subdomain was on server1/IP1 (so both the domain and subdomain are on the same server), I would add the new DNS A record for the subdomain at the hosting company's DNS zone rather than the registrar's DNS zone?

Thank you!

share|improve this question

closed as off-topic by TomTom, Jenny D, Cristian Ciupitu, Matthew Ife, Ward Jun 29 at 5:24

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – TomTom, Jenny D, Cristian Ciupitu, Matthew Ife, Ward
If this question can be reworded to fit the rules in the help center, please edit the question.

    
Do you know DNS basics? –  TomTom Jun 25 at 10:01
1  
Yes, but there is so much conflicting information out there that I wanted to be sure I understood this correctly. –  Steve Jun 25 at 10:09

2 Answers 2

First of all you have to create a subdomain on the current hosting provider(if both domain registrar and hosting provider is same). Than you have make A record entry for for the ip address of second server there. After that you need to configue vhosts on your second server with subdomain name and content folder for it.

share|improve this answer
    
Are using any kind of panel or something(cpanel) or you have commandline access only? –  Innovator Jun 25 at 10:03

If you are using a separate server for shop.example.com you will need to provide an A record that points to the server.

If you put example.com and shop example.com on the same server then you can use either an A record or a CNAME record to point shop.example.com to the example.com server.

You need to make the changes on the name servers for example.com.

share|improve this answer
    
Thanks for your reply. You say "If you are using a separate server for shop.example.com you will need to provide an A record that points to the server." Where do I create this A record? For example, if the nameserver for domain.com is XXXX.com, I add the A record at XXXX.com? –  Steve Jun 25 at 9:59
    
Wherever the DNS for example.com is managed. –  Iain Jun 25 at 10:00
    
In your DNS management interface. Whereever that is (and somehow I get the idea that is not a professional level thing, so should ot be asked here). –  TomTom Jun 25 at 10:00
    
@Ian, the DNS is typically managed at the domain registrar correct? For example, if I assign the nameservers at the domain registrar, does that mean the domain registrar manages the DNS? Thanks –  Steve Jun 25 at 10:02

Not the answer you're looking for? Browse other questions tagged or ask your own question.