Name resolution failing on linux, working on everything else
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.
Name resolution failing on linux, working on everything else
I'm pretty sure that I've missed out something really, really obvious here, but my laptop no longer resolves domain names, for some reason. By typing in the IP of google.com, I can view the website, so it's not a connectivity error. This is on a Gentoo system using a 2.6.9 kernel.
For a few days, our network went down, and when it came back up, my desktop was resolving domain names, but my laptop couldn't.
After I discovered that things weren't working, I removed net.eth0 from rc-update, and tried setting up the network manually.
I've tried the following commands (we're using a static ip setup here, gah)
ifconfig eth0 192.168.123.249 netmask 255.255.255.0 broadcast 192.168.123.1 up
route add default gw 192.168.123.1
Have I missed out something really, really obvious?
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
What does /etc/resolv.conf look like? That would be the file you may need to add your name servers to. You should have something similar to this in the file.
nameserver xxx.xxx.xxx.xxx
Where xxx.xxx.xxx.xxx is the ip address of your dns servers.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
What is the network topology, and how are you connected? Does /etc/resolv.conf contain the ip address of the gateway machine or the actual dns servers ip's from your isp?
good luck.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
I don't recall ever seeing this problem, normally it either works or it doesn't, not intermittantly. Some googling might produce some explanation, but, since it's working I'm glad you're sorted.
good luck.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.