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.

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

1 Answer 1

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

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.