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

Everytime I change the Hostname of my mac it starts to work but doesn't forget the old Hostname. For example:

  • hostname:
  • ping - it points to my computer
  • so, I change hostname to example.local
  • ping - it still points to my computer

What is wrong?

I've tried to flush DNS, change using command changeip, use the for OS X Lion, etc.


share|improve this question
Classic culprits are /etc/hosts and your DHCP server. Worth double-checking those. –  ckhan Jan 18 '13 at 6:20
are you pinging from your mac to yourself? or from a different computer? –  omercnet Jan 18 '13 at 18:18

1 Answer 1

up vote 0 down vote accepted

Under System Preferences > Network > Advanced > DNS, DNS Servers were set to Strangely it was the problem.

I solved this just removing it clicking on - at the bottom of the list. Automatically it set to the right DNS Server.

share|improve this answer

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.