From owner-freebsd-questions Wed Dec 1 3: 7:47 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mailarray.mpx.com.au (local2.mpx.com.au [203.29.192.98]) by hub.freebsd.org (Postfix) with ESMTP id C289214F6A for ; Wed, 1 Dec 1999 03:07:42 -0800 (PST) (envelope-from wincent@dingoblue.net.au) Received: from [192.168.0.2](really [198.142.240.137]) by mailarray.mpx.com.au via smtpd with esmtp id for ; Wed, 1 Dec 1999 22:07:38 +1100 (/\##/\ Smail3.1.30.13.Y2K #30.35 built 1-mar-01) User-Agent: Microsoft Outlook Express Macintosh Edition - 5.0 (1513) Date: Wed, 01 Dec 1999 21:37:42 +1030 Subject: FW: Internal vs External DNS (2 nameds) From: wincent To: Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG on 1/12/99 8:29 PM, Kit at kit@hypostasis.com wrote: > Hi > I am wanting to run separte DNS for internal and external networks > I have a gateway running 3.3-STABLE and bind 8.1.2 > I am considering running 2 copies of named on the one machine to > listen on different interfaces and supply DNS info to differing > groups of hosts, internal and external, so that the internal network > uses the internal names and the rest of the world sees only the external > names, and not any of the internal names. > > To do this I think that I want to add > if [ "X${named2_enable}" = X"YES" ]; then > echo -n ' named2'; ${named_program-"named"} ${named2_flags} > fi > > to rc.network network_pass2 > and > named2_enable="YES" > named2_flags="-c named_flags="-c /etc/namedb/named.int.conf -u bind -g bind" > > to rc.conf > > Does this seem reasonable or is there a better way to do it? Hi Kit I believe the best way to do it is using zones.... See: http://www.dvl-software.com/freebsd/privatedns.htm It's not a perfect document, but it's a start... Cheers Wincent To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message