MacOS forced to refresh the local DNS cache

In the development process, the domain name of the project to replace a new IP address, but if you use the PC does not take effect immediately, this time only need to force a refresh of the local DNS cache, you can get our latest set of 域名-IPmaps Relationship, access to the domain name.

sudo killall -HUP mDNSResponder

Personal blog address: Roc's Blog

Guess you like

Origin blog.csdn.net/peng2hui1314/article/details/108557043