I need to push out a VPN payload that has its DNS servers set manually (Advanced/DNS under VPN settings in System Preferences) Is there a way to set the DNS servers for a VPN via script or terminal command?
Solved
Set DNS Servers for VPN Profile
Best answer by adroitboy
I had to do this for a search domain. The same method should apply.
I couldn't find something that would kickoff a script or policy once a config profile was installed. Instead, I used a run once policy that contained a network setup script, scoped to a smart group that contained machines that had the VPN adapter. I collect adapter names in an EA, but one could easily script it without that.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
