linux clear dns cache

Usually, sometimes we cannot open web pages through domain names, which may cause DNS caching (the ip address of DNS resolution has changed). The solutions are as follows:

     Method 1: $nslookup ecafe.pub (here is the domain name to be opened)

     Method 2: $sudo /etc/init.d/nscd restart

         Or: $service nscd restart

         Or: $service nscd reload

         If nscd cannot be executed, install nscd first, the command is as follows: $sudo apt-get install nscd

 

 

Guess you like

Origin blog.csdn.net/whatday/article/details/113837567