scutil --set HostName name-of-host to add the fqdn and fix the error