©2015 - 2022 Chad’s Technoworks. Disclaimer and Terms of Use

Chad’s TechnoWorks My Journal On Technology

Information Technology

How To Change The Hostname In Mac OS X

This is a sample procedure I did when renaming the hostname of my Mac computer.



VERIFY CURRENT HOSTNAME SETTINGS


Chads-MBP:~ chad$ hostname

Chads-MBP

Chads-MBP:~ chad$ sudo scutil --get ComputerName

Chad’s MacBook Pro

Chads-MBP:~ chad$ sudo scutil --get LocalHostName

Chads-MacBook-Pro

Chads-MBP:~ chad$ sudo scutil --get HostName

HostName: not set

Chads-MBP:~ chad$



TO CHANGE HOSTNAMES


Chads-MBP:~ chad$ sudo scutil --set HostName "CTW-MBP15"

Chads-MBP:~ chad$ sudo scutil --set ComputerName "Chad's Technoworks Macbook Pro"

Chads-MBP:~ chad$ sudo scutil --set LocalHostName "CTW-MBP15-local"

Chads-MBP:~ chad$



VERIFY CHANGES


Chads-MBP:~ chad$ sudo scutil --get HostName

CTW-MBP15

Chads-MBP:~ chad$ sudo scutil --get ComputerName

Chad's Technoworks Macbook Pro

Chads-MBP:~ chad$ sudo scutil --get LocalHostName

CTW-MBP15-local

Chads-MBP:~ chad$



Then, Reboot the Mac Computer