Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Mar 2000 07:49:17 -0800 (PST)
From:      David Wolfskill <dhw@whistle.com>
To:        freeBSD-net@FreeBSD.ORG, glbj@bellatlantic.net
Subject:   Re: Name resolution - Finding DNS
Message-ID:  <200003141549.HAA65405@pau-amma.whistle.com>
In-Reply-To: <200003141456.JAA28651@smtp-out1.bellatlantic.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>From: "Gene Bomgardner" <glbj@bellatlantic.net>
>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003141549.HAA65405>