• 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
Temporarily setting DNS servers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Temporarily setting DNS servers


  • Subject: Temporarily setting DNS servers
  • From: Frederik Seiffert <email@hidden>
  • Date: Fri, 23 Apr 2004 02:41:42 +0200
  • Organization: equinux Inc.

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.

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?

Thanks a lot,
Frederik
_______________________________________________
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.


  • Follow-Ups:
    • Re: Temporarily setting DNS servers
      • From: Malte Tancred <email@hidden>
  • Prev by Date: Re: Problem within a MoreSecurity helper tool
  • Next by Date: Re: Temporarily setting DNS servers
  • Previous by thread: Re: Problem within a MoreSecurity helper tool
  • Next by thread: Re: Temporarily setting DNS servers
  • Index(es):
    • Date
    • Thread