Currently, I'm working on NEDNSSettingsManager on macOS.
I succeeded in loading settings using loadFromPreferences(completionHandler:), and also saving settings using saveToPreferences(completionHandler:). Then, macOS' System Preferences showed "Not Running" and I couldn't enable it.
How do I enable it on System Preferences?
My code looks like the following.
On iOS, I can enable it on Settings app using the same code.
Thank you.
I succeeded in loading settings using loadFromPreferences(completionHandler:), and also saving settings using saveToPreferences(completionHandler:). Then, macOS' System Preferences showed "Not Running" and I couldn't enable it.
How do I enable it on System Preferences?
My code looks like the following.
On iOS, I can enable it on Settings app using the same code.
Thank you.
I did some digging into this and created a test bed project of my own on macOS. When you create the Network Configuration for NEDNSSettingsManager and call saveToPreferences the Network Configuration should be able to be seen in the System Preferences. From there, click on the new Network Configuration in the left side pane. At the bottom of the list should be a circle icon with "..." in the middle. Click this button and click "Make Service Active." Next, click Apply and this should activate your new Network Configuration. From there you should be able to prove that DoT or DoH is being used with URLSessionTaskMetrics via something like:
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Code Block swift switch metric.domainResolutionProtocol { case .https: print("DoH was used") case .tls: print("Dot was used") case .udp: print("Unencrypted DNS was used") default: print("Nothing was determined about resolution") } }
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com