Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Aug 2001 22:43:10 -0400
From:      "Matthew Emmerton" <matt@gsicomp.on.ca>
To:        "Dan Thill" <thill@umr.edu>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: NAT'd machine can't resolve hostnames
Message-ID:  <000f01c130fd$86914110$1200a8c0@gsicomp.on.ca>
References:  <3B8D9E69.C6D52866@umr.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000f01c130fd$86914110$1200a8c0>