Re: trying to build configd, understanding dns more
Re: trying to build configd, understanding dns more
- Subject: Re: trying to build configd, understanding dns more
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Mon, 30 Mar 2015 09:05:38 +0100
On 27 Mar 2015, at 20:44, marty leisner <email@hidden> 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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden