Thread: Ok now

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    26
    Rep Power
    0

    Ok now


    I've finally got a dns server set-up and everything. Now I dont get it... If I wanted say someone has a folder on my server named /folder and their domain name was www.folder.com
    what would I do to let them use their domain name instead'a
    http://yotokyox.ath.cx/folder
    I have a primary dns set-up for yotokyox.ath.cx and a secondary one too if i need to use it. Just need directions and how to do this.
  2. #2
  3. DNS/BIND Guru
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2003
    Location
    OH, USA
    Posts
    4,266
    Rep Power
    173
    You need to add a virtual host for their domain. This virtual host will define the folder that acts as root for their website. That's the webserver end of things.

    On the DNS server end of things, they need a host. You may offer to host the domain for them. Otherwise, they find their own host or be their own host, and set the 'A' (IP) record for their domain to the address of your webserver.

    If you want to host the domain... You'll have to install a dns server, provide a means to let them edit their zone file and a means to dynamically load changed zone files. All they have to do is buy the domain and set the dns registry to use your dns server(s) as the host of their domain.
    Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

    Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    26
    Rep Power
    0
    I'm using virtual host right now on apache but I was wondering if there was another way to do it b/c I hear that u cant use ssl with virtualhost so I'm curious to know how to do it without it.
    I have a dns server set-up like i said. And to host their domain I just make a primary or secondary dns?
  6. #4
  7. DNS/BIND Guru
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2003
    Location
    OH, USA
    Posts
    4,266
    Rep Power
    173
    you'll need either 1 or 2 servers. primary or secondary doesn't have any real meaning. The server with the domain records is the primary or authoritative server. If you should have another server, it will be a slave to the authoritative server.

    I don't know about ssl and virtual hosts. There is another alternative though. You can setup a script that'll redirect all requests headed for www.folder.com to the proper url. Something like this:

    Browser issues request for: http://www.folder.com

    www.folder.com resolves to your server address and would normally result in displaying your root index page. Instead, you have a script handle the root index, and it will return a redirect to the browser...

    Server response with: 302 redirect -> http://www.folder.com/folder

    Browser then issues request for: http://www.folder.com/folder
    Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

    Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

IMN logo majestic logo threadwatch logo seochat tools logo