This topic explains how to map a domain name to your website so that users can access it using the domain name.
Terms
Basic flow of browsing a webpage: When you enter a domain name in a browser, the browser uses the Domain Name System (DNS) to find the corresponding IP address. The browser then accesses the IP address to retrieve the webpage.
What is DNS and why is it needed?
DNS is a service that translates human-readable domain names into machine-readable IP addresses. Computers require an IP address to locate a target service on the network.
How does DNS know the IP address for a domain name?
A mapping between a domain name and an IP address is configured in DNS. This mapping is a DNS record. During domain name resolution, DNS-based dynamic resolution returns the IP address.
For more information, see Basic Concepts.
Your first task
Configure a DNS record to point your domain name to an IP address.
Prerequisites
Purchase an unregistered domain name, such as
your-domain.com, on Alibaba Cloud Domain Names and complete domain name identity verification. If your server is in the Chinese mainland, you must also complete website ICP filing in advance.You need an active public IP address, such as the public IP address of an ECS instance.
Quick configuration
Go to the Alibaba Cloud DNS - Authoritative Zone page. Find the domain name that you purchased, and then click the domain name or Settings to go to the Settings page.

Click Add Record and complete the form.
Parameter
Recommended value
Description
Record Type
APoints the domain name to an IPv4 address.
Hostname
wwwIf the domain name is
your-domain.com, you can access the website atwww.your-domain.comafter the configuration is successful.Record Value
106.12.XX.XXEnter the IP address that you prepared.
NoteIf you do not have a website or an accessible IP address and only want to test the configuration process, you can enter any IP address.
Keep the default values for other parameters.

On the Settings page, verify that the new DNS record is added and that its Status is Enable.

Verification
A new record usually takes effect immediately. A change to an existing record takes effect after its Time to Live (TTL) period expires. The default TTL is 10 minutes. You can verify the configuration in the following ways:
1. Parsing and authentication
Objective: To verify that the parsing result is as expected.
Verification method:
Use the network probe tool:
Go to the network probe tool. Enter the domain name, such as
www.your-domain.com. In the advanced configuration, specify the DNS server address asns1.alidns.com. Check whether the IP address returned by the network probe is the same as the one you configured. If it is, the authoritative DNS resolution is working correctly.
Run the network probe again without specifying a DNS server. Check whether the IP address of the detection point is the same as the one you configured. If it is, the DNS record has taken effect on the local DNS servers.
Use the command line: On your computer, open a terminal or command-line tool and run the following command. Check if the returned IP address matches the DNS record that you configured. Replace
www.your-domain.comwith your domain name.# For Windows # nslookup <domain_to_query> <dns_server> nslookup www.your-domain.com ns1.alidns.com # Check if the resolution result from the specified DNS server is as expected. nslookup www.your-domain.com # Check if the resolution result from the local DNS is as expected. # For Linux # dig @<dns_server> <domain_to_query> dig @ns1.alidns.com www.your-domain.com # Check if the resolution result from the specified DNS server is as expected. dig www.your-domain.com # Check if the resolution result from the local DNS is as expected.
2. Verify the website
Objective: Ensure that you can open the webpage by entering the domain name in a browser. Note: If you verify the website, make sure that the record value points to the IP address of an accessible web service.
Verification method:
Browser access: In a browser, access the domain name, such as
http://www.your-domain.com, and confirm that the webpage opens correctly.
