adding/removing DNS servers in Mac OS X
adding/removing DNS servers in Mac OS X
- Subject: adding/removing DNS servers in Mac OS X
- From: Rob Newberry <email@hidden>
- Date: Thu, 14 Mar 2002 10:28:13 -0500 (EST)
This is sort of a Darwin issue, sort of a Mac OS X issue, so I'm posting
it to a couple of forums (but not cross-posting!).
I'm working on a PPTP client for Mac OS X (you can check it out at
http://homepage.mac.com/robthedude/PiePants.html).
One feature that I've been asked to add is the ability to add DNS servers
that are provided by the PPTP/PPP server when connected, and then remove
them when the connection goes down.
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.
I'd prefer a solution that works on Darwin, so if that excludes the SCF,
no biggie. What I'd really like to know is, what is the correct mechanism
for adding/removing DNS servers, and where can I find out how to use those
APIs?
Thanks a ton!
Rob
_______________________________________________
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.