Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

HOSTNAME=xxxx

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

share|improve this answer
5  
/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

 
discard

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.