From owner-freebsd-questions Sat Dec 15 6:37:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by hub.freebsd.org (Postfix) with ESMTP id 3C48D37B417 for ; Sat, 15 Dec 2001 06:37:52 -0800 (PST) Received: from lungfish.ntlworld.com ([62.253.153.186]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20011215143750.XSZW3849.mta06-svc.ntlworld.com@lungfish.ntlworld.com>; Sat, 15 Dec 2001 14:37:50 +0000 Received: from boog.goatsucker.org (boog.goatsucker.org [192.168.1.3]) by lungfish.ntlworld.com (8.11.3/8.11.3) with ESMTP id fBFEbms09705; Sat, 15 Dec 2001 14:37:48 GMT (envelope-from scott@boog.goatsucker.org) Received: (from scott@localhost) by boog.goatsucker.org (8.9.3/8.9.3) id OAA05582; Sat, 15 Dec 2001 14:37:16 GMT (envelope-from scott) Date: Sat, 15 Dec 2001 14:37:15 +0000 From: Scott Mitchell To: Anthony Atkielski Cc: freebsd-questions@FreeBSD.ORG, Simon J Mudd Subject: Re: /etc/hosts vs. DNS for local-only machines Message-ID: <20011215143715.B5071@localhost> References: <018701c18488$24f3a310$0a00000a@atkielski.com> <86pu5i2dll.fsf@unicorn.ea4els.ampr.org> <01b401c184a0$63bf74d0$0a00000a@atkielski.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <01b401c184a0$63bf74d0$0a00000a@atkielski.com>; from anthony@freebie.atkielski.com on Fri, Dec 14, 2001 at 02:08:14PM +0100 X-Operating-System: FreeBSD 4.1-RELEASE i386 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 On Fri, Dec 14, 2001 at 02:08:14PM +0100, Anthony Atkielski wrote: > My situation is a little more bizarre in that I want the local hostnames to > be part of my external domain (atkielski.com). Additionally, some of my > local hostnames duplicate external names but must point to a different > address (e.g., freebie.atkielski.com, the hostname of my FreeBSD box, points > to its local LAN address on my nameserver, but points to my external IP > address on the external nameserver that is authoritative for the domain as > seen by the rest of the world). > > What I've done thus far is set up my own nameserver as the authoritative > server for my external domain (even though it's not), and then define > everything in my own zone files. Since no server queries my server from the > outside, and since both of my own machines query my server first, this > should work, and it appears to work okay. The DNS lookups are extremely > fast once an address is in cache, compared to the slowness of my ISP's > nameservers. Sounds like you've done everything right -- the internal server only answers queries from other internal hosts, so it can claim whatever it wants and the rest of the world won't care. Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott.mitchell@mail.com | 0xAA775B8B | -- Anon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message