Skip to content

DrMattFaulkner/MacOS-Tips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

MacOS-Tips

Some useful tips I've discovered whilst using MacOS

Change Hostname

sudo scutil --set HostName [hostname]

DNS Resolution

Problem

Can dig a host, but can NOT ping / ssh etc.

Solution

sudo launchctl unload /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
sudo defaults write /Library/Preferences/com.apple.mDNSResponder.plist AlwaysAppendSearchDomains -bool YES
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist

It shouldn't require a reboot, but mine did :/

Long story:

http://apple.stackexchange.com/questions/24018/dns-lookups-fail-with-e-g-ping-but-work-with-host

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published