From owner-freebsd-questions@FreeBSD.ORG Mon Jun 2 19:16:25 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 84F9237B401 for ; Mon, 2 Jun 2003 19:16:25 -0700 (PDT) Received: from smtp.covadmail.net (mx01.covadmail.net [63.65.120.61]) by mx1.FreeBSD.org (Postfix) with SMTP id 43B3A43FA3 for ; Mon, 2 Jun 2003 19:16:24 -0700 (PDT) (envelope-from scott@hiemstra.us) Received: (covad.net 15660 invoked from network); 3 Jun 2003 02:16:21 -0000 Received: from unknown (HELO playland) (68.165.225.111) by sun-qmail14 with SMTP; 3 Jun 2003 02:16:21 -0000 From: "Scott Hiemstra" To: "freebsd-questions" Date: Mon, 2 Jun 2003 22:16:23 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <000b01c32972$380b96c0$0100a8c0@ibac> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal Subject: RE: DNS and natd 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: Tue, 03 Jun 2003 02:16:25 -0000 I've never tried it with natd on freebsd but I have on many routers just setup a loopback adapter which will allow your hosts which are inside to loopback into the webserver. I searched through the docs but I can't seem to find a specific example. Perhaps someone here has some experience with this setup. -Just as an example, my home web hiemstra.us is actually served by 192.168.1.20 on my LAN. -I don't have any funny DNS going on to get there. -My router figures out I actually need to get to 68.165.225.111 and routes the requests through the loopback -I get the desired page delivered I'm not 100% sure this is feasible in freebsd but it should be. Good luck, Scott ------------------------ Scott Hiemstra scott@hiemstra.us -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Alfonso Romero Sent: Monday, June 02, 2003 9:48 PM To: freebsd-questions Subject: Re: DNS and natd Thanks for your reply. I found the "6.1 Creating a mini-DNS system" document from the Pedantic PPP Primer (http://www.freebsd.org/doc/en_US.ISO8859-1/books/ppp-primer/c831.html#AEN83 3) Do you think it fits my needs? ----- Original Message ----- From: "Jack L. Stone" To: "Derrick Ryalls" ; "'Alfonso Romero'" ; "'freebsd-questions'" ; "'Chuck Swiger'" Sent: Monday, June 02, 2003 8:07 PM Subject: RE: DNS and natd At 05:07 PM 6.2.2003 -0700, Derrick Ryalls wrote: >> > Alfonso Romero wrote: >> > > Iīm using natd on a FreeBSD 4.8 box as a gateway, so my >> internal LAN >> > > can access Internet. Iīve configured a web server, but >> the local LAN >> machines >> > > canīt access the server by itīs domain name. If I setup my FreeBSD >> gateway to >> > > also act as a DNS server, are my local LAN machines going >> to be able >> > > to access my web server with www.ibacsoft.dynu.com, instead of >> > > 192.168.0.2? >> > >> > 10-bjork# nslookup www.ibacsoft.dynu.com >> > Name: www.ibacsoft.dynu.com >> > Address: 200.67.41.134 >> > > >I believe you would need to set up a DNS server and configure it to give >different results depending on the requesting ip. >For bind, I think the search term is "views". There was a good >description of why this is so a while back, but I have >long since deleted it. I don't think it will be too hard to set up, but >I haven't tried myself yet. Hope this helps. > >-Derrick > Yes, it is an internal DNS setup and I believe "views" requires BIND9. With BIND8+, you need two DNS setups: 1 for external and 1 for internal (LAN)..... Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net _______________________________________________ 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"