Resource records contain information about a domain zone. Cloudflare manages A, AAAA, NS, MX, TXT, SRV, CNAME.
To create a resource record for the domain zone in Cloudflare:
- Go to Tools → Cloudflare → DNS-records → Add.
- Enter a Name of the subdomain of the domain zone for which this record will be created.
- Enter a TTL — how long it will be until resource record information will be updated in the cache. The value is specified in seconds.
- Select a Type of the resource record.
- Enter other parameters of this resource record.
- Click on Ok to save the changes in Cloudflare.
An A-record is used to map hostnames to an IPv4 address of the host. Enter the IP-address. Activate the option Enable proxy to redirect the traffic for the domain specified in the resource record through Cloudflare.
An AAAA-record is used to map hostnames to an IPv6 address of the host. Enter the IP-address. Activate the option Enable proxy to redirect the traffic for the domain specified in the resource record through Cloudflare.
An NS-record delegates a domain zone to use the given authoritative name servers. It can contain several servers, including the master one. Enter the Domain of the DNS-server.
An MX-record maps a domain name to a list of message transfer agents for that domain and its priority. The MX-record is used for mail routing. Enter the Domain — a subdomain of the domain zone which is a mail gateway. Priority — enter a figure. The larger value means the lower priority.
A TXT-record is a text string. TXT-records are used by some protocols. You can enter any information in Value.
An SRV-record is a generalized service location record. It allows using several servers for one domain. SRV-records are used only by some protocols, e.g. SIP and XMPP.
Enter a Domain associated with the resource record.
Enter a Priority and Weight of the server. The larger the number, the higher the priority. The client first tries to connect to the server with the highest priority. If it is not accessible, it will try to connect to the next one, etc. If servers have the same priority, the request will be sent to the server with the largest weight. If only one server has a certain priority, its weight should be 0.
Enter a Port of the server the request will be sent to.
A CNAME-record defines an alias of one name to another. The DNS lookup will continue by retrying the lookup with the new name. Enter a Domain to which the request will be redirected. Activate the option Enable proxy to redirect the traffic for the domain specified in the resource record through Cloudflare.