Solved

DNS:  Using CNAME to redirect a domain

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This video teaches users how to migrate an existing Wordpress website to a new domain.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now