Solved

DNS:  Using CNAME to redirect a domain

Posted on 2006-11-17
2
2,441 Views
Last Modified: 2009-12-16
I have a domain name that I am trying to point to a server that does not have a header for that domain.  I believe you can do this through the cname, but cannot seem to figure it out.  Can someone tell me how to do this?  Currently I am sitting like this:




A Record
@ - pointed towards the ip address of the server I want the domain to resolve to
www - pointed towards the ip address of the server I want the domain to resolve to

CNAME
Host: *
Canonical Name:  the domain name of the site I want my domain to resolve to (recognized by the server because of existing header)

Should be simple... Is this the right approach?

0
Comment
Question by:TheShaner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 57

Accepted Solution

by:
giltjr earned 250 total points
ID: 17970040
Not all DNS severs allow you to specify "*" as a host name to cover all host within that zone.

you can have:

domain1.com
@      A 1.1.1.1
www  CNAME domain1.com

domain2.com
@      CNAME domain1.com
www  CNAME  domain1.com

Then when ever you change the IP address on the A record for domain1.com  all of the other host names will get the new IP address.
0
 
LVL 9

Expert Comment

by:blandyuk
ID: 17971171
Some providers require you to put a full-stop at the end of the domain name, like:

domain1.com
@        A      1.1.1.1
www    A       1.1.1.1

domain2.com
@        CNAME     www.domain1.com.
www    CNAME     www.domain1.com.

Information about this should be on the page. 123-REG does this and if it's missing, it wont work.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

630 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