DNS Flush through JSS

robertsonb
New Contributor

Is their a way to do this via a bash script? Additionally, is it possible to bypass having to enter an administrative password on every users machine?

Thank you!

1 REPLY 1

kerouak
Valued Contributor

You could create a new policy
go to 'files and processes'
Execute Command field neter the following:

3b131c46e0c14e5e9e0dc7f7eac3bce9
killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache

This runs as root so no admin details required

G'LUCK!