The first step in utilizing our CDN service involves registering your domain within your VergeCloud account. This guide will walk you through the necessary steps to complete this process.
Consider a scenario where a business is launching a new website and wants to enhance its performance and reliability using VergeCloud’s CDN. By registering their domain with VergeCloud, they can ensure faster content delivery, improved load times, and enhanced user experiences across different regions.
Follow these detailed steps to register your domain:
After registering on the VergeCloud website, log into your user panel.
Locate the CDN section of your account, then click on Domain List and select Add New Domains.
Input your domain's address without "www" and click Continue. If you intend to transfer traffic from a subdomain, enter the subdomain's name instead.
Thoroughly read the service's terms of use and then click on the option to continue and accept the rules.
If adding a subdomain, you will be prompted to choose your Domain Traffic Transfer type: NS Delegation or CNAME Setup.
Select a plan for your domain. Further details about plans can be found on our CDN pricing page.
A window will display your domain records. Verify these records and IPs, then click Continue.
You can either clone settings from a previously registered domain or enter the domain's Zone File. Ensure that the A record values reflect your website’s hosting server IP.
If you chose NS Delegation, update your NS records to VergeCloud's NS records after defining all related records in the "DNS records" section.
If using CNAME Setup for a subdomain, input the CNAME record provided in your DNS service.
Domain activation may take up to 24 hours based on your domain registrar.
Here are sample requests for adding a domain and selecting a plan via API:
curl -X POST "https://api.vergecloud.com/v1/domains" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"domain": "yourdomain.com",
"traffic_transfer_type": "CNAME"
}'
curl -X POST "https://api.vergecloud.com/v1/domains/YOUR_DOMAIN_ID/plans" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"plan_id": "YOUR_PLAN_ID"
}'
To validate your configuration, you can use tools like dig or NSLookup. Here’s how to perform a basic test:
Open your terminal and execute the following command:
dig yourdomain.com
This will return the DNS records for your domain.
Alternatively, you can use NSLookup by typing:
nslookup yourdomain.com
This will also provide the domain's DNS information.