• Domain Name Service

dns
  1. Help Center
  2. Domain Name Service
  3. User Guide
  4. Record Set Management
  5. Creating a Wildcard DNS Record Set

Creating a Wildcard DNS Record Set

Scenarios

A wildcard DNS record set is used to match requests for all subdomains in a zone. You specify the host name in a domain name to an asterisk (*) when creating a record set so that the DNS service can map subdomains to the specified IP address.

This section describes how you can create a wildcard DNS record set.

Restrictions and Limitations

Wildcard DNS resolution does not support NS record sets.

Procedure

  1. Log in to the management console.
  2. In the Network category, click Domain Name Service.

    The DNS console is displayed.

  3. In the navigation pane, choose Public Zones or Private Zones.

    The zone list is displayed.

  4. (Optional) If you have selected Private Zones, click on the upper left to select the region and project.
  5. Click the name of the zone to which the wildcard DNS record set is to be added.
  6. Click Add Record Set to create a wildcard DNS record set.
  7. Configure the parameters according to Table 1.
    Table 1 Parameters required for adding a wildcard DNS record set.

    Parameter

    Description

    Example Value

    Name

    Public (or private) domain name

    To configure a wildcard DNS record set, enter an asterisk (*) as the leftmost label of the domain name, for example, *.example.com.

    NOTE:

    When creating a wildcard record set of the TXT type, you can enter an asterisk (*) in the domain name, but only the leftmost asterisk is treated as a wildcard character. Asterisks in other places of the domain name are used as a common text character.

    *.abc

    Type

    Record set type

    Wildcard DNS resolution does not support NS record sets.

    A – Map domains to IPv4 addresses

    TTL (s)

    Caching period of the record set (in seconds)

    The default value is 300s, that is, 5 min.

    Value

    Record set value

    For more information, see section Managing Record Sets.

    If it is an A record set, the value is the IPv4 addresses mapped to the domain name. For example:

    192.168.12.2

    192.168.12.3

    Tag

    (Optional) Identifier of a resource. Each tag contains a key and a value. You can add 10 tags at most to a record set.

    For details about tag key and value requirements, see Table 2.

    example_key1

    example_value1

    Description

    (Optional) Description of the domain name

    This is a wildcard DNS record set.

    Table 2 Tag key and value requirements

    Parameter

    Requirement

    Example Value

    Key

    • Cannot be left blank.
    • Must be unique for each resource.
    • Consists of at most 36 characters.
    • Contains only letters, digits, hyphens (-), and underscores (_).

    example_key1

    Value

    • Cannot be left blank.
    • Consists of at most 43 characters.
    • Contains only letters, digits, hyphens (-), and underscores (_).

    example_value1

  8. Click OK.