Problem It may possible that sometimes if DNS is not properly configured or not able to resolve public domains. Solution To resolve this add nameserver 8.8.8.8 in /etc/resolve.conf and then try to nslookup the website again.