1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Domain And Subdomain. Both Have Different Ips, Servers And Dns Servers

Discussion in 'General Programming Chat' started by ejrussell, Jul 5, 2012.

  1. ejrussell

    ejrussell Regular Member

    Joined:
    May 11, 2010
    Messages:
    207
    Likes Received:
    8
    Tell me if this is ok!

    1. I register newdomain.com at godaddy
    2. I set this domain's nameservers to whatever the nameservers of newdomain.com is lets say 34.32.45.34
    3. I host newdomain.com on a webserver 34.32.45.34 which also acts as a dns, same ip 34.32.45.34, (so both the webserver and dns are the same ip and server)
    4. Now on a completely different server I host mysubdomain.newdomain.com having an ip of 56.33.22.33, it also acts as a dns with the same ip 56.33.22.33
    5. In godaddy I register a separate domain newdomainnumber2.com and assign 56.33.22.33 as its nameserver. So now this new nameserver is interconnected with godaddy's network of nameservers, but is in no way connected to the first domain newdomain.com, except it hosts the subdomain mysubdomain.newdomain.com

    My question

    Will everyone on the internet be able to find mysubdomain.newdomain.com or do I need to do more?
     
  2. ejrussell

    ejrussell Regular Member

    Joined:
    May 11, 2010
    Messages:
    207
    Likes Received:
    8
    bump bump bump
     
  3. Kiopa_Matt

    Kiopa_Matt Registered Member

    Joined:
    Jun 3, 2011
    Messages:
    99
    Likes Received:
    11
    Why would you do #5? That's not needed at all. Instead, there'll be one DNS zone file for the domain newdomain.com. Within that, you can just add a quick A record for the sub-domain that points to the appropriate IP. No need to register a second domain.