Skip to main content
Question

DNS Flush through JSS

  • March 8, 2018
  • 1 reply
  • 9 views

Forum|alt.badge.img+1

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

Forum|alt.badge.img+13
  • Valued Contributor
  • March 8, 2018

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


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

This runs as root so no admin details required

G'LUCK!