Federation - DNS

I’m trying to set up a federation test using DNS.
Can one set up federation between two rocketchat servers on the same domain

If yes what would the SRV and TXT records look like?