From owner-freebsd-questions@FreeBSD.ORG Fri Jun 20 12:34:28 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 0E80637B401 for ; Fri, 20 Jun 2003 12:34:28 -0700 (PDT) Received: from rwcrmhc12.attbi.com (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 331B343F85 for ; Fri, 20 Jun 2003 12:34:25 -0700 (PDT) (envelope-from freebsduser@attbi.com) Received: from attbi.com (12-225-141-88.client.attbi.com[12.225.141.88](misconfigured sender)) by attbi.com (rwcrmhc12) with SMTP id <2003062019341701400nqgmne>; Fri, 20 Jun 2003 19:34:20 +0000 Message-ID: <3EF361BA.60805@attbi.com> Date: Fri, 20 Jun 2003 12:34:18 -0700 From: K Anderson User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alfonso Romero References: <018a01c336f5$bfb36b80$0100a8c0@ibacsoft.dynu.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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:34:28 -0000 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? > > Thanks in advance, > > Alfonso Romero > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Are you talking internally or externally? I pinged lalis.com & www.lalis.com and got the same IP address. I forget how to do it but you might be able to do some sort of zone thing where either you can look at how somebody else has it done or even do a zone transfer.