# Hostname - macOS

{% hint style="info" %}
Replace **--set** with **--get** in any command to show current system setting.
{% endhint %}

## Set HostName&#x20;

Fully Qualified HostName

```
sudo scutil --set HostName <new host name>
```

## Set LocalHostName&#x20;

Bonjour HostName, usable on Local Network

```
sudo scutil --set LocalHostName <new host name>
```

## Change Computer Name

This is the user-friendly computer name you see in Finder.

```
sudo scutil --set ComputerName <new name>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://strangebutohwell.gitbook.io/knowledge/macos/hostname-macos.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
