wondering anyone has a working script to flush the end user's DNS?
The terminal command for sierra is: sudo killall -HUP mDNSResponder
but I need a script so it will run without user auth.
Scenario
we are a huge apple school, over 2500 clients, we recently had to carve up our network into class c subnets per year level, so reduce bonjour flooding our wifi radio channels (the waps and wired network didn't blink an eye lid but it was occurring at the radio transmission level - a pain to diagnose).
After carving up the network, we implemented papercut mobile printing solution valuable with version 17, but being a multi subnet network, we enabled their multi subnet DNS solution, which works but we have been experiencing random issues which I have only been able to observe as a possible local dns cache issue, where users are coming in from home, and haven't received the DNS settings from the onsite DNS server.
I was hoping to implement a on network change script command which would flush the end user's DNS cache, to ensure it was collecting clean DNS data directly from our DNS server, and not something it might be still referring to from home.
