Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Forwarding web sub-domain to different machine

  1. #1
    Member
    Join Date
    Apr 2004
    Location
    Cardiff, UK
    Posts
    190

    Forwarding web sub-domain to different machine

    I need to know how to forward requests for differnet servers to different IP addresses.

    The situation is this - a friend has his own webserver at home and wants to host a subdomain of the domain that I have. So if someone types in www.mydomain.com they will come through to my machine, whereas if they want to go to www.bob.mydomain.com they need to be forwarded to the other machine on a different IP address.

    Is this possible, and if it is how would I do it - I assume that it has something to do with DNS, so would I have to host a DNS server here to make this possible?

    If someone could just point me in the right direction it would be great.

    Cheers,
    Jamie

  2. #2
    Guest
    You should just be able to add a cname entry to your DNS entry for your TLD for the subdomain.

    and I don't think it would be www.bob so much as just bob.mydomain.com


    Mark

  3. #3
    Member
    Join Date
    Apr 2004
    Location
    Cardiff, UK
    Posts
    190
    Quote Originally Posted by mcangeli
    You should just be able to add a cname entry to your DNS entry for your TLD for the subdomain.
    Im not too sure if I can do that - as I have a dynamic IP address I pay no-ip.com to map my domain onto my dynamic ip. Although they allow wildcards and sub-domains there is no option to give a different IP address to a sub-domain.

    and I don't think it would be www.bob so much as just bob.mydomain.com
    Sorry, you're right - my not thinking while im typing!

    Jamie

  4. #4
    Guest
    there should be a way to set a specific subdomain. I'm not familiar with no-ip whatever.....

    but in bind it would be:

    bob. cname <IP ADDRESS>


    I think.

  5. #5
    Guest
    [google]no-ip.com subdomain[/google]

  6. #6
    Member
    Join Date
    Apr 2004
    Location
    Cardiff, UK
    Posts
    190
    Excellent - thank you! ops:

    The option was well hidden - as Im paying for the service I wouldn't have thought ath I would have so many hoops to jump through!!

    Cheers,
    Jamie

  7. #7
    Guest
    good. glad things worked out.

  8. #8
    Member
    Join Date
    Apr 2004
    Location
    Cardiff, UK
    Posts
    190
    Quote Originally Posted by mcangeli
    there should be a way to set a specific subdomain. I'm not familiar with no-ip whatever.....

    but in bind it would be:

    bob. cname <IP ADDRESS>

    I think.
    So, speaking hypothetically, if I wanted to do this internally, and I had two webservers running on my internal network one called web.mydomain.org and one called forum.mydomain.org I would need to be running a DNS server (Bind) so that the router would know which of the two servers the request was to be sent to?

  9. #9
    Guest
    I think that depending on the router you can specify.

    But I'm not sure.

  10. #10
    Member
    Join Date
    Apr 2004
    Location
    Cardiff, UK
    Posts
    190
    Quote Originally Posted by mcangeli
    I think that depending on the router you can specify.
    Well I run smoothwall as a router/firewall and that has always been really configurable for me in the past. I look into the port forwarding - it must be in there. I know that you can filter by the port the the request is coming in by, so I would have thought that you can also do it by host name that is being requested.

    Cheers,
    Jamie

Similar Threads

  1. Squid at one machine and SquidGuard at another machine
    By Dogar in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 04-03-2007, 05:11 AM
  2. forwarding non-existent user to remote hosted domain of same domain name?
    By pushpraj nimbalkar in forum Redhat / Fedora
    Replies: 3
    Last Post: 07-18-2006, 09:50 PM
  3. SSH port forwarding
    By crazy ivan in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 10-07-2003, 11:10 PM
  4. Domain Name Hosting retrieval of domain?
    By Rastar in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 04-16-2003, 03:46 PM
  5. ip forwarding
    By elovkoff in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 04-21-2002, 03:14 PM

Bookmarks

Posting Permissions

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