one ip, two domains?
Results 1 to 3 of 3

Thread: one ip, two domains?

  1. #1
    Senior Member
    Join Date
    Oct 2004
    Posts
    172

    one ip, two domains?

    i host a little web page off of my home computer and my ip is registered to my domain name and whatever, but recently my dad has asked if he could host his site on my computer for a while. i had thought we could just edit our dns accounts to equate my domain to <my ip addy>/<a directory> and his domain to <my ip addy>/<a directory> but zonedit.com only gives enough space for an ip address. is that just zonedit or is there no way to use folders with dns. how could we rig this up so that both of our sites can be hosted off of our home connection? we were considering using forwarding on one of them but that just puts the page in a frame and it seems like we'd loose some functionality that way.

  2. #2
    Senior Member RoadClosed's Avatar
    Join Date
    Jun 2003
    Posts
    3,834
    Guessing. You have Apache and your DNS server is located off site at Zone Edit. Looking at their site it looks like their Web Forwarding service would work? There are a lot of variables here depending on what type of virual host you can built on the DNS site. One option may be no-ip.com ? You build a virutal host in Apache then us no-ip.com to redirect DNS requests to your virtual host since you can't control your DNS. Another option is to bring DNS in house.
    West of House
    You are standing in an open field west of a white house, with a boarded front door.
    There is a small mailbox here.

  3. #3
    Senior Member
    Join Date
    Mar 2004
    Posts
    557
    Hi

    RoadClosed already gave you a quick essentials overview. To answer your question,
    there are too many unspecified variables.

    domain names

    - How do you want the two sites to be accessed?
    www.mysite.com
    www.myfatherssite.com

    or

    www.mysite.com
    myfatherssite.dyndns.org[1]

    Remark: dyndns.org gives you 5 free hostname entries (also available for
    static IP's, what you seem to have). I guess, this is more or less what no-ip.com
    offers?

    - Have you already registered www.mysite.com and www.myfatherssite.com?
    Usually, the registrars DO provide DNS entries as well. Enquire and insist.
    If you have not registered one of the domains so far, choose a registrar who
    does provide DNS entries, like domainbank.net[2], but make sure prior to
    submission.

    virtual hosts

    As pointed out by RoadClosed, any webserver can easily configured to assign
    a domain name to a "directory" (virtual hosting). This is possible since HTTP 1.1.
    E.g. Apache in httpd.conf
    Code:
    #
    # Use name-based virtual hosting.
    #
    NameVirtualHost 192.168.1.100
    
    	<VirtualHost 192.168.1.100>  
    #IP configuration depends on your configuration
    	ServerAdmin admin@mysite.com
    	DocumentRoot "...mydirectory..."
    	ServerName mysite.com
    	ServerAlias mysite.com www.mysite.com
    	</VirtualHost>
    
      
    	<VirtualHost 192.168.1.100>  
    #IP configuration depends on your configuration
    	ServerAdmin admin@myfatherssite.com
    	DocumentRoot "...myfathersdirectory..."
    	ServerName myfatherssite.com
    	ServerAlias myfatherssite.com www.myfatherssite.com
    	</VirtualHost>
    Cheers.


    [1] http://www.dyndns.org/services/dns/statdns/
    [2] http://www.domainbank.net/
    If the only tool you have is a hammer, you tend to see every problem as a nail.
    (Abraham Maslow, Psychologist, 1908-70)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides