[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


DNS 2 Domains

Posted on 2006-04-24
Medium Priority
Last Modified: 2010-05-18
I have 2 domains.

domain1.com and domain2.com

Is it possible to make domain2.com  point to domain1.com inside of dns without having to make changes to web server or email server?

Question by:rjohnsonjr
LVL 26

Expert Comment

ID: 16526083
Maybe. It depends on how the servers are set up. For the webserver you can probably just point the to the same IP address and it'll work. The exception is if the server is set up to use name-based virtual hosting, in which case that will not work, the web server will need to be specifically set up to use the domain. As for the email server, it will need to be set up to accept mail from each domain, it won't just accept mail for domains it doesn't know about.

Expert Comment

ID: 16527506
Yes, you simply need to create a DNS record of type "CNAME", with the record host "domain2.com" and the record answer "domain1.com".  You should be able to do this on the configuration page of the place you bought domain2.com from.
LVL 26

Accepted Solution

jar3817 earned 1000 total points
ID: 16528431
...that isn't going to make his email server accept mail for domain2.com...it is just going to reject it with a "relay denied" message.

Assisted Solution

JMMI earned 1000 total points
ID: 16529084
Short answer is no.
You can definitely modify the DNS, but that by itself won't get you what you want.

As my peers describe above, there are some things you could do, but one way or another, to make any meaningful amalgamation of roles, you would need to make some adjustments to the servers (web and mail).
So, again, the quick answer to your question would be no, you cannot.

If you have more specific goals to achieve, let us know.
LVL 18

Expert Comment

by:Sam Panwar
ID: 16531051

You can also do with the ASP and PHP web redirect script.


I think round robin can help you for it.

Use Round robin in DNS for it your requirement 100% solve. Our company also use this for it.

A>Enable Round robin the Advanced tab of Server Properties.
B>) Create at least two A records that will be round robin'd for each new
query for said name.
[url]www.mydomain.com[/url] A
[url]www.mydomain.com[/url] A





Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
How to fix a SonicWall Gateway Anti-Virus firewall blocking automatic updates to apps like Windows, Adobe, Symantec, etc.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question