1
0
mirror of https://github.com/playit-cloud/support-docs.git synced 2025-10-13 22:04:54 +00:00
Files
support-docs/content/external-domain-porkbun.md
2025-08-30 23:38:01 +03:00

87 lines
3.0 KiB
Markdown

+++
title = "Add an external domain with Porkbun"
tags = ["external-domain"]
+++
This guide assumes you have [playit premium](https://playit.gg/account/billing/shop/premium) and have purchased a domain name on [https://porkbun.com](porkbun.com). For other Domain Registars visit {{< link "add-external-domain" >}}.
* [Adding a second level domain (like example.com)](#adding-a-second-level-domain-to-playitgg-like-examplecom)
* [Adding a sub domain (like sub.example.com)](#adding-a-sub-domain-to-playitgg-like-subexamplecom)
# Adding a second level domain to playit.gg (like example.com)
In this guide I will be adding the domain `olumpu.com` to playit.gg, your domain will be different.
## 1. Visit your domain's management page
Visit Porkbun's [domains dashboard](https://porkbun.com/account/domains)
![manage domain]({{< static "post-img/porkbun-manage-domain.png" >}})
## 2. DNS under the Nameservers section
Find the button titled **NS** and press it.
## 3. Enter playit's DNS nameservers
On the provided lines, add the following name servers
```
ns1.playit-dns.com
ns2.playit-dns.com
```
and press the blue Submit button to save your changes.
![edit nameservers]({{< static "post-img/porkbun-edit-nameservers.png" >}})
## 4. Add your external domain to playit.gg
Visit [https://playit.gg/account/settings/domains/add-external](https://playit.gg/account/settings/domains/add-external) to add your external domain.
Make sure the domain name you enter matches the domain name that you updated on Porkbun. In this example it is `olumpu.com`. For you it will be different.
![playit add external domain]({{< static "post-img/playit-add-external-domain.png" >}})
You're done! You can now assign your domain to your tunnel.
![playit domain added]({{< static "post-img/playit-domain-added.png" >}})
---
# Adding a sub domain to playit.gg (like sub.example.com)
Instead of adding our entire `olumpu.com` domain to playit.gg, we will instead the sub domain `playit.olumpu.com`.
## 1. Visit your domain's management page
Visit Porkbun's [domains dashboard](https://porkbun.com/account/domains) and press on the "dns" button
![manage domain]({{< static "post-img/porkbun-manage-domain.png" >}})
## 2. Add a new record
* For **Type**, select: `NS`.
* For **Host**, enter the sub domain you want. Here we'll add `"playit"` for `"playit.olumpu.com"`. This can be whatever you want.
* For **Answer/Value**, enter `ns1.playit-dns.com`.
* For **TTL**, leave it as the default
Then press the Add button to save the record.
![Porkbun add ns record]({{< static "post-img/porkbun-add-ns-record.png" >}})
## 4. Add your external sub domain to playit.gg
Visit [https://playit.gg/account/settings/domains/add-external](https://playit.gg/account/settings/domains/add-external) to add your external domain.
Make sure you enter your sub domain. In our case this will be `playit.olumpu.com`.
![playit add sub domain]({{< static "post-img/playit-add-sub-domain.png" >}})
After adding your domain, you should be all set.