# Custom Domain/CNAME at Account & Campaign Level

By setting up your domain through "CNAME or A" records, you can streamline access to your games, making them accessible directly via your chosen domain or subdomain. This can be done at both the account and campaign levels.

1. **Account Level**: When you configure your domain at the account level, all your games become accessible through a unified gateway. This setup enables you to host all games under one main or subdomain, accessible via a structured URL format: "yourdomain.com/GAMEID"
   1. To do this, visit[ My Dashboard](https://play.rhym.io/my-games) and click on "**Account Level Domain**" CTA to host all your games on your main/ subdomain.&#x20;
   2. Follow the prompts after entering your domain and confirm the setup\
      \
      **Example:** If your domain is `example.com`, after setup, accessing `example.com/GAMEID` will directly open the game associated with that ID.\ <br>

      <figure><img src="https://3587652945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxZhxfV8vdm6FFNVP2DZD%2Fuploads%2Fl3v7Ljs4T6WBNWiF5R7m%2FScreenshot%202024-03-10%20at%201.40.23%E2%80%AFPM.png?alt=media&#x26;token=4bd0525f-1d37-444e-a949-f9f7a29f426c" alt=""><figcaption></figcaption></figure>
2. **Campaign Level:** You can also set the domain individually at the specific campaign/game level.&#x20;
   1. To do this, visit[ My Dashboard](https://play.rhym.io/my-games) and click on the "Manage Domain" icon of the game you want to host on your main/subdomain.
   2. Follow the instructions provided to complete the domain setup for that specific campaign\
      \
      **Example:** If your domain is `game.example.com`, after setup, accessing `game.example.com` will directly open the game.<br>

      <figure><img src="https://3587652945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxZhxfV8vdm6FFNVP2DZD%2Fuploads%2FEE88K7Pfv3WOcIARNg6e%2FScreenshot%202024-03-10%20at%201.26.36%E2%80%AFPM.png?alt=media&#x26;token=14772c3a-4bfe-40ed-b92f-bd69952a19bb" alt=""><figcaption></figcaption></figure>

#### **Now, Let's Learn how you can set up the Main/ Subdomain in 3 simple steps!!**

## Root/Main Domain Set Up:

Let’s say you want to host a particular game/campaign on your root domain which is the main and highest level of a domain hierarchy, exemplified by the primary domain name without any prefixes, such as "gaurav.com”

1. Enter the Main/Root domain you want to connect and click on update. For example, in the image below we are connecting “gaurav.com”

<figure><img src="https://3587652945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxZhxfV8vdm6FFNVP2DZD%2Fuploads%2F5tDAcZgmoxIkP0kF9BIn%2FScreenshot%202024-03-10%20at%201.32.20%E2%80%AFPM.png?alt=media&#x26;token=0aa7bc44-69dd-4ab5-929f-81d7ab9fc840" alt="" width="375"><figcaption></figcaption></figure>

2. You will get the "Target" value "43.204.18.197" for a new 'A' record as shown in the image below.&#x20;

<figure><img src="https://3587652945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxZhxfV8vdm6FFNVP2DZD%2Fuploads%2Fqfodoxbu67OAXgC96iXc%2FScreenshot%202024-03-10%20at%201.33.41%E2%80%AFPM.png?alt=media&#x26;token=d20bf0c3-d096-4f6e-809d-1f762a16a049" alt="" width="375"><figcaption></figcaption></figure>

3. Visit your DNS provider settings to add a new ‘A’ record and enter the target value that you were provided in the image above. <br>

   <figure><img src="https://3587652945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxZhxfV8vdm6FFNVP2DZD%2Fuploads%2FNP7w71ORQsux5TOIecFu%2FScreenshot%202024-03-10%20at%201.34.50%E2%80%AFPM.png?alt=media&#x26;token=5f1c66f5-cc8e-4735-bb2c-963ace5dada4" alt=""><figcaption></figcaption></figure>

Once updated, you can visit your main domain and play the game. It's that simple!!

**Example:** Hosting a game on `yourdomain.com` would require adding an 'A' record pointing to the provided IP address, such as 43`.204.18.197`\
\
\&#xNAN;**`*Note: that the activation period depends on your DNS provider and can range from 5 minutes to 24 hours.`**<br>

## Subdomain Set Up:&#x20;

### *Video Tutorial-* [*Link*](https://www.youtube.com/watch?v=cozbahezzTQ)

Let’s say you want to host a particular game/campaign on your subdomain which is a division of a larger domain, formed by adding a prefix to the root domain such as "**games.prabhatku.me**” where ‘games’ is the sub domain and ‘prabhatku.me’ is the main domain

1. Enter the **Subdomain** you want to connect and click on update. For example, in the image below we are connecting “**games.prabhatku.me**”\ <br>

   <figure><img src="https://3587652945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxZhxfV8vdm6FFNVP2DZD%2Fuploads%2FFsmAae6Y7Cqaj72iIYwn%2Fimage.png?alt=media&#x26;token=d0880a87-8bb3-498e-bd98-f5e3f790cefc" alt="" width="375"><figcaption></figcaption></figure>
2. You will be getting the "Target" value: [rhymdns.in](http://rhymdns.in/) for a new CNAME record as shown in the image below.&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/ha9Hd-pduKIJiBXRNFcGKcc_scKYWDtxOvoDvR5vp-GD-FdKxfKhWamkoG2-1KJ0LxDMmhSQQ0C4Tbq2nA-VzRjri095-6xwXQi72HyBObuHByk9qk0CXilGZ1En7YL42y-6_7GPW1hjKPrpS95B3UY" alt="" width="375"><figcaption></figcaption></figure>

3. Finally, visit your DNS provider settings to add a new CNAME record, enter your domain name which is "games" in this example and also enter the target value: [rhymdns.in](http://rhymdns.in/) as seen in the image below.

<figure><img src="https://3587652945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxZhxfV8vdm6FFNVP2DZD%2Fuploads%2FljAlahBQlFAxznEPpykq%2FCNAME%20example.jpeg?alt=media&#x26;token=085b4a3c-2a04-4d76-a10b-b3ae55cfae06" alt=""><figcaption></figcaption></figure>

Once updated, you can visit your subdomain and play the game. It's that simple!!\
\
**Example:** For `games.yourdomain.com`, you'll add a CNAME record with "games" as the name and the target value provided during setup.

**`*Note: that the activation period depends on your DNS provider and can range from 5 minutes to 24 hours.`**\
\
\
\---------------------------------------------------------------------------------------------------------------------

To **remove** or **delete** a domain connected to a game, simply click on the delete button in the "Manage Domain' settings of that game.

<figure><img src="https://3587652945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxZhxfV8vdm6FFNVP2DZD%2Fuploads%2FHqLs6uroY5GtMoZ3skXy%2FScreenshot%202023-09-18%20at%202.10.19%20PM.png?alt=media&#x26;token=80ad1ae2-c98f-4c99-ab02-dd0878987c9e" alt=""><figcaption></figcaption></figure>

##

<br>
