Re: Temporarily setting DNS servers
Re: Temporarily setting DNS servers
- Subject: Re: Temporarily setting DNS servers
- From: Malte Tancred <email@hidden>
- Date: Fri, 23 Apr 2004 08:41:06 +0200
On 23 apr 2004, at 02.41, Frederik Seiffert wrote:
Hi!
I searched through the archives and several other places but couldn't
find an answer to this question:
What's the correct way to temporarily replace the DNS servers under
Mac OS X 10.2 and later? The preferences in the networking system
preferences panel should not be overwritten.
What problem are you trying to solve?
It would probably work to overwrite /etc/resolv.conf, however, I
figured the correct way to do this is using the System Configuration
framework. Still, I'm not quite sure which key to set. Using scutil, I
found out that setting Setup:/Network/Service/<current set>/DNS works
as expected. So should I just read the "Setup:" key to determine the
current set and set the DNS key of this set? Why is it that this
doesn't have any effect on the values written in the networking
preferences panel?
Sorry for all the questions, unfortunately the documentation on the
System Configuration framework is rather sparse...
Also, how can I set DNS servers for specific domains only (e.g. use
192.168.1.1 for *.example.com)? Again, creating files in /etc/resolver
works fine. Is this the recommended way or can/should this be done
using the System Configuration framework?
I haven't worked with BIND for a while so I don't know whether it has a
feature that resembles how the environment variable DNSCACHEIP is
treated in djbdns' DNS client library. A program using that library can
be told to look at a different cache by setting this variable. Is this
the feature you're after?
Regards,
Malte Tancred
--
Malte Tancred
Computer Programmer
Oops AB,
http://oops.se/
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.