Issue with Federation while SRV and TXT records seems OK

Description

I’m trying to configure Federation on my RC instance.
SRV and TXT records seems OK but not for RC.

Server Setup Information

  • Version of Rocket.Chat Server: 3.12.1
  • Operating System: Debian 10
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: v12.18.4
  • MongoDB Version: 4.0.23 / mmapv1 (oplog Enabled)
  • Proxy: nginx
  • Firewalls involved: yes

Any additional Information

I can get SRV and TXT records using dig inside the docker container :

root@b2dc4ae10701:/app/bundle# dig +short srv _rocketchat._https.chat.myprivate.domain.com
0 1 1 chat.myprivate.domain.com.
root@b2dc4ae10701:/app/bundle# dig +short txt rocketchat-public-key.chat.myprivate.domain.com
“-----BEGIN PUBLIC KEY-----blabla” “blabla” “blabla” “blabla-----END PUBLIC KEY-----”

But RC cannot find my TXT record according to the logs :

rocketchat_1 | Federation ➔ client.debug dispatchEvents => domains=chat.myprivate.domain.com events={
rocketchat_1 | “type”: “ping”
rocketchat_1 | }
rocketchat_1 | Federation ➔ dns.debug search: peerDomain=chat.myprivate.domain.com
rocketchat_1 | Federation ➔ dns.debug search: peerDomain=chat.myprivate.domain.com srv=_rocketchat._https.chat.myprivate.domain.com
rocketchat_1 | Federation ➔ dns.debug search: peerDomain=chat.myprivate.domain.com txt=rocketchat-public-key.chat.myprivate.domain.com
rocketchat_1 | Federation ➔ dns.debug search: could not find TXT entry for peerDomain=chat.myprivate.domain.com - SRV entry found
rocketchat_1 | Federation ➔ dns.debug searchHub: peerDomain=chat.myprivate.domain.com
rocketchat_1 | Federation ➔ http.debug [GET] https://hub.rocket.chat/api/v1/peers?search=chat.myprivate.domain.com

By the way, requesting hub.rocket.chat while HUB is disabled is something that should be avoid IMO.

Do you think it might be related to the fact that my public key is splitted (we have to do that as we are using bind9 as DNS server) ?