Link your mastodon to your domain

Do you want to have a nice @yourmastodon@yourdomain?

The solution is webfinger

Create a webfinger file like the following

{
  "subject": "acct:alberto@hachyderm.io",
  "aliases": [
    "https://hachyderm.io/@alberto",
    "https://hachyderm.io/users/alberto"
  ],
  "links": [
    {
      "rel": "http://webfinger.net/rel/profile-page",
      "type": "text/html",
      "href": "https://hachyderm.io/@alberto"
    },
    {
      "rel": "self",
      "type": "application/activity+json",
      "href": "https://hachyderm.io/users/alberto"
    }
  ]
}

Replace alberto with yourmaston and hachyderm.io with your Mastodon server.

Upload the file to yourdomain/.well-known/webfinger.

Mastodon you will be able to resolve @yourmastodon@yourdomain.

For example @alberto@rossotto.net points to @alberto@hachyderm.io.