Mac Hostname Change

  1. Hostname of your Mac:
    sudo scutil –set HostName <new host name>
  2. Bonjour hostname of your Mac:
    sudo scutil –set LocalHostName <new host name>
  3. Optional: change the computer name
    sudo scutil –set ComputerName <new name>
  4. Flush the DNS cache by typing:
    dscacheutil -flushcache
  5. Restart your Mac.

Screma

davide Written by: