search
HomeComputer TutorialsComputer Knowledge3 tips to easily customize your Mac computer name, host name and Bonjour name

3 招教你轻松自定义 Mac 计算机名、主机名和 Bonjour 名称

Many Mac users tend to keep the default name of their device and may never consider changing it. Many people choose to stick with the name from the initial setup, such as "Johnny's MacBook Air" or simply "iMac."

Learning how to change the name of a Mac is a very practical skill, especially when you have multiple devices, as it can help you quickly distinguish and manage them.

Next, we will teach you step by step how to change the computer name, host name and Bonjour name (local host name) in macOS system.

Why change the name of your Mac?

Modifying the name of your Mac can not only show your personality, but also help improve your user experience:

  • Personalize your Mac: The default name may not be to your taste. Changing it to a name you like can make your Mac more personalized.
  • Optimize the AirDrop experience: AirDrop is a convenient file transfer function in macOS, but if the Mac name is not intuitive enough, others may be confused when sending or receiving files. A clear and concise name makes device identification simple.
  • Simplify Bluetooth connections: If your Mac name is too complex, it may be difficult to distinguish Bluetooth devices when connected. Simple and clear names facilitate quick pairing.
  • Enhanced system interaction experience: In the file system and terminal commands, an easily identifiable name can make your operations more convenient.
  • Improve network management efficiency: On a home network, an easily identifiable Mac name helps with device management and troubleshooting.

The difference between computer name, host name and Bonjour name

Before changing the name of your Mac, you need to understand the basic concepts of computer name, host name, and Bonjour name (local host name) in order to manage your device more effectively.

Name type effect Typical format
Computer name The user-identifiable name is equivalent to the "identity" of the device, making it easier for you to identify your Mac device. User-defined, such as "John Doe's MacBook Pro".
CPU name The name used to identify the device on the network, used for network communication, such as SSH connections. Usually corresponds to the computer name, but is limited to letters, numbers, hyphens, and periods, and is not case-sensitive.
Bonjour name (local host name) The name used to identify the device on the local network so that other computers can easily find and connect to the Mac. Computer name .local suffix, not case sensitive.

For example, if your Mac computer name is Billyfus-MacBook-Pro, then the local host name (Bonjour name) is Billyfus-MacBook-Pro.local, which is convenient for local Identify and connect within the network.

Step 1: Change the Mac computer name

Method 1: Through "System Settings"

Applicable to macOS Ventura and above.

1Click the Apple menu  icon in the upper left corner of the screen and select "System Settings".

2Click "General" > "About This Mac".

3 Click on the current computer name and enter the new name you want.

3 招教你轻松自定义 Mac 计算机名、主机名和 Bonjour 名称Change computer name

4 Press Enter or close the window to save changes.

5 Restart your Mac to apply the changes.

Method 2: Through the "Terminal" command line

Applies to all macOS versions.

1 Double-click to open "Terminal" in "Applications" > "Utilities".

2Execute the following command to change the Mac computer name:

## 将 NewComputerName 替换为新的计算机名
scutil --set ComputerName "NewComputerName"

3 Verify administrator rights to confirm changes.

4 Restart your Mac for the changes to take effect.

5Execute the following command in "Terminal" to verify whether the change is successful:

scutil --get ComputerName

3 招教你轻松自定义 Mac 计算机名、主机名和 Bonjour 名称Use the scutil command to change the computer name

After the name change is completed, it may take some time for other devices in the network to recognize the new name, and the Bonjour name will also be automatically updated.

Step 2: Change the Mac host name

Applies to all macOS versions.

On Mac, you can change the host name through the "Terminal" command. The steps are as follows:

1 Double-click to open "Terminal" in "Applications" > "Utilities".

2Execute the following command to change the Mac host name:

## 将 NewHostName 替换为新的计算机名
scutil --set HostName "NewHostname"

3 Verify administrator rights to confirm changes.

4 After restarting your Mac, execute the following command to confirm whether the host name has been changed successfully:

scutil --get HostName

3 招教你轻松自定义 Mac 计算机名、主机名和 Bonjour 名称Use the scutil command to change the host name

Host names are not case-sensitive, and changing the host name will not affect the Bonjour name (local host name).

Step 3: Change Bonjour name

You can change the Bonjour name (local host name) of your Mac device through the following two methods:

Method 1: Through "System Settings"

Applicable to macOS Ventura and above.

1Click the Apple menu  icon in the upper left corner of the screen and select "System Settings".

