mac create custom domain name code example Example: adding local domain name mac <command to open up your text editor> /etc/hosts