Hello Jamf Community,
I am looking for a script, to change the DNS "Search Domain" to .local on Wi-Fi and Thunderbolt Ethernet.
I try a few comands but no one works...
Hope everyone can help me.
Many Thanks
Christian
Hello Jamf Community,
I am looking for a script, to change the DNS "Search Domain" to .local on Wi-Fi and Thunderbolt Ethernet.
I try a few comands but no one works...
Hope everyone can help me.
Many Thanks
Christian
Best answer by thoule
/usr/sbin/networksetup -setsearchdomains "Wi-Fi" .local
And networksetup -listallnetworkservices can give you a list of network interfaces to tackle. Just put it into an array and loop through them.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.