Listener for user enabling/disabling DNS settings?

Is it possible to have some listener that detects when the user enables or disables the DNS settings that were saved by the DNSSettingsManager?
This can especially be handy on mac, where the app may be visible when the user enables the settings in System Preferences. Then it is possible to give immediate feedback that the setting has been applied correctly.

Is it possible to have some listener that detects when the user
enables or disables the DNS settings that were saved by the
NEDNSSettingsManager?

Have you tried NEDNSSettingsConfigurationDidChangeNotification?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Thanks for the reply, it works. It only got a name change in the meantime:

...
}.onReceive(NotificationCenter.default.publisher(for: NSNotification.Name.NEDNSSettingsConfigurationDidChange))
      {...
Listener for user enabling/disabling DNS settings?
 
 
Q