2Click "General" > "Sharing".

3 Next to "Local Host Name", click "Edit", enter the new name, and click "OK".

3 招教你轻松自定义 Mac 计算机名、主机名和 Bonjour 名称Change the local host name through "System Settings"

4 Restart your Mac for the changes to take effect.

Method 2: Through the "Terminal" command line

Applies to all macOS versions.

1 Double-click to open "Terminal" in "Applications" > "Utilities".

2Execute the following command to change the Mac local host name:

## 将 NewLocalHostName 替换为新的 Bonjour 名称
scutil --set LocalHostName "NewLocalHostName"

3 Restart your Mac to confirm the changes.

4Execute the following command in "Terminal" to check whether the new local host name is set successfully:

scutil --get LocalHostName

3 招教你轻松自定义 Mac 计算机名、主机名和 Bonjour 名称通过 scutil 命令更改本地主机名

本地主机名不区分大小写,更改之后,主机名将保持不变。

通过阅读本文,你已经学习了如何更改 Mac 设备的计算机名称、主机名和 Bonjour 名称。无论是为了个性化你的设备,还是为了提升使用体验,更改名称都是一项非常实用的操作。

希望本文提供的详细步骤和注意事项能够帮助你轻松完成修改,并获得更加便捷的 Mac 使用体验。

The above is the detailed content of 3 tips to easily customize your Mac computer name, host name and Bonjour name. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:每日运维. If there is any infringement, please contact admin@php.cn delete
Fix the 'This Build of Vanguard Is out of Compliance” Error - MiniToolFix the 'This Build of Vanguard Is out of Compliance” Error - MiniToolApr 15, 2025 am 12:50 AM

You may encounter the “this build of Vanguard is out of compliance” issue when attempting to launch Valorant on Windows 11. Why does the error message appear? How to get rid of the error message? This post from php.cn gives details.

How to Download RTX 4050 Drivers on Windows 10/11?How to Download RTX 4050 Drivers on Windows 10/11?Apr 15, 2025 am 12:49 AM

NVIDIA GeForce RTX 40 series GPU might not be a new thing to you. Compared with other top graphics cards, many of you may pay more attention to mid-end mainstream RTX 4050 for its acceptable price. Read through this guide from php.cn Website to get d

KB2267602 Fails to Install: Here Is How to Fix It!KB2267602 Fails to Install: Here Is How to Fix It!Apr 15, 2025 am 12:48 AM

KB2267602 is a protection or definition update for Windows Defender designed to fix vulnerabilities and threats in Windows. Some users reported that they were unable to install KB2267602. This post from php.cn introduces how to fix the “KB2267602 fai

Two Ways to Reinstall Pre-installed Software in Windows 11Two Ways to Reinstall Pre-installed Software in Windows 11Apr 15, 2025 am 12:47 AM

Do you know how to reinstall pre-installed software in Windows 11 if you need to do this? In this post, we will introduce two easy ways. In addition, if you want to recover files on your Windows computer, you can try php.cn Power Data Recovery.

Fixed: Desktop and File Folders Do Not Refresh AutomaticallyFixed: Desktop and File Folders Do Not Refresh AutomaticallyApr 15, 2025 am 12:46 AM

Windows Desktop or File Explorer or folder will automatically refresh itself when you make some changes to it. However, some Windows 11/10 users report that they encounter the “desktop and file folders do not refresh automatically” issue. This post f

Fixed: There Is a Problem with This Windows Installer PackageFixed: There Is a Problem with This Windows Installer PackageApr 15, 2025 am 12:45 AM

When you try to install a program on Windows 11/10, you may fail to install it and receive an error message - there is a problem with this Windows installer package. This post from php.cn helps you to fix it.

Can Antivirus Scan Encrypted Files? Security vs. PrivacyCan Antivirus Scan Encrypted Files? Security vs. PrivacyApr 15, 2025 am 12:44 AM

When you run antivirus software on your device, you likely expect it to scan all files and folders for viruses. However, one question arises: can antivirus scan encrypted files? This inquiry delves into the realm of security versus privacy. php.cn So

Free Download or Update HDMI Video Drivers on a Windows PCFree Download or Update HDMI Video Drivers on a Windows PCApr 15, 2025 am 12:43 AM

How to download HDMI video drivers on Windows? How to update HDMI drivers to the latest versions. You can find the ways here. In addition, you can try php.cn Power Data Recovery to get your lost and deleted files back if necessary.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.