Solved

DNS:  Using CNAME to redirect a domain

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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sending an input value from a view to a controller in MVC 3 45
Exchange OWA website Redirection 7 81
Political Map of Europe - Wikipedia? 4 48
wordpress theme 8 41
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

710 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