Watch this video. This is for the Windows based setup, but basic DNS, networking stuff is the same on other platforms. You don’t need the second part with SSO (probably). You may also skip LDAP integration, if you don’t use that for users. How To: Video on setting up SSO/AD with Openfire