I am searching for the answer of this error, but couldnt able to find the solution. I am using RHEL 5 and I could ping the other servers but couldnt use nslookup and dig those servers. The server sits on internal network behind firewall in DMZ.
127.0.0.1 myhostname.mydomain.com localhost.localdomain localhost myhostname
xx.xx.xx.xx myhostname.mydomain.com myhostname
xx.xx.xx.xx mailserver.mydomain.com mailserver
I could ping all the servers declared in /etc/hosts file (with ip-address, hostname and FQDN). But when I try to use nslookup or dig or host commands, I am getting the error ";; connection timed out; no servers could be reached" (even for my own server). I know there is some kind of error in configuration for DNS resolution, but I could able to find it. Please help me as this server is a high priority issues for me.