Created
August 16, 2010 18:50
-
-
Save jcsalterego/527516 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # Verbose adding of $DOMAIN to searches | |
| # | |
| # Ref: http://www.afp548.com/article.php?story=20050703052052393 | |
| DOMAIN='example.org'; | |
| DNS='State:/Network/Global/DNS'; | |
| echo " | |
| get $DNS | |
| d.show | |
| d.add SupplementalMatchDomains * $DOMAIN | |
| d.show | |
| set $DNS | |
| " | scutil; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This doesn't really work as you have to loop through
State:/Network/Service/[^/]+/DNSand set SupplementalMatchDomains there, but it's a start.