From owner-freebsd-questions@FreeBSD.ORG Thu Jul 6 19:30:22 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 D558D16A4F3 for ; Thu, 6 Jul 2006 19:30:22 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from chen.org.nz (chen.org.nz [202.89.146.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A87943D5E for ; Thu, 6 Jul 2006 19:30:18 +0000 (GMT) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 68C0356435; Fri, 7 Jul 2006 07:30:16 +1200 (NZST) Date: Fri, 7 Jul 2006 07:30:16 +1200 From: Jonathan Chen To: Michael S Message-ID: <20060706193016.GC7319@osiris.chen.org.nz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: FreeBSD Mailing List 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 19:30:22 -0000 On Wed, Jul 05, 2006 at 10:06:39PM -0400, Michael S wrote: > Hi all. > > 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? This can be done with the "view" feature in BIND 9; which can be configured to give different results depending on whether the query is from the local internal network or from the 'Net. Cheers. -- Jonathan Chen ---------------------------------------------------------------------- "With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead." -- RFC 1925