From owner-freebsd-questions Wed Aug 29 19:50:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from tomts13-srv.bellnexxia.net (tomts13.bellnexxia.net [209.226.175.34]) by hub.freebsd.org (Postfix) with ESMTP id 0593937B403 for ; Wed, 29 Aug 2001 19:50:25 -0700 (PDT) (envelope-from matt@gsicomp.on.ca) Received: from xena.gsicomp.on.ca ([64.228.155.124]) by tomts13-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010830025024.ZSLF28468.tomts13-srv.bellnexxia.net@xena.gsicomp.on.ca>; Wed, 29 Aug 2001 22:50:24 -0400 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.11.1) with SMTP id f7U2hfk00554; Wed, 29 Aug 2001 22:43:41 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <000f01c130fd$86914110$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Dan Thill" , References: <3B8D9E69.C6D52866@umr.edu> Subject: Re: NAT'd machine can't resolve hostnames Date: Wed, 29 Aug 2001 22:43:10 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 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 > I have two PCs, 192.168.0.1 and .2 both running FreeBSD 4.3. I'm using > user-land PPP to provide NAT to the Machine 2. I have PPP working perfectly > already. The two machines can see and talk to each other on the network via > hostnames and IP's fine. However, when Machine 1 is connected to my dialup ISP, > Machine 2 can only resolve sites by IP address. For some reason, Machine 1 > isn't resolving the hostname (or passing it on to my ISPs DNS servers to be > resolved). Machine 1's resolv.conf is updated for each connection (as it should > be), and if I copy the nameserver address to the resolv.conf of machine 2, > PRESTO! It can resolve names. > > My question is: is there anyway that Machine 2 can get the new nameserver > addresses from Machine 1, or have Machine 1 forward the resolutions on to the > ISP (or something like that... I'm not quite up to par on how all this works)? > Or do I have to use bind or routed? (I'd prefer to use neither). I would resort > to just editing Machine 2's resolv.conf, but I'm in a situation where I switch > between several ISPs on a daily basis. And I KNOW there is a way to so this, Yes. Run named on Machine 1, configured to forward all requests on to your ISP's DNS servers (see forwarders and forward-only configuration options in named.conf.) -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message