On OS X Leopard,
scutil gives me
$ scutil --dns DNS configuration resolver #1 nameserver : 192.168.1.1 nameserver : 192.168.2.1 order : 200000 resolver #2 domain : local options : mdns timeout : 2 order : 300000 ...
Now, how do I remove the first "resolver #1" and replace with a DNS server of my choosing?
Context: A VPN client sets this bogus DNS entry on connection, replacing my working DNS settings. I haven't been able to figure out how to stop it from doing so (see here), so now I'm trying to remove this unwanted effect ex-post, after I connect. A command line script to do this would be perfect.
sudo scutil as per instructions here, but no love --
scutil --dns still reports the settings unchanged, and DNS resolution still doesn't work. Modifying
/etc/resolv.conf has no effect on OS X.