How to setup custom domain within your cloud
Identify your DNS provider
First, determine which service is handling your DNS records. This will guide you to the correct platform where you can log in and set up the new records. Your DNS provider may be the same as your domain registrar, but it’s possible they are different entities. If you’re unsure about your DNS provider, you can search for your domain’s nameservers using the following command, replacing “pesaswap.com” with your own domain:Create required DNS records
In this segment, you’ll generate the necessary DNS records to link your domain. Follow the following steps to enable the same:Step 1: Sign into your DNS provider
DNS providers offer a control panel where you can log in to manage your DNS settings. Locate your provider’s control panel page and sign in.Step 2: Locate the page to manage the DNS for your domain
Now that you’ve successfully logged in, locate the section within your provider’s control panel where you can manage the DNS records for your domain.Step 3: Create CNAME record
In your DNS control panel, create a new record that associates your chosen subdomain with ‘pesaswap payment link’. Your DNS provider will typically prompt you to specify the record type, name, value, and TTL (Time To Live) or expiration when adding a new record. Enter the following values and save the new DNS record:| Field | Instructions | Description |
|---|---|---|
| Type | Select CNAME from the dropdown | What kind of DNS record this is |
| Name | If your custom domain is paymentlink.xyz.com, enter paymentlink | For CNAME records, this field is the first part of your subdomain (the part leading up to the first period) |
| Value | Enter sandbox.pesaswap.io | This is what the new subdomain record points to–in this case, Pesaswap. Some providers may expect a trailing period (.) after the CNAME value. Make sure to verify that your CNAME value matches the format your provider expects |
| TTL/Expiry | Enter 300 | An expiration of 5 minutes (300 seconds) is OK. Your DNS provider might not allow you to change the TTL value. If this field is missing or you can’t change it, it’s safe to ignore this part of the configuration |
Step 4: Create your TXT record
Navigate to your DNS control panel and proceed to add a new TXT record. This TXT record is essential for domain ownership verification. It’s a necessary step to obtain TLS certificates for your domain, ensuring secure payment processing. Enter these values and save the new DNS record:| Field | Instructions | Description |
|---|---|---|
| Type | Select TXT from the dropdown | What kind of DNS record this is |
| Name | If your custom domain is paymentlink.xyz.com, enter _acme-challenge.paymentlink | For TXT records, this field is the subdomain portion of your domain |
| Value | Copy the TXT value that is given by us and paste | This is a long, unique string used for domain verification |
| TTL/Expiry | Enter 300 | An expiration of 5 minutes (300 seconds) is OK. Your DNS provider might not allow you to change the TTL value. If this field is missing or you can’t change it, it’s safe to ignore this part of the configuration |