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

Subdirectories with different IPs. How?

Discussion in 'Black Hat SEO' started by bugschaser, Oct 6, 2008.

  1. bugschaser

    bugschaser Registered Member

    Joined:
    Jul 28, 2008
    Messages:
    85
    Likes Received:
    29
    Occupation:
    IT Manager
    Location:
    Expat in Asia
    EDIT: Meant Subdomains, not subdirectories

    Hi,

    Not sure that's BH and it sounds to be a simple question, sorry for it. I'm still learning.

    I'm new here, but I like to know how can I get a different IP for each subdomain on a tld using a VPS.

    Do I just assign/order a new IP for each of the subdomains (perhaps 10-15 or more) from within the VPS or do I outsource the DNS to OpenDNS, EveryDNS etc? Or any other recommend better way? Please let me know. I don't want to buy a bunch of .infos nor main tlds.

    Currently I do not have registered for a VPS, but consider slhost.com (no relation to it) or any other one you might advice me to.

    Thanks :)
     
    Last edited: Oct 6, 2008
  2. gypsydogg

    gypsydogg Regular Member

    Joined:
    Sep 16, 2008
    Messages:
    273
    Likes Received:
    39
    Occupation:
    SEO/SEM
    Location:
    Los Angeles
    Not sure but I would think you should ask your hosting company, each one may have a different system.
     
  3. bpaw

    bpaw Junior Member

    Joined:
    Aug 9, 2008
    Messages:
    175
    Likes Received:
    48
    Home Page:
    Assuming you get a Linux VPS and not Windows, you would need to install a DNS server liked BIND and a web server like Apache.

    You would create an "A" entry for your subdomain in your main domain's zone file. So basically, in your domain's zone file you would have an entry that looks like this:

    subdomain IN A xxx.xxx.xxx.xxx

    Replacing the x's for whatever IP address you want.

    Then in your Apache configuration file, httpd.conf, you would need to create a VirtualHost specifically for your subdomain and specify the IP address:

    <VirtualHost xxx.xxx.xxx.xxx:80>
    DocumentRoot /home/username/public_html
    ServerName subdomain.domain.com
    </VirtualHost>
     
  4. forgot

    forgot Jr. VIP Jr. VIP Premium Member

    Joined:
    May 3, 2008
    Messages:
    936
    Likes Received:
    706
    Location:
    BlackhatWorld
    Get different domains, I guess, I am not sure what u want to know.
     
  5. fatboy

    fatboy Elite Member

    Joined:
    Aug 13, 2008
    Messages:
    1,618
    Likes Received:
    3,227
    Occupation:
    Retired
    Location:
    Old Peoples Home
    Like BPAW has said, if you are using cPanel or Directadmin (I only mention those 2 control panels as thats what I use) you can use the DNS settings to put subdomains on different IP addresses or even the 'move site' settings.

    If you are using one of those CP and need a hand, feel free to shout.
     
  6. BlackSmack

    BlackSmack Junior Member

    Joined:
    Jul 13, 2008
    Messages:
    149
    Likes Received:
    47
    Occupation:
    Whale Tail Watcher
    Location:
    Uranus
    Actually you don't need to install a DNS server, I'm not sure why you would want to, any registrar if you use their DNS server will let you set the A name record to the IP you want(which would just be to your main domain without a sub domain).

    Then as you said set virtual host up to whatever IP you want it to use from your server and ServerName to the subdomain.domain.name you want.



     
  7. bpaw

    bpaw Junior Member

    Joined:
    Aug 9, 2008
    Messages:
    175
    Likes Received:
    48
    Home Page:
    The reason I like to manage my nameservers is if your domain registrar's nameservers go down...your site is down even if your server is working perfectly fine. If your server goes down, your website is inaccessible either way but at least you're not relying on someone else. If you are uncomfortable managing your DNS, definitely outsource to your registrar or another third party.
     
  8. bugschaser

    bugschaser Registered Member

    Joined:
    Jul 28, 2008
    Messages:
    85
    Likes Received:
    29
    Occupation:
    IT Manager
    Location:
    Expat in Asia
    Thanks for all the kind and useful answers.

    One of the main reasons why I want to have a different IP for subdomains is to completely(??) isolate the main domain from the subdomains as far as that is ever possible.

    My thinking is that when usual one subdomain (IP) gets banned, so normal the complete tld if it has the same IP. If I have several subdomains (installed with yacg, rssgm etc) with different IP's, it may be a little bit more secure for the other subdomains. I may be wrong in this respect, however...I do know that Google is treating subdomains actually as subdirectories, but anyway.

    Also, perhaps as important for me, with a different ip I may not need to purchase several independent domains. I do not like to order a bunch of .infos. While cheap, I do think Goggle don't like them as much as .com).

    I'm very well aware that of course I can use as many subdomains I want with the same IP as the purchased tld - but then again, a different IP for each subdomain MAY make a difference security-wise. Please let me know if that is the case or not. Thanks.
     
  9. scriptkiddy

    scriptkiddy Junior Member

    Joined:
    Jan 11, 2008
    Messages:
    104
    Likes Received:
    18
    If you're talking about Google banning a domain, they don't ban domains by IP, It's not unusual to have many domains on the same IP some may get banned but won't affect the others.

    However, if a subdomain get's banned I think the domain will be banned too ( and any other sub-domains), certainly having sub-domains on different IP's won't make any difference to them being banned or not.

    It's only really interesting to have multiple IP's if you want to interlink domains, if you don't want to interlink just buy more domains, host them on the same IP, probably cheaper over a year than having multiple ip's anyway.
     
  10. bpaw

    bpaw Junior Member

    Joined:
    Aug 9, 2008
    Messages:
    175
    Likes Received:
    48
    Home Page:
    I do not know much about how Google bans subdomains/domains/IPs etc but my one observation is this. At places like Blogger, you get a free subdomain. If that subdomain is caught for scraping content or for whatever reason, and subsequently gets banned, I'm certain that blogger.com and its other subdomains will not get banned. Of course, maybe Google makes exceptions for certain sites as gigantic as Blogger.