Thanks nitecode. This problem was so annoying. Simple change in /etc/nsswitch.conf hosts: files dns mdns4_minimal [NOTFOUND=return] mdns4 solved the problem. This should fixed in default configuration.
Thanks nitecode. This problem was so annoying. Simple change in /etc/nsswitch.conf
hosts: files dns mdns4_minimal [NOTFOUND=return] mdns4
solved the problem. This should fixed in default configuration.