My box is not resolving dns names. Waht can i do ?
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.
Well, for starters, try removing the search line of resolv.conf, it will cause weird problems like firefox quicksearch not working. Secondly, do the ip:s in resolv.conf match to the ones your windows boxen get as the DNS servers? Can you ping the DNS servers? Do you have an iptables firewall in place?
As a last resort, try reconnecting after the machine has booted up, its possible that theres something screwy with your NIC so that init doesn't do things right on the girst time (it happens, rare tho).. So, just do a rc.inet1 restart or whatever init system RHEL uses.. (:
i'm sorry ... i was on windows while i wrote the post in the forum (guess why - the net on linux is not working ) so i didn't remember the resolv.conf the correct file is:
search signetnetwork.ro
nameserver xx.xx.xx.xx
and so on.
I tried to remove the search line ... but no use.
And for Artanicus: Yes, i can ping the dns servers and other server .... but when i try to ping a name such as google or yahoo it's just not working.
If you have any kind of local firewall solution (RHEL surely has some fancy interface for one) then it might be badly configured and blocking your DNS queries. So, try shutting down anything like that so we can narrow down the problem.
Also crossreferencing to a windows installation might prove useful, most differences in states on working / not working are actually caused by a different environment.. (;
to see if iptables is running. If it is running, and you get anything more than three lines ending in ACCEPT, then you'll want to examine the filtering rules you are using to see if they are causing you a problem. However, if you didn't set up iptables, it probably isn't running by default.
As artanicus said, did you confirm that you are using the same nameserver IP addresses as you use successfully on your Windows computer? No typos, right?
When i start iptables from the Services Interface it says:
iptables failed. The error was: Flushing firewall rules: [OK]
Setting chains to policy ACCEPT: filter [OK]
Unloading iptables modules [OK]
And that's all. Iptables is stopped.
In /etc/nsswitch.conf i found the line
#----
hosts: dns
#----
The iptables output you show, with the three lines ending in ACCEPT, shows that no filtering rules are active, and all traffic can pass in and out freely. So I would think that iptables is not part of the problem at the moment. I'm not familiar with SELinux configuration, so I don't know what has to be opened up or shut down in SELinux to allow a basic network to work.
You said that you can ping hosts on the internet by IP address, yes? "ping 81.196.168.2" works? If you can do that, your basic networking setup is correct. I'd have thought that that was sufficient to get DNS queries via nslookup to work.
Artanicus' suggestion about something blocking your DNS queries sounds more and more likely.
Are there any entries in /var/log/messages that look pertinent to this problem?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.