Thanks for your response.
I took a glance at my /etc/nsswitch.conf and this entry was already there.
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
If I do:
And it gets the IP which is registered in /etc/hosts ok. But I think the problem is with the web browser, which seems to be resolving the name through the firewall (dns forwarder). I'll try to see with tcpdump to try to check which IP is resolving when using web browser.
Thanks a lot