Don't require the kerberos realm, generate it

- Add function to get dc hostname
- generate the kerberos realm