Categories: How-ToMac

Computer name changing constantly Yosemite

Computer name changing constantly Yosemite

If you have ever wondered why Computer name changing constantly Yosemite i give you some short explantation to prevent MacOS X doing this.

The behavior is controlled by new discoveryd which replaces mDNSResponder on Yosemite and i found out that there is a switch called no-namechange which isn’t even documented on the internal man page of the discoveryd command.
To control strings for discoveryd i use the internal MacOS X command called PlistBuddy to enable this feature.

So what we will need to get this switch enabled is, entering following command in your Terminal app:

sudo /usr/libexec/PlistBuddy -c "Add :ProgramArguments: string --no-namechange" /System/Library/LaunchDaemons/com.apple.discoveryd.plist

And restart your Mac or run following command:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist

If you want to undo this for whatever reason just enter:

sudo /usr/libexec/PlistBuddy -c Revert /System/Library/LaunchDaemons/com.apple.discoveryd.plist

And it will revert the previous change to the previous modified plist file.

Cheers!

If you having trouble with waking up Mac on Yosemite every 2 hours, here is a temporary fix for that: Fix yosemite rtc alarm wakeup issue

Jules

Jules is the owner and author of ISPIRE.ME. He's a Linux System Engineer, Tech fanatic and an Open Source fan.

View Comments

Recent Posts

HTTP/2 SSL Offloading with Hitch and Varnish

HTTP/2 SSL Offloading with Hitch and Varnish Since Chrome browsers showing you insecure warning on…

7 years ago

File changed as we read it GlusterFS issue

File changed as we read it GlusterFS issue Recently i had trouble running Backups of…

7 years ago

Running multiple instances of varnish using systemd

Running multiple instances of varnish using systemd If you have not yet found a complete…

7 years ago

HTTP/2 SSL Offloading with Haproxy and Nginx

HTTP/2 SSL Offloading with Haproxy and Nginx After HTTP/2 becoming more an more prominent regarding SSL…

7 years ago

Get Real IP with Haproxy Tomcat Jira Confluence using x-forwarded-for

Get Real IP with Haproxy Tomcat Jira Confluence using x-forwarded-for Everyone knows the Problem. Get…

7 years ago

Review TDS2 How to backtest using tick data with Metatrader 4

Review TDS2 How to backtest using tick data with Metatrader 4 in this Review TDS2…

8 years ago

This website uses cookies.