From owner-freebsd-questions@FreeBSD.ORG Thu Jul 6 02:06: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 BE87016A4DA for ; Thu, 6 Jul 2006 02:06:42 +0000 (UTC) (envelope-from msherman77@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5388C43D45 for ; Thu, 6 Jul 2006 02:06:42 +0000 (GMT) (envelope-from msherman77@gmail.com) Received: by wx-out-0102.google.com with SMTP id h30so891967wxd for ; Wed, 05 Jul 2006 19:06:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=nEcLB50sIOw1j5gjG8h9goVhwY1IsFTaUASORghgnx8IrZgZnTHcrS9yQDqpJTXB66sB7NwbpOTc69/uBSBGXaxjZpFUcTTZDWh2oV2QRaPWY+85Q/f55AIMoXoot8HtMDXw4K6ZdQS6aU8q3CVI8/d6JS8F6epzKP16H2dgbxM= Received: by 10.70.53.3 with SMTP id b3mr10053356wxa; Wed, 05 Jul 2006 19:06:39 -0700 (PDT) Received: by 10.70.89.5 with HTTP; Wed, 5 Jul 2006 19:06:39 -0700 (PDT) Message-ID: Date: Wed, 5 Jul 2006 22:06:39 -0400 From: "Michael S" To: "FreeBSD Mailing List" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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:06:42 -0000 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? By the way simply typing ftp://mydomain.com and http://mydomain.com does the trick, but I want it to work with prefixes too. Hopefully my question isn't too confusing. Thanks in advance. Michael