From owner-freebsd-net Tue Mar 14 7:49:24 2000 Delivered-To: freebsd-net@freebsd.org Received: from pau-amma.whistle.com (pau-amma.whistle.com [207.76.205.64]) by hub.freebsd.org (Postfix) with ESMTP id 9890337B644 for ; Tue, 14 Mar 2000 07:49:21 -0800 (PST) (envelope-from dhw@whistle.com) Received: (from dhw@localhost) by pau-amma.whistle.com (8.9.2/8.9.3) id HAA65405; Tue, 14 Mar 2000 07:49:17 -0800 (PST) (envelope-from dhw) Date: Tue, 14 Mar 2000 07:49:17 -0800 (PST) From: David Wolfskill Message-Id: <200003141549.HAA65405@pau-amma.whistle.com> To: freeBSD-net@FreeBSD.ORG, glbj@bellatlantic.net Subject: Re: Name resolution - Finding DNS In-Reply-To: <200003141456.JAA28651@smtp-out1.bellatlantic.net> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >From: "Gene Bomgardner" >Date: Tue, 14 Mar 2000 09:53:17 -0500 >------------------------ HUB ------------------------------ > | | | >FBSD Box 1 MODEM FBSD Box 2 >Note that all PCs and the modem are on a hub. FBSD box #1 runs >3.4, is set up as a gateway running Natd, and accesses the Net >just fine. No problems. FBSD Box #2 can access the Net just fine >via Box 1 as long as IP adresses are used. However, Box #2 >cannot resolve domain names. I think it doesn't know where to look >for a DNS server (I've got named running on Box #1). >How do I tell Box #2 to look to Box #1 for name resolution? In #2's /etc/resolv.conf, make the first "nameserver" line use the (internal) IP address of #1. Alternatively, run named on box #2, and tell it to forward requests to #1 (and in #2's /etc/resolv.conf, point the nameserver to itself). The latter is what I do at home (DSL connection), since I also have #1's /etc/resolv.conf pointing to the #2 as the nameserver. That way, I can have #1 provide the "outside world's" perspective on the domain(s) I host, while doing things that may have only coincidental resemblance to that on the inside. Cheers, david -- David Wolfskill dhw@whistle.com UNIX System Administrator voice: (650) 577-7158 pager: (888) 347-0197 FAX: (650) 372-5915 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message