Skip to content

Commit

Permalink
updated network.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Apr 12, 2024
1 parent e4a39bd commit 38798a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .bash.d/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,10 @@ if ! is_mac; then
return
fi

dnsservers(){
scutil --dns | grep 'nameserver\[[0-9]*\]' | sort -u
}

flushdns(){
dscacheutil -flushcache
sudo killall -HUP mDNSResponder
Expand Down

0 comments on commit 38798a0

Please sign in to comment.