Linux not reaching the internet -- DNS??

daveburrow used Ask the Experts™
newbie, green and wet --- nuff said

Been to and fro on this list trying to help myself to no avail.

    Linksys wireless 802.11g router/DHCP connects:
    Box 1) My main XP box
    Box 2) An older 233 mHZ running NT 4.0, functions as an IVR for the phones
    Box 3) An older 233 mHZ running RH 9.0
    Box 4) ADSL modem

    Linksys provides dynamic IP address for all boxes
    Windows boxes (XP and NT) successfully can resolve DNS lookups
    Linux box can not ping by name
    Linux box can not ping the internet (any site)
    Linux box CAN ping (by address) Linksys router and DSL modem
    PPP fails to start


[root]:/etc ==> cat host.conf
order hosts,bind
multi on

[root]:/etc ==> cat resolv.conf

[root]:/etc/sysconfig/network-scripts ==> cat ifcfg-eth0

[root]:/etc/sysconfig/network-scripts ==> cat ifcfg-ppp0


Note: USER=[maskeduser] mannually altered from original value

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2006
I suspect that what you need to do is alter the default route for your linux box in order to ensure that it routes correctly to the outside world.

Please print out the response to the command route, so we can all see the actual routing, but I suspect that the following will solve your problem:)

You will then need a command (obviously adjust for your network) similar to:

route add default gw dev eth0

(man route for more info)

To enable the DNS for your linux box, you need to add the capability to use a DNS server that you can access. Try adding the line: (This will enalble DNS lookups even if your routing is wrong)


to your resolv.conf, where w.x.y.z is the ip address of your router. This is because many routers have the capability to act as aDNS proxy. I presume that is the ip address of the DNS server given by your ISP.

HTH :)
Top Expert 2005

Since you have the Linksys router acting as an Internet gateway you don't need PPP on the Linux box at all. And that is probably at the root of the current problems. That needs to be removed from your configuration and the system rebooted. The Linux box should then get everything it needs from the DHCP negotiation.

You can check to see that a default route has been set by executing '/sbin/route -n' and looking for a line with a Destination of The Gateway should be the IP of your Linkys router.


OK -- so I believe I've kept ppp0 from starting on boot, but I don't believe I've "removed" it. Is removal of ppp0 accomplished by just "rm /etc/sysconfig/network-scripts/ifcfg-ppp0" ??

Further info: I am working this issue to build a "development box" to play on, modeled after a dedicated server provided by a hosting service (I know, "what on earth a newbie is doing with dedicated server"?).  

Anyway, comparing the functional setup of the working server with my local linux setup, I notice an additional line in the output:

[root]:/root ==> route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface   U     0      0        0 eth0     U     0      0        0 eth0       U     0      0        0 lo         UG    0      0        0 eth0

The host seems erroneous..... I'm not sure if I should be attempting to delete it, but assuming I should, the delete attempt returns:

SIOCDELRT: No such process

Doing a web search on "SIOCDELRT" returned multiple advice like "add more operands to the route command"

I've tried:

route del -host
route del -host eth0
route del -host netmask
route del -host netmask eth0

which returns the same "SIOCDELRT" or:

route: netmask 000000ff doesn't make sense with host route

Thanks for the help so far, I'm learning as we go, but -- Symtom remains as originally stated -- no internet access.....  

Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

Top Expert 2005

How about showing what '/sbin/ifconfig -a' shows?

And what does /etc/resolv.conf contain?

To eliminate the PPP connection you need to delete the PPP connection informationn in the same tool that you used to set it up in the first place.


eth0      Link encap:Ethernet  HWaddr 00:90:47:03:B9:D9
          inet addr:  Bcast:  Mask:
          RX packets:527 errors:0 dropped:0 overruns:0 frame:0
          TX packets:919 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:72673 (70.9 Kb)  TX bytes:171405 (167.3 Kb)
          Interrupt:10 Base address:0x6000

lo        Link encap:Local Loopback
          inet addr:  Mask:
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:700 (700.0 b)  TX bytes:700 (700.0 b)

[root]:/root ==> cat /etc/resolv.conf


where = linksys router
where = ISP's DNS

got WEBMIN going this morning..... still not obvious to me what the issue might be

Top Expert 2005

Ordinarily I'd expect the Linksys to be at Are you sure that the IP of the Linksys is correct? And is the Linksys providing a DNS proxy?

Hmm , there is something I can understand . As dhcp work correct and the box hase obtained address and gw you have to be able to ping any ip address no matter DNS is correct or not . But anyway , this route - to network (btw , daveburrow it is network , so the correct command have to be "route del -net") is automaticaly added after initializing eth0 before dhcp reply received . But once we havee obtained real ip address , this route must disappear its self , am I wrong ?


jlevie ---
The address for the linksys is correct as -- I had configured this under its administration web page from its default value so as not to conflict with the DSL modem on the local LAN that had itself also laid claim to the default of  I can change the address of the DSL modem as easily as I had changed the address of the linksys, if that were to prove important.

The modem is at -- has its DHCP capability, and I believe that to have been disabled
The linksys is at -- it behaves as DHCP server for the local lan, and I believe it is itself assigned an ip address at the ISP via dhcp

brabard ---

Thanks for the "-net" info --- yes, I've now removed the entry.  

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface     *        U     0      0        0 eth0       *            U     0      0        0 lo
default         UG    0      0        0 eth0

Top Expert 2005

Does the Linksys have a default route pointing to your DSL modem? If you go to one of the windows boxes and do an 'ipconfig /all' in a cmd window what is shown for the default route and DNS server?

Could you please provide the following:

cat /etc/nsswitch.conf
traceroute to an outside IP Address.
If you look at daveburrows first post, his nameserver entry does not have an = in it in /etc/resolv.conf.  I believe this = is not allowed.

this may just be a network set up issue.  i have a bunch of questions for you, then i think i can help you.

what brand/model is your adsl modem?

are any of your clients wired w/ ethernet, or are they all wireless?  which ones?

what is the WAN address assigned to your linksys router (from the status page)
how is the WAN address assigned to your linksys router (static or dynamic?)
what is the LAN address assigned to your router (, correct?)
what type of client is the linksys acting as?  (PPPoE, RAS, etc)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial