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

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
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.