From owner-freebsd-questions@FreeBSD.ORG Thu Jul 6 02:24:42 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70AC216A4E0 for ; Thu, 6 Jul 2006 02:24:42 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id F320843D58 for ; Thu, 6 Jul 2006 02:24:40 +0000 (GMT) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.13.1/8.12.11) with ESMTP id k662Ob1O041212 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 6 Jul 2006 09:24:37 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.13.3/8.12.11) id k662OYJF091266; Thu, 6 Jul 2006 09:24:34 +0700 (ICT) Date: Thu, 6 Jul 2006 09:24:34 +0700 (ICT) Message-Id: <200607060224.k662OYJF091266@banyan.cs.ait.ac.th> From: Olivier Nicole To: msherman77@gmail.com In-reply-to: (msherman77@gmail.com) References: X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Cc: freebsd-questions@freebsd.org Subject: Re: DNS beginner question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jul 2006 02:24:42 -0000 Michael, > I am trying to set up a DNS service. I have 2 FreeBSD machines, one's > web and DNS (that I am setting up) and the other FTP. Both machines > are behind a router and get local addresses (i.e. 192.168....). If > DNS, FTP and web ports in the router are open, will I be able to set > up the DNS in a way such that when someone from the outside types > www.mydomain.com, he'll be taken to the machine that runs apache, and > when he types ftp.mydomain.com he'll be taken to the machine which > runs ftp? > By the way simply typing ftp://mydomain.com and http://mydomain.com > does the trick, but I want it to work with prefixes too. It looks like it is a problem of setting up your router and NAT service on the router, rather than a DNS issue. >From the wolrd, mydomain.com, ftp.mydomain.com and www.mydomain.com are seen as a signle IP/host (the public/WAN interface of your router). That is the router that direct traffic to this or that. Olivier