Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My Mac name on networks have changed! I don't know how this happened, I just want to change it back. The name used to be something like 'tyilos-macbook', but now it's called 'acer-6bfc9f1844'.

Screenshots: enter image description here enter image description here

share|improve this question
up vote 4 down vote accepted

As I understand it, terminals will show your hostname and it will only be the same as your local computer name when it has not be given a specific hostname and it can not find an answer from both the DHCP Server or by using a reverse lookup against your DNS server.

So, it would be best to start looking at both your dhcp server and your dns server to see if either(or both) has an stale entry against your ip address.

Alternatively, you can override your hostname by setting it in your /etc/hostconfig by adding a line like


To edit the file, you can use SUDO pico /etc/hostconfig

share|improve this answer
/etc/hostconfig is Linux-specific (distro-specific, even). Mac OS X uses sudo scutil --set HostName tyilos-macbook. – grawity Jun 11 '11 at 15:43
@grawity Interesting. Both methods seem to work (on my IMac at least), but your method is much better because it takes effect straight away (unlike my method, where you need to restart the computer) – sgmoore Jun 11 '11 at 16:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.