Pinting a subdomain to another site

Discussion in 'Site & Server Administration' started by yfs1, Jan 15, 2009.

  1. #1
    Hello,

    How would i point a subdomain from one site (host) to a url of another site (host).

    For example I have - www.123xyz.com pointing to my site hosted by John

    I create a subdomain - test.123xyz.com

    I create a new site hosted by Steve - (no url as it only needs to be accessed through the subdomain - the nameserver is 100.xxx.xxx.xx)

    How do make test.123xyz.com point to 100.xxx.xxx.xx while www.123xyz.com still points to the site hosted by John.

    Does that make sense?
     
    yfs1, Jan 15, 2009 IP
  2. HSH

    HSH Peon

    Messages:
    73
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    DNS it using IN in the hosts db file:

    test.123xyz.com. IN A 100.100.100.1
    www.123xyz.com. IN A 100.100.100.2
     
    HSH, Jan 15, 2009 IP
  3. hostingspeak

    hostingspeak Peon

    Messages:
    233
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi!

    Just ask your host to add an A record for this. They wouldn't have a problem doing it. Shouldn't anyway. If you have access, just edit your DNS zone, and add an A record.
     
    hostingspeak, Jan 15, 2009 IP
  4. yfs1

    yfs1 User Title Not Found

    Messages:
    13,798
    Likes Received:
    922
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It is obviously pointing to IP addresses but what type of IP address do I ask the host to provide (I have the IP of the server itself but is it a seperate one to point to the specific area where the site resides) - Its a shared server

    I take it when using an A record, the nameservers have no relevance?
     
    yfs1, Mar 9, 2009 IP
  5. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #5
    you need to find the ip where you want you subdomain to ultimatly point and then as suggested, ad an A record in your dns zone.
     
    Camay123, Mar 9, 2009 IP
  6. tmbejoy

    tmbejoy Peon

    Messages:
    88
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    just ask for the server's default IP address. and it should run like a shit through a goose
     
    tmbejoy, Mar 10, 2009 IP
  7. E-IndiaWeb

    E-IndiaWeb Well-Known Member

    Messages:
    467
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    110
    #7
    If you own WHM you can do this by adding A entry pointing to new IP. Or ask your provider to add this for you.
     
    E-IndiaWeb, Mar 13, 2009 IP