Re: Question about adding search domains using kSCPropNetDNSSearchDomains
Re: Question about adding search domains using kSCPropNetDNSSearchDomains
- Subject: Re: Question about adding search domains using kSCPropNetDNSSearchDomains
- From: Allan Nathanson <email@hidden>
- Date: Thu, 9 Oct 2008 08:44:24 -0400
On Oct 8, 2008, at 12:15 PM, Abhishek Singh (abhsing2) wrote:
But i have even tried the code by always inserting the new element
at index value 0. That way i am hoping it works like a stack,
pushing the existing elements down and inserting the new element at
index 0.
Well, that's why I did and "my" code resulted in a CFArray with the
expected contents.
But even that failed and the result was the same. All the domains
get added into the same search domain :(
I guess it's time for you to spend some time w/gdb :-)
And about using SCNetworkConfiguration APIs, i am coding in the MAC
environment for the first time. I learnt this way of adding search
domains fro a example code published on the internet. Am i not
already using the SCNetworkConfiguration APIs here?
If you are using the APIs found in SystemConfiguration/
SCNetworkConfiguration.h (with help from SystemConfiguration/
SCPreferences.h), YES.
If you are using the APIs found in SystemConfiguration/
SCDynamicStore.h, NO. Yes, you can "sometimes" get the desired
results but you are going behind the back of the configuration agents.
- Allan
_______________________________________________
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