Record Set Types and Configuration Rules
Record Set Types and Configuration Rules
Record set types for public zones include A, CNAME, MX, AAAA, TXT, SRV, NS, SOA, and CAA. For details, see Table 1.
Wildcard Resolution Rules
DNS allows you to add a record set with the record set name set to an asterisk (*), for example, *.example.com. This can map all subdomains to the same value.
If you have added a wildcard record set for a domain name and added multiple record sets of the same type but different line for a specific subdomain, the DNS resolution complies with the following rules:
- Priority: Line match has a higher priority than domain name match. During a DNS query, the system first checks whether a query matches a specific line (such as China Unicom, China Telecom, or China Mobile). If no result is found, the system matches the domain name.
- Priority of queries in the same line: If the line type is the same, exact match has a higher priority than fuzzy match.
- Priority for interaction between intelligent resolution and default lines: Wildcard domain name query matches the intelligent line, and exact domain name query matches the default line. If both of them are matched, the exact domain name query result is used.
Take example.com as an example.
- Configure wildcard records and a record for the subdomain starting with www. The following table lists the parameter settings.
Subdomain
Line
Record Set Type
Value
www.example.com
Default
A
4.4.xx.xx
*.example.com
Default line for China Telecom
A
1.1.xx.xx
*.example.com
Default line for China Unicom
A
2.2.xx.xx
*.example.com
Default line for China Mobile
A
3.3.xx.xx
When a visitor is a China Telecom, China Unicom, or China Mobile user, 4.4.xx.xx is returned.
Rule: If both wildcard and exact domain name queries are matched, the exact domain name query result is used.
- Configure intelligent resolution for the subdomain www.example.com.
Subdomain
Line
Record Set Type
Value
www.example.com
Default
A
4.4.xx.xx
*.example.com
Default line for China Telecom
A
1.1.xx.xx
www.example.com
Default line for China Telecom
A
1.1.xx.xx
*.example.com
Default line for China Unicom
A
2.2.xx.xx
www.example.com
Default line for China Unicom
A
2.2.xx.xx
*.example.com
Default line for China Mobile
A
3.3.xx.xx
www.example.com
Default line for China Mobile
A
3.3.xx.xx
When visitors are China Telecom, China Unicom, or China Mobile users and they are accessing www.example.com, 1.1.xx.xx is returned for the China Telecom user, 2.2.xx.xx is returned for the China Unicom user, and 3.3.xx.xx is returned for the China Mobile user.
Rule: Line match has a higher priority than domain name match. If the line type is the same, exact match has a higher priority than fuzzy match.
Record Set Application Example
Record sets are used in the following scenarios:
- Routing Internet traffic to a website
A and AAAA record sets are usually used to map domain names used by websites to IPv4 or IPv6 addresses of web servers where the websites are deployed.
Figure 1 Accessing a website over the Internet using domain name
- Private domain name resolution
On a private network, A and AAAA record sets translate private domain names into private IP addresses.
Figure 2 Private domain name resolution
- Email domain name resolution
MX, CNAME, and TXT record sets are usually used for email services.
Figure 3 Email domain name resolution
- Reverse resolution on a private network
PTR records translate private IP addresses into private domain names.
Figure 4 Reverse resolution on a private network
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot