Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DNS:  Using CNAME to redirect a domain

Posted on 2006-11-17
2
Medium Priority
?
2,450 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 1000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

972 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