Can I use the same domain name for Lemmy and Mastodon?

deafboy@lemmy.world to Fediverse@lemmy.world – 21 points –

I'd like to self-host Lemmy or kbin and mastodon. I know I could use different subdomain for each, but I'd much rather keep it short. Something tells me, however, that other instances might not be happy about it.

Is it doable?

11

Could just do like I do and make it lemmy.whatever.tld and mastodon.whatever.tld

This is more or less what my instance blahaj.zone does. blahaj.zone is calckey and lemmy.blahaj.zone is lemmy.

yes you can use the same domain, but you may need different subdomains for everything to work happily.

How is that going to even work, technically?

I think you should try it out just to see what happens. Worst case it doesn’t work, and if it does work there’s a good chance you’ll uncover some bugs that need fixing.

I'd prefer something like SRV dns records, but that's not an option here.

By no means an expert but how do you want to set it up? Different subdomains or folders?

I think subdomains are actual FQDN’s and will not cause issues. Folders might be an interesting experiment.

pretty sure federation protocol is looking for <NAME>:<PORT>

i haven't seen instances use a sub-directory

Yes, but at least one of the services must be using a subdomain.