Can NOT resolve DomainName

Jeremy Fowler jfowler at westrope.com
Fri Oct 18 08:46:07 CDT 2002


Your /etc/resolve file is probably your problem. However, Redhat should get that
information from DHCP and fill in that file for you. I would make sure your
setting up your NICs using the recommended Redhat init scripts. Look at
/etc/sysconf/network and /etc/sysconf/network-scripts/ifcfg-eth0 and make sure
everything in there is correct. Don't know what to look for? RTFM! Then make
sure the network init script is in your current run level. Use tksysv, ntsysv,
or chkconfig to see what is enabled.

Also, If your SMC router is your DHCP server, how does it get it's IP address
from roadrunner? Is it manually input or does it use DHCP itself? Open up your
router's configuration and check to see if it is configured with DNS information
and make sure that information is being pushed forward to you.

As a last resort, you will have to edit /etc/resolve on your own and enter that
information. You can use any editor you want. Some common ones are emacs, pico,
nano, vim (vi), and joe. Vim is not very intuitive for a Windows user, so I
would stay away from that one.

> -----Original Message-----
> From: owner-kclug at marauder.illiana.net
> [mailto:owner-kclug at marauder.illiana.net]On Behalf Of jo mojo
> Sent: Thursday, October 17, 2002 7:09 PM
> To: kclug at kclug.org
> Subject: Can NOT resolve DomainName
>
>
> 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