Can NOT resolve DomainName
jo mojo
johan_yo at hotmail.com
Thu Oct 17 19:04:10 CDT 2002
I tried Duane suggestion, it has a little bit of progress. I can ping
Internet using IP address, but can't use domain name.
DoesNOT work: ping www.yahoo.com
WORKS : ping 64.58.76.222
Do I need to add RoadRunner DNS manually? SO RedHat DHCP is not an automatic
thing? Do I need to use text editor to open resolv.conf file for edit? cat
is for reading, right? What is for write?
Sorry, guys. I'm new to these things. I'm spoiled by Windows :)
Below is the transcript of what I tried on the Terminal:
My SMC router (dhcp server) is 192.168.2.1
my prompt is: [root at localhost root]#
I tried: /sbin/route -n
I got :
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.1 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0
I tried: /sbin/route add default gw 192.168.2.1 eth0
I got: SIOCADDRT: File exists
I tried: ping www.yahoo.com
I got: ping: unknown host www.yahoo.com
I tried: /sbin/route -n
I got :
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.1 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0
I tried: cat /etc/resolv.conf
I got: search localdomain
I tried: ping 64.58.76.222
I got: 64 bytes from 64.58.76.222: icmp_seq=1 ttl=47 time=55.5 ms
repeating till I press ^C
cheers,
Johannes
>From: Duane Attaway <dattaway at attaway.net>
>To: jo mojo <johan_yo at hotmail.com>
>CC: Kansas City Linux Users Group <kclug at kclug.org>
>Subject: Re: RH 8.0 Network not working
>Date: Thu, 17 Oct 2002 07:13:25 -0500 (CDT)
>
>On Wed, 16 Oct 2002, jo mojo wrote:
>
> > When I started my Linux box, I tried to ping other machine (all begins
> > with 192.168.2.x) behind my smc router. I can ping. But I can NOT ping
> > IP address (use IP not domain name) outside my network. From my Win
> > machine, I can ping my Linux box.
>
>This is good. Now all you need is to know the address for the gateway.
>The gateway address is where all your packets going out to the real world
>get funneled through:
>
>/sbin/route add default gw 192.168.2.1 eth0
>
>if that is the address of your cable modem, router, or whatever is the
>gateway device to your internet.
>
>You can view your routes by typing:
>
>/sbin/route -n
>
>I use the -n option, so it won't try to resolve host names when it prints
>them out. You should see a default route for things going to the network
>at the end.
>
>By this time you should ping outside your network. If you have problems
>resolving dns names, your /etc/resolv.conf is the file you can stick the
>addresses of nameservers in:
>
>root at satellite linux # cat /etc/resolv.conf
>nameserver 24.94.165.25
>nameserver 24.94.163.34
>nameserver 24.94.163.33
>search kc.rr.com
>
>Make sure resolv.conf is world readable, otherwise only root will be able
>to resolve names, while users will find they can't.
>
>That should get you going. If not, let me see what your routing table
>looks like with that route command.
>
>
_________________________________________________________________
Surf the Web without missing calls! Get MSN Broadband.
http://resourcecenter.msn.com/access/plans/freeactivation.asp
More information about the Kclug
mailing list