Reset the ServerAddresses entry to an empty array: Obtain a working copy of the DNS configuration entry. > show State:/Network/Service/A3551F2D-62CE-1234-B79A-6EE50CA7AE30/DNSĪhh, this is the one! So let's get rid of those pesky servers. List all network services with DNS configuration: With the VPN connected, launch scutil with root privileges: After hours and hours of hard work (my fingertips still hurt from all the googling) I present to you a solution: For me this need typically arises when I connect to a VPN managed by an operator from hell. Anyways, this would be all swell if there wasn't the occasional need for manually specifying DNS servers. Survival of the fittest, I guess, or, Darwin's intelligent design. They generally go through Darwin's resolver library which instead of reading /etc/nf looks up DNS servers via the SystemConfiguration framework backed by configd. The dig and nslookup utilities still read it but most applications use a different mechanism for picking DNS servers when resolving host names. I'll have to break sad news to you: /etc/nf has been made redundant in Mac OS X.
0 Comments
Leave a Reply. |