Subject: Re: sharing a cable connection
To: <>
From: Sam Carleton <scarleton@miltonstreet.com>
List: netbsd-help
Date: 07/26/2001 09:26:48
I am running Solaris on my SPARC station and NetBSD on a i386 machine.  But
I think I have the ansewrs you are looking for.

In the /etc/reslov.conf, you need to have this:

search yourdomain.com
nameserver 1st.dns.server
nameserver 2nd..dns.server
nameserver 3rd..dns.server
...
...
nameserver nth.dns.server

List as many DNS servers as you have.  I happen to have four in mine.  This
will allow resolving DNS names like www.yahoo.com into IP addresses...

Next for your route information.  You need to have a router setup.  On my
next work, I have configured my NetBSD box as my router/firewall.  The way
you configure NetBSD is by putting defaultrouter="a.b.c.d" into the
/etc/rc.conf, where a.b.c.d is your router.  I am sure there is a way to
have this change take effect without booting, but I am ignorent of how to do
that, so reboot:)

Sam

Louis wrote:

> I get a diffrent result on sparky (the sparc running
> NetBSD at 192.168.0.3).
>
> sparky: {2} ping www.yahoo.com
> ping: Cannot resolve "www.yahoo.com" (Host name lookup
> failure)
>
> for the config files :
>
> sparky# cat /etc/hosts
> [SNIP]
> ::1                     localhost
> 127.0.0.1               localhost
> 192.168.0.1             equinoxe
> 192.168.0.2             alis
> 192.168.0.3             sparky
> [SNIP]
>
> sparky# cat /etc/mygate
> equinoxe
>
> the thing is I m not sure what I should have in
> the /etc/resolv.conf file
>
> If I try to ping my ISP's DNS from sparky, I get a
> 'ping: sendto: No route to host'
>
> sparky# route show
> Routing tables
>
> Internet:
> Destination      Gateway            Flags
> loopback         127.0.0.1          UG
> localhost        127.0.0.1          UH
> 192.168.0.0      link#1             U
> equinoxe         xx:xx:xx:xx:xx:xx  UH
>
> Internet6:
> [SNIP]
>
> I left /etc/nsswitch unchanged if that matters
>
> TIA
>
> Louis.
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/