Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm setting up a web hosting on my VPS, I want to host several websites on my vps, I have two domains, domain1.com and domain2.com and a website for each hosted on iis, I know that I should add these host names to my dns. I have a zone named domain1.com, when I want to add domain2.com as new host it will automatically set FQDN to domain2.com.domain1.com How should I config my DNS? Thanks for your help.

share|improve this question

migrated from superuser.com May 18 '13 at 11:01

This question came from our site for computer enthusiasts and power users.

add comment

1 Answer 1

up vote 1 down vote accepted

You need a separate zone for each domain.

Here are some instructions from one web host on how to do it. The process should be similar on any web host.

To host multiple domain names on a single server, create a separate domain zone for each domain name... At a minimum, you'll need an A record for each domain name pointing to the server's IP address.

share|improve this answer
    
But if I create a zone for each domain, is it possible to set each domain's name server to one name server like ns1.mydomain.com? –  VahidND May 18 '13 at 13:23
    
Your zones can all be hosted on the same domain name server. –  Stephen Ostermiller May 18 '13 at 15:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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