Change to a better Mac-friendly DNS flush method.
This commit is contained in:
parent
9193348356
commit
22afd81596
|
@ -11,12 +11,20 @@ function sorry()
|
|||
}
|
||||
|
||||
case ${OS} in
|
||||
Darwin) case ${REL} in
|
||||
14.*) sudo dscacheutil -flushcache
|
||||
Darwin) PROD_VER=$(sw_vers -productVersion)
|
||||
case ${PROD_VER} in
|
||||
10.10.3|\
|
||||
10.10.2|\
|
||||
10.10.1|\
|
||||
10.10.0|\
|
||||
10.10) sudo discoveryutil mdnsflushcache
|
||||
;;
|
||||
13.*) sudo pkill mDNS
|
||||
|
||||
10.6.*|\
|
||||
10.6) sudo dscacheutil -flushcache
|
||||
;;
|
||||
*) sorry
|
||||
|
||||
*) sudo killall -HUP mDNSResponder
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue