Solved

DNS:  Using CNAME to redirect a domain

Posted on 2006-11-17
2
2,439 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
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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
The viewer will learn how to dynamically set the form action using jQuery.
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…

830 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