Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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: example.com
  • ping example.com - it points to my computer
  • so, I change hostname to example.local
  • ping example.com - it still points to my computer

What is wrong?

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

Thanks.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .