S2S using wrong domain name

Hi,

Last week i replaced my jabberd2 server with an OpenFire server and although the most functions are working. The server2server does not work.

My users are user@jabber.domain.com and the account on the other server is user@jabber.otherdomain.net. But when a user adds a friends to the contact list i get the following error in the logs

2014.08.19 13:12:02 org.jivesoftware.openfire.session.LocalOutgoingServerSession - Error trying to connect to remote server: otherdomain.net (DNS lookup: otherdomain.net:5269): java.net.ConnectException: Connection timed out

But it should look for jabber.otherdomain.net and not otherdomain.net. I didn`t not had this issue on jabberd2