From owner-freebsd-questions@FreeBSD.ORG Fri Jun 20 12:43:02 2003 Return-Path: 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 8D0B537B401 for ; Fri, 20 Jun 2003 12:43:02 -0700 (PDT) Received: from shrike.submonkey.net (pc1-cdif2-5-cust38.cdif.cable.ntl.com [81.101.150.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE2B143F3F for ; Fri, 20 Jun 2003 12:43:01 -0700 (PDT) (envelope-from setantae@submonkey.net) Received: from setantae by shrike.submonkey.net with local (Exim 4.20) id 19TRmm-000M8U-JR; Fri, 20 Jun 2003 20:43:00 +0100 Date: Fri, 20 Jun 2003 20:43:00 +0100 From: Ceri Davies To: Alfonso Romero Message-ID: <20030620194300.GB84128@submonkey.net> References: <018a01c336f5$bfb36b80$0100a8c0@ibacsoft.dynu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <018a01c336f5$bfb36b80$0100a8c0@ibacsoft.dynu.com> User-Agent: Mutt/1.5.4i Sender: Ceri Davies cc: freebsd-questions Subject: Re: Creating an additional DNS zone file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jun 2003 19:43:02 -0000 On Fri, Jun 20, 2003 at 01:32:40AM -0500, Alfonso Romero wrote: > I have a DNS server for my local LAN. I use "ibacsoft.dynu.com" as the primary zone and all works properly. When I wanted to add an additional zone, "lalis.com", to use virtual hosts with apache, I created the following zone file, called "lalis.com" on /etc/namedb: > > ------------------------------------------- > $TTL 3600 > lalis.com. IN SOA adeline.ibacsoft.dynu.com. root.adeline.ibacsoft.dynu.com ( > 6 ; Serial > 3600 ; Refresh > 900 ; Retry > 3600000 ; Expire > 3600 ) ; Minimum > IN NS adeline.ibacsoft.dynu.com. > ; > IN A 192.168.0.101 > > www IN CNAME @ > mail IN CNAME @ > > @ IN MX 10 mail.lalis.com. > ------------------------------------ > > I then reload named with "ndc reload", ping www.lalis.com and all looks fine. > I even go to www.lalis.com and the apache home page shows up. > > The problem is when I try to use lalis.com, without the "www" part. When I ping lalis.com, it doesn?t give me the correct internal IP address, like www.lalis.com does. > > What am I doing wrong? Did you add anything for this zone to named.conf? Ceri -- User: DO YOU ACCEPT JESUS CHRIST AS YOUR PERSONAL LORD AND SAVIOR? Iniaes: Sure, I can accept all forms of payment. -- www.chatterboxchallenge.com