Skip to content

Ability to perform a domain migration or switch #5774

@QuadPiece

Description

@QuadPiece

In the past it's been asked if it's possible to change the domain of an instance, to which the reply has been no, since the fediverse would see users as being located on an entirely new server.

But since that question got asked, mastodon has added an environment variable by the name ALTERNATE_DOMAINS. It seems logical that by changing LOCAL_DOMAIN and leaving the previous domain in ALTERNATE_DOMAINS, one could in theory perform a domain migration. Effectively swapping the domain for all their users without them losing their followers.

However, reality is rarely this simple. If someone were to attempt this, would it work? And if it did, what effects would one expect to see across the fediverse? Would other servers update the entries in their database? Would they see duplicate accounts that post the exact same content?

I don't know how other fediverse participants would handle it, such as GNU Social or Pleroma. But if Mastodon has an ALTERNATE_DOMAINS variable to allow multiple handles, it makes sense that it should also have a system to prevent duplicate domains from getting recognized, same for GNU Social and others.

If it's not currently possible, implementing support for such a migration should be considered as long as it's viable.
If it currently is possible, it should be documented somewhere in tootsuite/documentation


  • I searched or browsed the repo’s other issues to ensure this is not a duplicate. (Possible duplicate of Change instance's domain #1902, but nobody replied when I attempted to get it reopened)
  • This bug happens on a tagged release and not on master (If you're a user, don't worry about this).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions