By using System Preference -> Sharing we can only change computer local name. But by using terminal we have more possibilities.