Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Dec 2006
    Posts
    9

    Default Domain pointing to another site

    How do I setup a domain so it points automatically to a site outside of my server? I don't want to do this wiht htaccess o meta-refresh, but directly via DNS.

    Thanks in advance!!

  2. #2
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    You could add a CNAME in the dns record.

    domain.com. 14400 IN CNAME newlocation.com.

    don't forget the period at the end of the domain names.

    If you have a specific IP address to use then just change
    the A record to the proper address instead of adding the CNAME.

  3. #3
    Member
    Join Date
    Feb 2007
    Posts
    11

    Default

    I just tried doing the suggestion above and got an error. It highlighted my entry with the following:

    mydomain.com. 14400 IN CNAME mydomain.otherserver.com.
    mydomain.com: CNAME and other data

    Any ideas? I guess the explaination what supposed to be "mydomain.com: CNAME and other data" but that doesn't mean a thing to me.
    Last edited by fingerprn; 07-19-2007 at 02:17 PM.

  4. #4
    Member
    Join Date
    Feb 2007
    Posts
    11

    Default

    Okay I got ther following info from another site:

    "CNAME and other data"

    CNAMEs can't co-exist with other records (it defeats the purpose of defining a CNAME in the first place)
    You cannot combine CNAME with anything else (except SIG when we are doing DNSSEC)

    CNAMEs can't co-exist with other record types, so, by inference, you can't have a CNAME be the same as a zone name, since a zone has at least an SOA record (and, arguably, at least one NS record as well), and the CNAME can't co-exist with it. Just use an A record and be happy.

    Indicates that you have a domain name in your zone data that owns both a CNAME record and a record of another type.
    That's helps a little, but I still can't seem to get this to work. Everytime I remove a record entry (like the A record) I get the same message. I guess I'll just keep removing records until something either works or breaks.

    Any other ideas of what is going on?

  5. #5
    Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    963
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by fingerprn View Post
    I just tried doing the suggestion above and got an error. It highlighted my entry with the following:

    mydomain.com. 14400 IN CNAME mydomain.otherserver.com.
    mydomain.com: CNAME and other data

    Any ideas? I guess the explaination what supposed to be "mydomain.com: CNAME and other data" but that doesn't mean a thing to me.
    Short answer - you can't have a CNAME for a domain if there are other records for that domain. It's sad but truth with the way Bind works.

    So if you have a domain called 'test.com' you can't have

    test.com. IN CNAME somewhereelse.com.

    Because there cannot be other 'records' for an entry that also has a CNAME. And for the domain test.com other records already exist, like NS records and the SOA.

    CNAMEs can't co-exist with other records (it defeats the purpose of defining a CNAME in the first place)
    You cannot combine CNAME with anything else (except SIG when we are doing DNSSEC)

    CNAMEs can't co-exist with other record types, so, by inference, you can't have a CNAME be the same as a zone name, since a zone has at least an SOA record (and, arguably, at least one NS record as well), and the CNAME can't co-exist with it. Just use an A record and be happy.

    Indicates that you have a domain name in your zone data that owns both a CNAME record and a record of another type.


    Of course, you could add a cname like this:

    www.test.com. IN CNAME somewhereelse.com.

    And in most instances, you usually want a CNAME to redirect a website elsewhere - so at least www.test.com can have a CNAME.

    Check out - http://www.isc.org/index.pl?/sw/bind/FAQ.php
    - search that document for 'CNAME and other data'

    Mike
    Last edited by mtindor; 07-19-2007 at 03:25 PM.

Similar Threads & Tags
Similar threads

  1. Viewing Site that is not pointing yet
    By paneluser280 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-10-2010, 09:28 AM
  2. Two domains pointing to the same site
    By Fergo in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 08-12-2008, 10:06 AM
  3. All domains/sub-domain pointing to main site after IP Migration
    By ITDevil in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-20-2007, 11:38 AM
  4. IP pointing to a diff site
    By cancer10 in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 06-15-2007, 05:17 AM
  5. Site Address Pointing to the Wrong Site?!
    By ClearSky in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-26-2005, 10:05 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube