A custom domain is a website address that you can purchase from a domain registrar (such as GoDaddy, Namecheap, Google Domains, and many others) and then connect to your Medium profile or publication. Once you connect your custom domain, the domain will replace the medium.com URL of your profile page or publication with your own domain URL.
In this guide, you can learn how to set up a custom domain for your Medium profile or publication.
Before you begin
Requirements
In order to set up a custom domain, you must:
- Have an active Medium membership subscription
Learn more about becoming a Medium member. - Own the domain name you want to connect to your profile or publication
You can purchase a domain at any domain provider available. - No proxies allowed
Proxies must be disabled for your custom domain setup to work on Medium.
Supported domain schemes
You can only connect a top-level domain name like yourdomain.com or a subdomain like blog.yourdomain.com to your profile page or publication.
Please note that you cannot connect a custom URL that's a subdirectory (folder), for example yourdomain.com/blog.
Step 1: Set up your custom domain for your profile or publication
- To begin the process of setting up a custom domain for your profile page, on your homepage, click on your profile picture and click Settings from the menu.
To set up a custom domain on your Medium publication, go to your publication homepage, click on your publication avatar in the top-right corner, and click Settings. - In the Custom domain section, click Get started.
- On the next page, enter your domain name into the field (like "yourdomain.com") and move on to Step 2 below.
Step 2: Update A Records with your domain name provider
Now you need to update A records for your custom domain, and you can do that on your domain provider's website.
Host name | Record | Points to / IP address |
---|---|---|
@ | A | 162.159.153.4 |
@ | A | 162.159.152.4 |
If you can only create one record, match the first one in the list.
Below you can find instructions on how to add your A records for popular registrars.
- Log in to your GoDaddy account.
- Select the owned domain you wish to link to Medium to access the Domain Settings page.
- Under Additional Settings, select Manage DNS.
- Select Add under the records table.
- Under Type, select A.
- Enter the details for your A record:
- Under Host, type in "@".
- Under Points to, paste in "162.159.153.4".
- Click Save.
- Follow the same steps to add a new A record pointing to "162.159.152.4".
More information can be found on Godaddy's support page.
- Sign in to your Namecheap account.
- Select Domain List from the sidebar and click Manage next to the owned domain you want to link to Medium.
- Click the Advanced DNS tab at the top of the page.
- In the Host records section, click the Add New Record button.
- In Type, select A record.
- Enter the details for your A record:
- Under Host, type in "@".
- Under Points to, paste in "162.159.153.4".
- Click Save changes.
- Follow the same steps to add a new A record pointing to "162.159.152.4".
More information can be found on Namecheap's support page.
- Sign in to Google Domains.
- Choose the owned domain you wish to link to Medium.
- Open the menu and click the DNS icon.
- Scroll to the Custom resource records section.
- In the first field, enter "@".
- In the dropdown menu, select A.
- In the TTL field, enter "1H".
- In the data field, paste in "162.159.153.4".
- Click Add.
- Follow the same steps to add a new A record pointing to "162.159.152.4".
More information can be found on Google Domains's support page.
Step 3: Finish connecting your domain
- When you finish adding A records for your custom domain, return to Medium and click Continue.
- On the next screen, click Done. Your custom domain is being verified and once finished, it will automatically start pointing to your profile or publication. This process can take up to three days.
Troubleshooting
Setting up a domain with CAA records
If you're having problems with your custom domain setup and you have CAA records set on your domain, you will either need to add the following records as well (or remove CAA entirely):
- example.com. IN CAA 0 issue "pki.goog"
- example.com. IN CAA 0 issue "letsencrypt.org"
AAAA IPv6 records
These are the AAAA IPv6 records for your Medium custom domain:
- 2606:4700:7::a29f:9804
- 2606:4700:7::a29f:9904
Common questions
You can only connect one custom domain per profile page or publication. There's no way to set up an additional custom domain for specific pages within your profile page or publication.
Medium does not support Google Analytics, and there's no way to add any kind of code to your page.
No, your old URLs will start automatically redirecting to your custom domain URL once it's set up.
When you update your URL, Google and other search engines will also need to update your new profile page and post URLs in their search results. This process requires no action on your part, and might take up to a few weeks, and mostly depends on how popular the URLs are (for example, someone with more published stories, and thus more links, might get updated faster). Please note that this process is beyond Medium's control.
Medium does not support Google AMP, Facebook IA, or any other such service for your custom domain.