All Products
Search
Document Center

Add an A record to a website domain

Last Updated: Apr 22, 2020

Overview

You can add an A record to a domain name and point the domain name to the IP address of the Web server. This ensures that your website is accessible.

Add an A record

  1. Log on to the Alibaba Cloud DNS console

  2. In the left-side navigation pane, click Manage DNS. On the Domains tab, click a domain name to open the DNS Settings page.
    dns setting

  3. Add an A record

In this example, dns-example.com is the primary domain name. If both www.dns-example.com and dns-example.com are required for website access, you must add an A record to each domain name.

  • On the DNS Settings page, click the Add Record button.


addrecord

  • Add an A record to www.dns-example.com, set the hostname to www, and point www.dns-example.com to 1.1.1.1, which is the IP address of the Web server.


www host
Add an A record to dns-example.com, set hostname to @, and point dns-example.com to 1.1.1.1, which is the IP address of the Web server.
@host