How do I change the computer's ID on my Mac?

How do I change the computer id on my mac?

  • I bought a late 2009 Mac Mini recently, updated it to Lion, and was rather frustrated to find that even after changing the Bonjour, DNS, and local network name, the terminal prompt (and "Computer ID" in Directory Utility) still shows joshuas-iphone. There has never been a Joshua nor an iPhone that has ever connected to my network, so I've ruled that out. Any help would be HIGHLY appreciated.

  • Answer:

    The Terminal app does a DNS look up to get the hostname to display at the prompt. It is essentially meaningless. Your hostname is what you set in the Sharing Preferences, regardless of what you see in Terminal. The DNS record is wrong and is returning what it thinks is the hostname for the IP of your Mac. If it bothers your that much you should check your DNS config on your home router or reset it to flush the DNS records. Alternatively you could change the login script to get the hostname from another source, my favorite is with "networksetup -getcomputername". This pulls it from the systems configuration, not DNS.

Matt at Super User Visit the source

Was this solution helpful to you?

Other answers

Open System Preferences and click on Sharing. In the textbox labelled Computer Name: change it to whatever you want.

Midwire

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.