Computer Name changes when waking from sleep

Hi,


I'm running OS X Lion Server on a Mac Mini 2ghz Core 2 Duo and every time it wakes from sleep I get a message saying "There is already a computer on the network named MacServer, renaming to MacServer (2)".


It only happens when waking from sleep. If I reboot or use the mini for hours without sleeping it's fine, but once it's gone to sleep it renames on wake. When it sleeps overnight it's named MacServer (5) by the morning, as it wakes up every two hours or so to re-register itself on the network and each time it renames itself.


I don't have any other compters on the network with the same name. The only other computer is a MBP and has a completly different name.


Here's my setup;


  • My Mac Mini is wired via ethernet to a Time Capsule. AirPort is turned off (I've tried on and off).
  • My Mac Mini has a static IP address (x.x.x.40) with DHCP for everything else (DNS, etc.)
  • The Time Capsule is wired to an ADSL router via ethernet.
  • The ADSL router manages DHCP and NAT, with IP pool x.x.x.2 through x.x.x.30.
  • DHCP and NAT are turned off on the Time Capsule (bridged mode).
  • Wireless is turned off on the ADSL router.
  • Time Capsule is handling wireless.


I've tried resetting the ADSL router. I've tried resetting the Time Capsule (to factory defaults).


The problem seems to be with mDNSResponder, as the log seems to suggest that it is this daemon that thinks there's a duplicate computer name. I've even looked at the source code for mDNSResponder and the last mod-log entry suggests that a fix was put in for this issue in 2009. It doesn't look like it's fixed it, though.


I've tried doing a fresh install of OS Server several times now and, after the last install, it started happening before I got a chance to restore from a Time Machine backup. i.e. on a completly fresh install and assigning a completely new computer name.


Can anyone help me on this issue? It's driving me insane!

Mac mini, Mac OS X (10.7.3), 2ghz Core 2 Duo, 8Gb Ram, 500Gb HDD

Posted on Apr 11, 2012 8:56 AM

Reply
34 replies

Apr 13, 2012 1:51 AM in response to SwampFoetus

I switched the server's WI-FI off and connected the ethernet cable to the ADSL router instead of the Time Capsule and, after several reboots, sleeps and wakes, there was no change to the server name. The Time Capsule was still switched on, connected to the ADSL router via ethernet, and available on the network, however the server rename issue went away.


I then took the ethernet cable out of the ADSL router, plugged it back into the Time Capssule, put it to sleep, woke it up, and guess what? That right; 'The name of your computer "safserver" is already...renamed to "safserver (2)"'


So, it looks like it's the Time Capsule. I'm going to downgrade the firmware from 7.6.1 to 7.6.0 to see if the last update is responsible. If this doesn't cure it, I'll try older firmwares and, if none of them work it's time for a Genius appointment.


(I khow another obvious question lurks: "why not leave it plugged into the ADSL router?" Answer: "ADSL router doesn't supply Gigabit ethernet.")

Apr 15, 2012 8:55 AM in response to SwampFoetus

Sorry that did not help. Interesting.


My understanding of Bonjour is that Airport/Time Capsule assumes a sleeping machine's identity. Wakes the machine when there is a remote service request.


I bet you are right that it's a bug in your TC. It may be impersonating your Mini when its sleeping. When the Mini wakes up it sees its impersonator. Thinks it has a twin.


Apple may consider this a feature. :-) Good luck.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Computer Name changes when waking from sleep

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.