I work on Linux on my laptop, I could not access a particular website using the URL, so I used sudo /etc/init.d/nscd restart in order to clear the DNS cache, but the URL is still throws 'Server Not Found' in Firefox. I have tried also Chrome, it still not working. Other friends can see the web page, but I can not. So what would be the main cause of this? I can surf other sites nicely. Weirdly enough when I even try the IP address of that particular URL, it shows me a different page than what other people see.I appreciate any help on this matter.
Clearing DNS Cache in Linux
linux;dns
Unless you are running bind by accident you should check your nscd configuration file located at /etc/nscd.conf.It will list the caches that are kept. enable-cache            hosts           yes positive-time-to-live   hosts           3600 .......# nscd -?-g, --statistics           Print current configuration statistics-i, --invalidate=TABLE     Invalidate the specified cachenscd -g    hosts cache:        yes  cache is enabled         no  cache is persistent        yes  cache is shared        211  suggested size     216064  total data pool size        384  used data pool size        600  seconds time to live for positive entries          0  seconds time to live for negative entries          0  cache hits on positive entries          0  cache hits on negative entries        128  cache misses on positive entries          0  cache misses on negative entries          0% cache hit rate          3  current number of cached values          7  maximum number of cached values          2  maximum chain length searched          0  number of delays on rdlock          0  number of delays on wrlock          0  memory allocations failed        yes  check /etc/{hosts,resolv.conf} for changes# nscd -i hostsThis will invalidate the cache.But, after doing it there was no change to the hosts entries in nscd -gAfter restarting nscd it was flushed.service nscd restart    hosts cache:        yes  cache is enabled         no  cache is persistent        yes  cache is shared        211  suggested size     216064  total data pool size          0  used data pool size        600  seconds time to live for positive entries          0  seconds time to live for negative entries          0  cache hits on positive entries          0  cache hits on negative entries          0  cache misses on positive entries          0  cache misses on negative entries          0% cache hit rate          0  current number of cached values          0  maximum number of cached values          0  maximum chain length searched          0  number of delays on rdlock          0  number of delays on wrlock          0  memory allocations failed        yes  check /etc/{hosts,resolv.conf} for changesUnless you are running bind this is the only way to clear the cache short of finding the database for nscd and deleting it which could cause other issues. I would follow the troubleshooting procedures for IP resolution. I outlined some in the comments to your question.This is a link to a pretty good Linux Journal article on Troubleshooting Network Problems.