scutil

This post covers OS X Bonjour naming guidelines including overview of tools for retrieving and setting the Bonjour Name on OS X, allowed characters, maximum length, and issues with using tools like scutil, systemsetup, and network setup with setting name....