[ Thanks to Falko
Timme for this link. ]
“Set up the hostname
“For our purposes in this guide, we are calling the server’s
hostname “dc1” and the domain “DOMAINNAME”. Note: If you want to
use your fqdn for your Samba domain, wherever you see
,dc=DOMAINNAME below, replace it with ,dc=example,dc=com, assuming
your fqdn is example.com. Also note that “root” will be the samba
administrator username, if you don’t like that, change it as
well.“Related lines are: cn=root and cn: root Within /etc/hosts, add
or replace your line (following the file’s format, assuming
192.168.0.5 is your server’s network-accessible IP):”