• 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: adding/removing DNS servers in Mac OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: adding/removing DNS servers in Mac OS X


  • Subject: Re: adding/removing DNS servers in Mac OS X
  • From: Josh Graessley <email@hidden>
  • Date: Thu, 14 Mar 2002 10:25:40 -0800

On 3/14/02 8:51 AM, "Wade Williams" <email@hidden> wrote:

>> I suppose that I could have code that added the new name servers to
>> "/etc/resolve.conf" and then remove them when the connection goes down,
>> but I'm not sure that that's the correct way to do things in Mac OS X
>> and/or Darwin. I think you're supposed to talk to NetInfo, or possibly
>> the System Configuration Framework.
>
> Some VPN clients I've seen do exactly that, and that's the only solution I
> know of that would work on Darwin.

I don't think this will work on Darwin. lookupd reads its configuration out
of netinfo or the system configuration framework. resolve.conf is
overwritten as the result of changes to the data in one of those locations.
The result is that any change in the real source of the configuration
results in resolve.conf getting overwritten. I think lookupd never reads
resolve.conf, resolve.conf is just written for tools like nslookup that read
the file to get the current configuration.

If someone knows more, please correct me where I'm wrong.

Thanks,
-josh
_______________________________________________
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: adding/removing DNS servers in Mac OS X
      • From: Allan Nathanson <email@hidden>
References: 
 >RE: adding/removing DNS servers in Mac OS X (From: "Wade Williams" <email@hidden>)

  • Prev by Date: Re: Modem Port
  • Next by Date: Re: Network Check
  • Previous by thread: RE: adding/removing DNS servers in Mac OS X
  • Next by thread: Re: adding/removing DNS servers in Mac OS X
  • Index(es):
    • Date
    • Thread