mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore(osx): add commands to check the dns
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
#!sh
|
||||
|
||||
# Set the host's name.
|
||||
scutil --set 'ComputerName' "$(defaults read '/Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName')"
|
||||
scutil --set 'HostName' "$(defaults read '/Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName')"
|
||||
scutil --set 'LocalHostName' "$(defaults read '/Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName')"
|
||||
|
||||
# Clear the DNS cache.
|
||||
sudo dscacheutil -flushcache; sudo killall -HUP 'mDNSResponder'
|
||||
|
||||
Reference in New Issue
Block a user