[nycbug-talk] Problem with Hostnames
Tilly
tilly
Sat Apr 24 22:29:28 EDT 2004
Hey
It seems i dont have a gateway set. So i put in
defaultrouter="192.168.1.1"
right under my ifconfig_dc0 statement. Then i do a ping outside of my
network and i get No route to host and this is after i saved the config file
and did a /etc/rc.d/netif restart
This is driving me insane.
Tilly
----- Original Message -----
From: "Scott Robbins" <scottro at nyc.rr.com>
To: <talk at lists.nycbug.org>
Sent: Saturday, April 24, 2004 10:13 PM
Subject: Re: [nycbug-talk] Problem with Hostnames
> On Sat, Apr 24, 2004 at 10:02:45PM -0400, Tilly wrote:
> > Hello,
> >
> > I am new to bsd and i am usign bsd. I have manually setup my internet in
the
> > rc.conf as:
> >
> > hostname="bsdBOX.bsd.serversunited.com"
> > ifconfig_dc0="inet 192.168.1.95 netmask 255.255.255.0"
> >
> > and i am having problems looking up hostnames. This is what is in my
> > resolv.conf
> >
> > domain darkorb.net
> > search darkorb.net
> > nameserver 216.118.116.101
> > nameserver 66.96.193.2
> > nameserver 66.96.194.2
>
> Just the two obvious questions to make sure we're not overlooking
> something silly. Not that I (cough cough) have ever done something like
> this but err, uh, it happened to a friend. :)
>
> Question one--you can ping anything by IP address? Such as yahoo?
>
> (216.109.118.77)
>
> Question 2--the default gateway? For instance, my /etc/rc.conf has
>
> defaultrouter="192.168.1.1"
>
> (Although if you're able to ping yahoo.com by IP address, the gateway
isn't
> the issue.)
>
> HTH but I doubt it will--still, never hurts to check the obvious.
>
> If you do have to add the gateway, the syntax is slightly different than
> linux. It's just
>
> route add default 192.168.1.1 (Assuming that was your gateway address)
>
>
>
> --
>
> Scott Robbins
>
> PGP keyID EB3467D6
> ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 D575 EB34 67D6 )
> gpg --keyserver pgp.mit.edu --recv-keys EB3467D6
>
> Spike: I did a couple of slayers in my time. I don't like to
> brag. Who am I kidding? I love to brag. One time, during the
> Boxer Rebellion...
>
> _______________________________________________
> talk mailing list
> talk at lists.nycbug.org
> http://lists.nycbug.org/mailman/listinfo/talk
>
More information about the talk
mailing list