From owner-freebsd-questions@FreeBSD.ORG Thu Jul 24 16:19:07 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 BE1A937B401 for ; Thu, 24 Jul 2003 16:19:07 -0700 (PDT) Received: from datasphereweb.com (12-212-67-226.client.attbi.com [12.212.67.226]) by mx1.FreeBSD.org (Postfix) with SMTP id BB06843FA3 for ; Thu, 24 Jul 2003 16:19:06 -0700 (PDT) (envelope-from ryallsd@datasphereweb.com) Received: (qmail 47321 invoked from network); 24 Jul 2003 23:19:05 -0000 Received: from evrtwa1-ar17-4-47-114-001.evrtwa1.dsl-verizon.net (HELO bartxp) (4.47.114.1) by datasphereweb.com with SMTP; 24 Jul 2003 23:19:05 -0000 From: "Derrick Ryalls" To: "'Jonathan Chen'" Date: Thu, 24 Jul 2003 16:18:55 -0700 Message-ID: <004a01c35239$f78778d0$0200a8c0@bartxp> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <20030724223022.GA78422@grimoire.chen.org.nz> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal cc: questions@freebsd.org Subject: RE: Bind9 Issue 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: Thu, 24 Jul 2003 23:19:08 -0000 > On Thu, Jul 24, 2003 at 03:02:15PM -0700, Derrick Ryalls wrote: > > I bought a domain for my gaming clan and installed bind9=20 > specifically=20 > > for the views feature. The DNS machine is my home router and our=20 > > gaming machine is on another network and physically 60=20 > miles away and=20 > > is nat'ed on a lan. The lan the game server is on has it's own DNS=20 > > machine, but is located behind the same public ip. > >=20 > > I have DNS setup up so that any requests for=20 > www.gameserver.org (name=20 > > different to protect the=20 > ignorant) that come from that lan get the ip=20 > > 192.168.1.20, the machines internal ip. When logged into the game=20 > > server, I can do a dig www.gameserver.org and=20 > the correct=20 > > ip comes back. The problem is that When I dig www.gameserver.org=20 > > @, it responds with the public ip, not the=20 > > internal and therefore won't work for the lan. >=20 > You're going to have to show us the named.conf, before anyone=20 > will answer. > --=20 > Jonathan Chen > ---------------------------------------------------------------------- > "Beer. Now there's a temporary solution." > - Homer Simpson >=20 named.conf **************** // $FreeBSD: src/etc/namedb/named.conf,v 1.6.2.5 2002/02/04 18:24:21 ume Exp $ // // Refer to the named.conf(5) and named(8) man pages for details. If // you are ever going to setup a primary server, make sure you've // understood the hairy details of how DNS is working. Even with // simple mistakes, you can break connectivity for affected parties, // or cause huge amount of useless Internet traffic. acl internals { 192.168.0.0/24; 127.0.0.1; }; acl mis { 216.57.216.55; }; acl dhcp-server { 127.0.0.1; 192.168.0.1; }; options { directory "/etc/namedb"; forwarders { 4.2.2.4; 4.2.2.5; 4.2.2.6; }; }; view "internal" { match-clients { internals; }; recursion yes; zone "javaweenie.org" { type master; file "db.javaweenie.org.internal"; allow-transfer { none; }; allow-update { dhcp-server; }; }; zone "clanbuckbuck.org" { type master; file "db.clanbuckbuck.org.external"; allow-transfer { 12.224.183.109; }; }; }; view "mis" { match-clients { mis; }; recursion no; zone "clanbuckbuck.org" { type master; file "db.clanbuckbuck.org.mis"; allow-transfer { 12.224.183.109; }; }; }; view "external" { match-clients { any; }; recursion no; zone "clanbuckbuck.org" { type master; file "db.clanbuckbuck.org.external"; allow-transfer { 12.224.183.109; }; }; }; db.clanbuckbuck.org.mis ****************** $TTL 86400 @ IN SOA clanbuckbuck.org. root.clanbuckbuck.org. ( 961230 ; Serial 3600 ; Refresh 300 ; Retry 3600000 ; Expire 3600 ) ; Minimum IN NS ns.clanbuckbuck.org. IN MX 10 clanbuckbuck.org. IN A 4.47.114.1 ns IN A 4.47.114.1 =20 www IN A 192.168.1.20 db.clanbuckbuck.org.external *********************** $TTL 86400 @ IN SOA clanbuckbuck.org. root.clanbuckbuck.org. ( 961230 ; Serial 3600 ; Refresh 300 ; Retry 3600000 ; Expire 3600 ) ; Minimum IN NS ns.clanbuckbuck.org. IN NS2 ns2.clanbuckbuck.org. IN MX 10 clanbuckbuck.org. IN A 4.47.114.1 ns IN A 4.47.114.1 ns2 IN A 12.224.183.109 =20 www IN A 216.57.216.55