Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Temporarily changing DNS servers and search domains in Tiger



On Jun 3, 2005, at 7:23 PM, Allan Nathanson wrote:

I also tried PPTP and 6to4, and setting an empty configuration dictionary with SCNetworkInterfaceSetConfiguration, thinking perhaps that was what it was trying to retain. Is this supposed to work?

Yes, it's supposed to work but there's a bug in the code (which I just found). A bug report has been filed.

Thanks again. I really appreciate your help on this.

Your code which establishes the VPN tunnel should (minimally) post the following SCDynamicStore keys.

1. A State:/Network/Service/<serviceID>/IPv4 key containing information about the tunnel.

Note: an empty dictionary will result in the DNS information (below) being ignored

Two questions:

1. I picked a <serviceID> out of the air (it's the same as the BSD network interface name). Is this OK, or should I allocate a UUID for it?

2. Is this enough information to put in the dictionary?

> show State:/Network/Service/tun0/IPv4
<dictionary> {
  DestAddresses : <array> {
    0 : 10.84.0.161
  }
  Addresses : <array> {
    0 : 10.84.0.162
  }
  InterfaceName : tun0
}

It seems to work, but if there's anything else I should add, I can try.

and that's all you should need to do to direct DNS queries for the specified supplemental domains off to the alternate set of servers.

And the supplemental domains get added to the beginning of the search list, so it addresses both of my issues perfectly.


--Nicholas

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
References: 
 >Temporarily changing DNS servers and search domains in Tiger (From: Nicholas Riley <email@hidden>)
 >Re: Temporarily changing DNS servers and search domains in Tiger (From: Allan Nathanson <email@hidden>)
 >Re: Temporarily changing DNS servers and search domains in Tiger (From: Nicholas Riley <email@hidden>)
 >Re: Temporarily changing DNS servers and search domains in Tiger (From: Allan Nathanson <email@hidden>)
 >Re: Temporarily changing DNS servers and search domains in Tiger (From: Nicholas Riley <email@hidden>)
 >Re: Temporarily changing DNS servers and search domains in Tiger (From: Allan Nathanson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.