All Products
Search
Document Center

Alibaba Cloud DNS:Add an A record for a website domain name

Last Updated:Oct 22, 2024

This topic describes how to add an A record for a website domain name. You can add an A record for a domain name that is easy to remember to map the domain name to the IP address of your website server. This way, users can access your website by using the domain name.

Procedure

  1. Log on to the Alibaba Cloud DNS console.

  2. On the Domain Name Resolution page, click the Authoritative Domain Names tab. Find the domain name for which you want to add an A record and click DNS Settings in the Actions column.

    image

  3. Add an A record.

    In this example, example.com is a primary domain name. If you want users to access your websites by using www.example.com and example.com, you must add an A record for each domain name.

    1. On the DNS Settings tab, click Add DNS Record.

      image

    2. Add an A record for www.example.com to map the domain name to the IP address of the website server. For more information, see Add a DNS record.

      Important

      In this example, the Record Value parameter is set to 192.0.2.1. In actual configurations, you must set the Record Value parameter to the IP address of your website server.

      image

    3. Add an A record for example.com to map the domain name to the IP address of your website server. For more information, see Add a DNS record.

      Important

      In this example, the Record Value parameter is set to 192.0.2.1. In actual configurations, you must set the Record Value parameter to the IP address of your website server.

      image