We are currently developing a parental control software which is based on DNS Servers basically we are provising DNS servers for various age ranges. Here we need a way to setup the "correct" dns servers ip adresses for a given age.
Basically we use "networksetup -setdnsservers ... " seems to work fine on my dev box (which is running 10.14 Mojave). We are calling networksetup from within a c# app but WITHOUT sudo. The app running on Yosemite WILL ask to run elevated. But it will only work if sudo is added.
So the question is why networksetup is running without sudo on 10.14 and the same procedure is asking for the root password on 10.10 (although not running).
Maybe other ways (e.g. using the SystemConfiguration framework) might be an option here ?
Any ideas and help appreciated.
best
Carsten