Manage resource DNS-records of the domain in Cloudflare
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 Sites → Cloudflare → DNS-records → Add.
- Enter a Name of the subdomain of the domain zone for which this record will be created.
- Enter TTL — the lifetime of the resource record, i.e. the time during which the data about the resource record can be stored in the cache. The value is specified in seconds.
- Select the Type of the resource record.
- Fill in the necessary data for the record of the selected type.
- Click Ok to save the changes in Cloudflare.
An A-record defines an IPv4 address that corresponds to a domain name. 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 defines an IPv6-address that corresponds to a domain name. Enter the IP-address. Activate the option Enable proxy to redirect the traffic for the domain specified in the resource record through Cloudflare.
NS record — domain name of the authorized DNS server for the domain. May contain several servers, including the master one. Enter the Domain of the DNS-server.
An MX-record defines the address of the mail gateway for the domain and its priority. The MX-record is used for routing mail on the network. Enter the Domain — a subdomain of the domain zone which is a mail gateway. Set Priority — enter a figure. The larger value means the lower priority.
A TXT-record is a text string. TXT-records are used only by some protocols for which it is necessary. Enter the required information in Value.
A SRV record - defines the host name and port of the domain server. 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 Priority and Weight of the server. Priority is a number, the larger it is, the lower 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 larger weight. If only one server has certain priority, its weight should be set as 0.
Enter a Port of the server the request will be sent to.
The CNAME record defines the canonical name for the alias. Used to redirect a request to a domain name alias. The domain name alias must not have other resource records.
Specify the Domain to which the request will be redirected.
Activate the Enable proxy option so that traffic for the domain specified in the resource record was routed through Cloudflare.