Getting started
Learn how to bind a domain name to your website so users can access it by entering the domain name.
Key concepts
How web browsing works: You enter a domain name in a browser. The browser queries DNS for the corresponding IP address, then connects to that IP to load the webpage.
What is DNS and why is it needed?
DNS translates domain names into IP addresses that computers use to locate services on the network.
How does DNS know the IP address for a domain name?
You configure a DNS record that maps your domain name to its IP address. When someone queries the domain, DNS returns the mapped IP.
Your first task
Configure a DNS record for your domain name to point to an IP address.
Prerequisites
-
You have purchased a domain name, such as
your-domain.com, from Alibaba Cloud Domain Names and completed domain name identity verification. If your server is in the Chinese mainland, you must also complete website ICP filing. -
You have a public IP address, such as the public IP of an ECS instance.
Quick configuration
-
Log on to Alibaba Cloud DNS - Authoritative Zone, find your domain name, and click the domain name or Settings to go to the Settings page. In the domain name list, find your domain name and click Settings in the Actions column.
-
Click Add Record and configure the following parameters.
Parameter
Recommended value
Description
Record Type
APoints the domain name to an IPv4 address.
Hostname
wwwIf your domain name is
your-domain.com, you can access your website atwww.your-domain.comonce the configuration is complete.Record Value
106.12.XX.XXEnter your public IP address.
NoteTo test the DNS configuration without an accessible IP address, enter any valid IP address.
Keep the default values for other parameters.
-
On the Settings page, verify that the new DNS record appears in the list and its Status is Enable.
Verification
New records typically take effect immediately. Updated records take effect after the TTL expires (usually 10 minutes). Verify your configuration using the following methods.
1. Resolution verification
Objective: Verify that DNS resolution returns the correct IP address.
Verification method:
-
Use a network probe tool
-
Go to the network probe tool. Enter your domain name, such as
www.your-domain.com, and set the DNS server tons1.alidns.comin the advanced settings. If the returned IP matches your configured value, authoritative DNS resolution is working.Select the DNS tab and choose A from the Type dropdown list.
-
Run the probe again without specifying a DNS server. If test locations return the correct IP, the record has propagated to local DNS.
-
-
Use a command-line tool: Run the following commands in your terminal. Replace
www.your-domain.comwith your domain name and verify the returned IP matches your DNS record.# For Windows # nslookup <domain_to_query> [<dns_server>] nslookup www.your-domain.com ns1.alidns.com # Checks the resolution result from the specified DNS server. nslookup www.your-domain.com # Checks the resolution result from the local DNS. # For Linux # dig @<dns_server> <domain_to_query> dig @ns1.alidns.com www.your-domain.com # Checks the resolution result from the specified DNS server. dig www.your-domain.com # Checks the resolution result from the local DNS.
2. Website verification
Objective: Confirm that the domain name opens your webpage in a browser. This requires the record value to be the public IP of an accessible web service.
Verification method:
-
Browser access: Enter your domain name in a browser, for example,
http://www.your-domain.com, and confirm the page loads.