sid Posted December 10, 2020 Posted December 10, 2020 I needed to add semi-colons to the bash function to get this working for me modern1 () { osascript -e 'do shell script "sudo killall -HUP mDNSResponder" with administrator privileges'; } modern2 () { osascript -e 'do shell script "sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder" with administrator privileges'; }
harvey Posted December 12, 2020 Author Posted December 12, 2020 On 12/10/2020 at 11:49 PM, sid said: I needed to add semi-colons to the bash function to get this working for me modern1 () { osascript -e 'do shell script "sudo killall -HUP mDNSResponder" with administrator privileges'; } modern2 () { osascript -e 'do shell script "sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder" with administrator privileges'; } Hi, thanks for the heads up. Version 2.0.2 pushed to Packal
harvey Posted August 4, 2021 Author Posted August 4, 2021 Look at me! I'm early this year 🤪 Based on early searches, macOS 12 Monterey seems to use the same commands as macOS 11. Update the code to more clearly identify new OS' going forward and add support for macOS 12. New Packal Link: https://www.packal.org/workflow/flush-dns-106-120 Enjoy! paulw and Samplex 2
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now