Created
December 24, 2014 21:29
-
-
Save benesch/76393d012a52c0f8eac4 to your computer and use it in GitHub Desktop.
OS X VPN Diagnostics
This file contains 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
#!/usr/bin/env bash | |
scutil --nc list | |
IFS=$'\n' interfaces=($(scutil --nc list | tail -n+2 | sed -E 's/.*"([^"]+)".*/\1/')) | |
for interface in "${interfaces[@]}" | |
do | |
scutil --nc show "$interface" | |
echo "Search domains" | |
networksetup -getsearchdomains "128.103.9.252" | |
echo "DNS servers" | |
networksetup -getdnsservers "128.103.9.252" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment