RE: adding/removing DNS servers in Mac OS X
RE: adding/removing DNS servers in Mac OS X
- Subject: RE: adding/removing DNS servers in Mac OS X
- From: "Wade Williams" <email@hidden>
- Date: Thu, 14 Mar 2002 10:51:33 -0600
>
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.
One important thing though: when you change resolv.conf, please make sure
to create a resolv.conf.backup or similar. Nothing is more frustrating that
having your VPN client crash and leave your resolv.conf pointing to the
wrong name servers, with no record of what your original name servers were.
If the backup file is there, I can just replace resolv.conf with it.
Wade
_______________________________________________
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.