Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to install Mandriva Spring 2010 for a friend on his laptop after MS Windows crashed. The installation appeared to work, but I've got an odd networking problem - firefox is unable to load URLs. Every URL I try returns a server not found error.
When I drop into bash I'm able to do the following
Code:
ping 66.102.9.103
ping google.com
However when I try
Code:
wget http://google.com
I just get a message that tells me that wget is "unable to resolve host address google.com'"
This is odd - ping is able to resolve google.com, but wget isn't. I assume that firefox and Konqueror both have the same problem. Could it be cause I've specified the http protocol? If so how do I fix it?
comes back with the same "Name or service not known" error. However the dig application is far more interesting - it comes back with a load of IP addresses that match google.
I've also tried pinging a few other locations, and the results are a bit strange as well.
google.com - pings work as expected
ping amazon.com - IP address is resolved to 72.21.207.65, but 100% packet loss
ping microsoft.com - IP address resolved to be 207.46.232.182, but 100% packet loss
ping goats.com - IP address resolved to be 208.122.50.173. Replies are slow, but they work
I can imagine the machine being able to resolve a major site like google, but not the Goats web comic!
Thanks for you advice. I don't have services called "firewall" or "iptables6" (I'm not using IPv6). I've also rebooted the machine a few times, so I don't think it's a service that is in a bad state.
Is the issue likely to be related to the eth0 device (in which case I'll send the configuration of ifcfg-eth0) or is it some other lookup service that handles name resolution? I've looked at /etc/hosts and it only contains an entry for 127.0.0.1
Also most distros have a file to set wget and other apps if you have some odd network like a proxy. Do you have a proxy? Does the distro offer a system wide network setting? It may not be working for wget.
I'll have to get back to you with the nslookup details (my friend wanted the machine back, but we are still working on it!)
There shouldn't be a proxy - the machine is used on a home network. I've got a router that is connected directly to the broadband; the router also acts as my DHCP which I can see is correctly handing out IP addresses in my 192.169.xx.xx range.
This is the first time I've used the Mandriva Spring 2010 distro, so the might be some setting I've missed.
I would check /etc/resolv.conf to make sure a real dns server is in there.
To test, you can always use 4.2.2.2 which is an att dns server somewhere. Add that, and try. Do not do a network restart if you are using DHCP -- it will overwrite it.
Sorry for the delay getting back to you - the owner wanted him machine back!
The change to /etc/resolv.conf worked a treat, but only as long at the machine isn't rebooted. Restarting the machine (or just the network service?) clears the file. Any ideas how to make it permanent?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.