Host name Lookup Failure

Dear All ,

I am able to resolve my server using its ipaddress from other machines.

But not from the same machine.

But I have updated the DNS entry in /etc/resolv.conf.

Even SSH login from other server shows Hostname Lookup Failure.

Please help me on this.

Rj

Can you post the DNS entry you made? Use a fake IP.
Also note - there is a DNS lookup order that you can control.
Are you using some type of network security that blacklists some IP's?

The dig command is your friend
Please post the full output of

dig [bad server name]
dig [ bad server IP]

I'm afraid a DNS entry doesn't belong into /etc/resolv.conf but into the bind configuration files.
What you can do is put a translation record into /etc/hosts and redefine the search order (e.g. order hosts,bind ) in /etc/host.conf .

DearAll ,

Thanks for your reply.
When I stopped the firewall , it is working.

some where in the firewall , it is not getting enabled.

I even enabled the firewall for port 53.

Please send me some inputs.

Did you enable both Port 53/UDP and Port 53/TCP ?

Yes , we have enabled both udp and tcp.