<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/mastodon-on-your-own-domain-without-hosting-a-server-zirtoryfz" -->

---
title: Mastodon on your own domain without hosting a server
description: A developer explains how to make a Mastodon account discoverable under a personal domain without self-hosting a Mastodon server. The trick is implementing...
canonical: https://daily.dev/posts/mastodon-on-your-own-domain-without-hosting-a-server-zirtoryfz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Mastodon on your own domain without hosting a server | daily.dev
og:description: A developer explains how to make a Mastodon account discoverable under a personal domain without self-hosting a Mastodon server. The trick is implementing...
og:url: https://daily.dev/posts/mastodon-on-your-own-domain-without-hosting-a-server-zirtoryfz
og:image: https://api.daily.dev/og/posts/zirtoryFZ.png
og:image:alt: Mastodon on your own domain without hosting a server
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Mastodon on your own domain without hosting a server

**[Maarten Balliauw](https://daily.dev/sources/maartenballiauw)** · 4 min read · 0 upvotes · 0 comments

## Summary

A developer explains how to make a Mastodon account discoverable under a personal domain without self-hosting a Mastodon server. The trick is implementing WebFinger: copying the JSON response from your Mastodon server's /.well-known/webfinger endpoint to the same path on your own domain, so searches for @you@yourdomain.com resolve to your real account. The caveat is that this acts like a catch-all address unless additional scripting restricts which accounts resolve. The post also links to tools (Twitodon, Fedifinder, Debirdify) for finding Twitter contacts who moved to Mastodon, and includes later edits noting proxy-based setups (e.g. Cloudflare) and a Jekyll implementation example, plus a caveat that the custom alias may only resolve when searching while logged in.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.maartenballiauw.be/posts/2022-11-05-mastodon-own-domain-without-hosting-server>

## Questions this post answers

### How do I make my Mastodon account discoverable under my own domain without self-hosting a server?

Copy the JSON response from your existing Mastodon server's WebFinger endpoint and serve it at /.well-known/webfinger on your own domain. Fetch https://<your-mastodon-server>/.well-known/webfinger?resource=acct:<your-account>@<your-mastodon-server> and host that exact JSON at https://<your-domain>/.well-known/webfinger, so searches for @you@yourdomain resolve to your real account.

_daily.dev surfaces practical fediverse setup tricks like this for developers building their own web presence._

### What is the catch with serving a static WebFinger JSON response on a custom domain for Mastodon discovery?

A static WebFinger response acts like a catch-all email address: any query such as @anything@yourdomain.com will match and resolve to the same account unless additional server-side logic is added to only respond for the specific resource you want discoverable. Without that scripting, every possible username on the domain appears to map to one Mastodon profile.

_Developers wiring up custom Mastodon domains on daily.dev can avoid this catch-all pitfall before shipping._

### What tools help find which Mastodon account a Twitter contact switched to?

Twitodon learns Twitter-to-Mastodon account pairings from users who submit the match themselves, while Fedifinder and Debirdify scan a Twitter account's following list and profile data to detect any Mastodon addresses already listed there. Adding a Mastodon handle to a Twitter bio improves the odds these tools find a match.

_daily.dev readers migrating their social graph between platforms can track tools like these._

## Similar posts on daily.dev

- [A beginner’s guide to Mastodon, the open source Twitter alternative](https://daily.dev/posts/a-beginner-s-guide-to-mastodon-the-open-source-twitter-alternative-8hchm6loj) · TechCrunch · 2 upvotes · 0 comments
- [A Primer on Domain Verification](https://daily.dev/posts/a-primer-on-domain-verification-exhgccgri) · R-bloggers · 0 upvotes · 0 comments
- [My domain got abused on Github Pages — Roland Meertens](https://daily.dev/posts/my-domain-got-abused-on-github-pages-roland-meertens-n4jdpurcu) · Lobsters · 3 upvotes · 0 comments
- [I joined the IndieWeb, here's what I learned](https://daily.dev/posts/i-joined-the-indieweb-here-s-what-i-learned-bbqjck1wp) · Hacker News · 0 upvotes · 0 comments
- [Adding Mastodon Comments](https://daily.dev/posts/adding-mastodon-comments-z2qbt6tmd) · RUBYLAND · 0 upvotes · 0 comments

---

Tags: [#dns](https://daily.dev/tags/dns), [#mastodon](https://daily.dev/tags/mastodon), [#fediverse](https://daily.dev/tags/fediverse), [#activitypub](https://daily.dev/tags/activitypub)

[View this post on daily.dev](https://daily.dev/posts/mastodon-on-your-own-domain-without-hosting-a-server-zirtoryfz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Mastodon on your own domain without hosting a server","url":"https://daily.dev/posts/mastodon-on-your-own-domain-without-hosting-a-server-zirtoryfz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/mastodon-on-your-own-domain-without-hosting-a-server-zirtoryfz"},"datePublished":"2026-10-04T13:04:27.777Z","dateModified":"2026-10-04T13:06:08.969Z","description":"A developer explains how to make a Mastodon account discoverable under a personal domain without self-hosting a Mastodon server. The trick is implementing...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f9c318fd6350255d2b418dacb644b141?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f9c318fd6350255d2b418dacb644b141?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Maarten Balliauw","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Maarten Balliauw","logo":"https://media.daily.dev/image/upload/s--rOTg3VYO--/f_auto,q_auto/v1791119043/logos/maartenballiauw?_a=BAMAMicg0","url":"https://daily.dev/sources/maartenballiauw"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/mastodon-on-your-own-domain-without-hosting-a-server-zirtoryfz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"dns,mastodon,fediverse,activitypub","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Maarten Balliauw","item":"https://daily.dev/sources/maartenballiauw"},{"@type":"ListItem","position":3,"name":"Mastodon on your own domain without hosting a server"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/mastodon-on-your-own-domain-without-hosting-a-server-zirtoryfz#faq","mainEntity":[{"@type":"Question","name":"How do I make my Mastodon account discoverable under my own domain without self-hosting a server?","acceptedAnswer":{"@type":"Answer","text":"Copy the JSON response from your existing Mastodon server's WebFinger endpoint and serve it at /.well-known/webfinger on your own domain. Fetch https://<your-mastodon-server>/.well-known/webfinger?resource=acct:<your-account>@<your-mastodon-server> and host that exact JSON at https://<your-domain>/.well-known/webfinger, so searches for @you@yourdomain resolve to your real account. daily.dev surfaces practical fediverse setup tricks like this for developers building their own web presence."}},{"@type":"Question","name":"What is the catch with serving a static WebFinger JSON response on a custom domain for Mastodon discovery?","acceptedAnswer":{"@type":"Answer","text":"A static WebFinger response acts like a catch-all email address: any query such as @anything@yourdomain.com will match and resolve to the same account unless additional server-side logic is added to only respond for the specific resource you want discoverable. Without that scripting, every possible username on the domain appears to map to one Mastodon profile. Developers wiring up custom Mastodon domains on daily.dev can avoid this catch-all pitfall before shipping."}},{"@type":"Question","name":"What tools help find which Mastodon account a Twitter contact switched to?","acceptedAnswer":{"@type":"Answer","text":"Twitodon learns Twitter-to-Mastodon account pairings from users who submit the match themselves, while Fedifinder and Debirdify scan a Twitter account's following list and profile data to detect any Mastodon addresses already listed there. Adding a Mastodon handle to a Twitter bio improves the odds these tools find a match. daily.dev readers migrating their social graph between platforms can track tools like these."}}]}
```

