From owner-freebsd-questions Sun May 27 6:16:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from clmboh1-smtp3.columbus.rr.com (clmboh1-smtp3.columbus.rr.com [65.24.0.112]) by hub.freebsd.org (Postfix) with ESMTP id 0427B37B422 for ; Sun, 27 May 2001 06:16:53 -0700 (PDT) (envelope-from wmoran@iowna.com) Received: from iowna.com (dhcp065-024-023-038.columbus.rr.com [65.24.23.38]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id f4RDDfk14722; Sun, 27 May 2001 09:13:42 -0400 (EDT) Message-ID: <3B10FDF4.8FF53524@iowna.com> Date: Sun, 27 May 2001 09:15:32 -0400 From: Bill Moran X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.3-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: "Timothy L. Robertson" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Cacheing DNS and private network resolution References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Timothy L. Robertson" wrote: > > Hi Everyone, > > I have my trusty home server running 4.3-STABLE which connects my private network (192.168.x.x) to the outside world over a DSL modem. The gateway is running natd, named, and dhcpd for the internal machines and does a great job. The only problem is that internal names are not resolved properly. How do I get private1.example.net to resolve to 192.168.1.2 on my internal network? Do I have to write a SOA record, or is there an easy way to do it with /etc/hosts? Right now it seems to resolve to the gateway machine; all external names are resolved fine. Any help appreciated. Files available if they would be useful. Yes, you need to create a local zone to have internal DNS resolve. One of the best explanations on DNS that I know of is in "The Complete FreeBSD" by Greg Lehey. If you don't already have that book, I recommend it. -Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message