• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Question about adding search domains using kSCPropNetDNSSearchDomains
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Question about adding search domains using kSCPropNetDNSSearchDomains (From: "Abhishek Singh (abhsing2)" <email@hidden>)
 >Re: Question about adding search domains using kSCPropNetDNSSearchDomains (From: Allan Nathanson <email@hidden>)
 >RE: Question about adding search domains using kSCPropNetDNSSearchDomains (From: "Abhishek Singh (abhsing2)" <email@hidden>)

  • Prev by Date: Re: kCFSocketDataCallBack auto accepts connection?
  • Next by Date: Problems with Security Update 2008-006
  • Previous by thread: RE: Question about adding search domains using kSCPropNetDNSSearchDomains
  • Next by thread: Problem with Network Preferences & System Configuration Framework
  • Index(es):
    • Date
    • Thread