On 27 Mar 2015, at 20:44, marty leisner <[email protected]> wrote:
> I want to understand more about what scutil --dns does. > > Since I have the source, I thought I could easily build it (my mistake). Yeah, my experience is that Darwin source rarely builds easily. It's still a useful tool though. In this case of --dns, it calls an internal routine, dns_configuration_copy: <http://www.opensource.apple.com/source/configd/configd-699.1.5/dnsinfo/dnsinfo_copy.c> which XPCs over to a configd-side routine, _dnsinfo_copy: <http://www.opensource.apple.com/source/configd/configd-699.1.5/dnsinfo/dnsinfo_server.c> which calls _libSC_info_server_get_data to get the data: <http://www.opensource.apple.com/source/configd/configd-699.1.5/libSystemConfiguration/libSystemConfiguration_server.c> It seems that the DNS data is set by a call to _libSC_info_server_set_data in _dns_configuration_store: <http://www.opensource.apple.com/source/configd/configd-699.1.5/dnsinfo/dnsinfo_server.c> which, in turn, is called by dns_configuration_set in the IPMonitor plug-in, where the actual logic lies. <http://www.opensource.apple.com/source/configd/configd-699.1.5/Plugins/IPMonitor/dns-configuration.c> Have fun (-: Share and Enjoy -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware _______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com This email sent to [email protected]
