Skip to content

Instantly share code, notes, and snippets.

@carlashley
Last active November 14, 2016 10:51
Show Gist options
  • Save carlashley/42d4ca630c6267337c6b28a885856c79 to your computer and use it in GitHub Desktop.
Save carlashley/42d4ca630c6267337c6b28a885856c79 to your computer and use it in GitHub Desktop.
mDSN Debug states
#!/usr/bin/python
# A dictionary detailing what logging is configured for mDNS debugging
from SystemConfiguration import (
SCDynamicStoreCreate,
SCDynamicStoreCopyValue,
)
ds = SCDynamicStoreCreate(None, 'mDNS', None, None)
result = SCDynamicStoreCopyValue(ds, 'State:/Network/mDNSResponder/DebugState')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment