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

I have multiple domains hosted on one server with just one IP address, it was previously setup by other people and past on to me and I have had to change Domain Providers and have to setup the DNS settings for the server.

The main website mainsite.example.com has been successfully setup to work with its domain, by setting the CNAME for the domain to mainsite.example.com and a @ record to the IP address.

Now am trying to setup the other website which doesn't show up on mainsite.example.com or other alias, but am struggling to get the DNS settings right for this domain.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I would add A records for each new site to that same IP.

newsite.com. IN A 192.168.2.10

basically the setup for the first domain, with the new domain name switched in but the IP the same, should work. The DNS points them all to the same place and the web server sorts them out in the VirtualHost directives.

share|improve this answer
    
Ok on the 123-reg control panel I have added... example2.co.uk/com to the DNS settings of the www.mainsite.co.uk/com they are pointing to the IP address so hopefully this will work :) –  Aran Aug 28 '09 at 20:18
    
it is perfectly legit to have multiple A records pointing to the same IP. –  lee Aug 28 '09 at 21:58

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.