Aliyun International Distributor: 5 Minutes to Complete the Whole Process of Aliyun Domain Name Registration, Resolution and Binding
After buying the server, the next step is to buy the domain name. Many people are stuck in the step of "domain name resolution and binding" and feel that various professional terms (A record, CNAME, DNS) are like gobbledygook.
In fact, it is very simple. Today, I don't talk nonsense, don't pile up concepts, and take you with the vernacular.
5 minutes to complete the whole process of "registration $\rightarrow $parsing $\rightarrow $binding"
.
Step 1: Pick and buy a domain (2 minutes)
You can think of a domain name as your "house number" on the Internet (e. g.
baidu.com
). The core principles of buying a domain name are:
Easy to remember, short, try to choose. com
.
1. Find the entrance
Open Aliyun official website and log in to your account. Enter directly in the search box at the top
"Domain Name Registration"
, click to go to the service page.
2. Weight check and selection
Enter the name you want in the query box (e. g.
mywebsite
), click Query.
If. com is not registered yet: Don't hesitate to take it down.
If. com is robbed: consider. cn (China national domain name) or. net. Try to avoid some non-mainstream suffixes (such as. xyz,. top), because some old browsers or security software may misjudge them.
3. Purchase and real name authentication (key)
Click Add List to go to Settlement. This will allow you to choose or create a new one.
"Information Template"
.
⚠️ Note: Domestic purchase of domain names must be real-name authentication. You need to upload an ID photo. If it is a newly created template, real name verification usually takes 1~3 hours. Smart approach: pay first to buy the domain name (lock ownership), such as real name approval, the domain name will be automatically activated.
Step 2: One minute to understand "domain name resolution" (1 minute)
After buying a domain name, it's just a name. Your website files are actually stored on the server, which has a purely numeric IP address (e. g.
123.45.67.89
).
The meaning of analysis is to bind "house number (domain name)" and "actual address (IP address)" together.
In the Alibaba Cloud DNS console, we mainly use two record types ":
Record type
its role
Applicable Scenarios
A Record
Pointing the domain name directly to an IPv4 address
Most commonly used. Bind your cloud server IP directly.
CNAME
Pointing a domain name to another domain name
Commonly used in cloud storage (OSS), CDN acceleration, or third-party blogs (such as GitHub Pages).
Step 3: Configure Alibaba Cloud Domain Name Resolution (1 minute)
Now let's do it and let your domain name guide you to your server.
1. Enter the parsing panel
Search at the top of the Alibaba Cloud console
"Cloud DNS"
, find the domain name you just bought in the list and click on the right
"Parse Settings"
.
2. Add two core records
In order for the user to enter
yourname.com
and
www.yourname.com
Can open your website, we need to add two records. Click
"Add Record"
:
🔸Article 1: Do host name resolution without www
Record Type: Select A
Host record: Enter @ (@ represents direct resolution of the primary domain name)
Resolution Line: Default
Record Value: Fill in the public IP address of your cloud server (you can see it in the ECS console)
TTL: Default (10 minutes)
🔸Article 2: Do analysis with www
Record Type: Select A
Host Record: Enter www
Resolution Line: Default
Record value: also fill in the public IP address of your cloud server
TTL: Default
Click OK. Global DNS usually takes effect within a few seconds. You can open the computer terminal (Terminal or CMD) and enter
ping yourname.com
If the returned IP is your server IP, the resolution is successful.
Step 4: Bind the domain name on the server (1 minute)
Many people think that everything will be fine after the analysis is completed. As a result, the access domain name shows "unable to connect" or the pagoda panel reports an error.
Because you only made "signposts" (parsing) and haven't put your name on the "doorstep" (server). There may be several websites running in the server, and it does not know which folder to use for this domain name.
Here are the most commonly used
Pagoda Panel
and
Nginx pure code
For example, choose the one that suits you:
Scenario A: If you use the "Pagoda Panel" (simplest)
Log in to your pagoda panel backstage.
Click "Websites" in the menu on the left ".
Find the website you have created and click "Settings" on the right ".
In the pop-up window, select Domain Name Management ".
Fill in your domain name in the input box, one line: Plaintextyourname.com www.yourname.com
Click Add ". Mission accomplished!
Scenario B: If you are manually configuring Nginx (pure code)
You need to modify the configuration file of the website (usually in.
/etc/nginx/conf.d/
or
/etc/nginx/nginx.conf
):
Nginx
server {
listen 80;
# Fill in your domain name here. Multiple domain names are separated by spaces.
server_name yourname.com www.yourname.com;
root/
usr/share/nginx/html;# your website root
index index.html index.htm;
location / {
try_files $uri $uri/ =404;
}
}
After the changes are saved, run
nginx -s reload
Reload configuration can be.
Pit Avoidance Guide and FAQs
According to domestic regulations, if your server is in mainland China (such as Beijing, Shanghai, Hangzhou, etc.), you must apply for an ICP filing for your domain name before you can access it publicly. The Alibaba Cloud console has a dedicated "ICP Filing" portal. You can submit information as prompted. Generally, it takes several working days. Note: If your server is in Hong Kong or overseas, you don't need to file it. You can use it directly after parsing.
The parsing display is successful, but the webpage cannot be opened? Check the security group: Alibaba Cloud Server has the "security group" (firewall) function. You need to go to the security group of the ECS console and ensure that port 80 (HTTP) and port 443 (HTTPS) are open. Clear Cache: The local computer's DNS has a cache. You can try to disconnect the Wi-Fi (use traffic) with your mobile phone.
Here, your domain name has run through perfectly. Congratulations, you have taken the most stable first step in building an independent station!
