Mac OS X, the problem of often unable to connect to the network after sleeping has been solved

I have been plagued by this problem before. Usually, the computer is almost never turned off, and it is always sleeping, but when I wake up the next day, I cannot connect to the network unless I restart the computer and


call Apple customer service


. I found that a process named mdnsresponder

occupies a huge amount of network resources. Later, after querying on the Internet, the following commands solved the problem and cleared the DNS cache. Execute the following commands
respectively :
sudo dscacheutil -flushcache;
sudo killall -HUP mDNSResponder;
say DNS cache flushed;


I heard the sound of DNS CACHE FLUSHED, even if it is OK, then try to connect to the network again, and it is done.

Of course , the commands here are different in different system versions. My system is EI captian, and other versions can continue to search. Not tested Other versions
yosemite 10.10~10.10.3 version
sudo discoveryutil mdnsflushcache
yosemite 10.10.4
sudo killall -HUP mDNSResponder

earlier
sudo killall -HUP
mDNSResponder sudo dscacheutil -flushcache
can be tried separately, I have not tested

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326541719&siteId=291194637