defaults domains | tr ',' '\n' | nl defaults domains | tr ',' '\n' | grep -i network defaults find network | egrep '^Found' defaults find whois | egrep '^Found' defaults find server | egrep '^Found' defaults read com.apple.NetworkUtility defaults read ~/Library/Preferences/com.apple.NetworkUtility NUWhoisSelectedServer defaults read com.apple.NetworkUtility NUWhoisServers | awk -F '"' '/"/{print $2}' | nl defaults read com.apple.NetworkUtility NUWhoisServers | awk -F '"' '/"/{print $2}' | xargs -I '{}' \ bash -c 'ipaddr="$(/usr/bin/dig +short {})"; printf "%s\n" "${ipaddr//[[:cntrl:]]/, }"' defaults read com.apple.NetworkUtility NUWhoisServers | awk -F '"' '/"/{print $2}' | xargs -I '{}' \ bash -c 'ipaddr="$(/usr/bin/dig +short {})"; printf "%s -- %s\n" "{}" "${ipaddr//[[:cntrl:]]/, }"'
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
List whois servers on Mac OS X (See related posts)
You need to create an account or log in to post comments to this site.
Related Posts
» Using PlistBuddy to customiz... in shell osx mac launchd bash unix defaults launchctl plistbuddy syslogd plist
» List manual pages and system... in shell osx mac bash cmd unix commands list man manpages
» List manual pages and system... in awk shell osx mac bash cmd unix commands list man manpages
» Disable audible bell in Term... in shell osx mac bash unix defaults audible disable bell
» List the names & version num... in version shell osx mac bash unix sed list application mdfind lsregister number program mdls
» Creating login & logout scri... in shell osx mac bash unix login defaults user account logout hook
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails