Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the domain name records commonly used in the server

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces the knowledge of "what are the domain name records commonly used in the server". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

A record

An A record is used to create a record to an IP address. From the command line, you can view the A record through nslookup-qt=a www.ezloo.com.

A record setting skills

1. If you want to create a record without www, that is, ezloo.com, enter @ or leave blank in the host record, different registrants may be different.

2. Create multiple domain names to the same IP. For example, if you create a secondary domain name for a blog, you can use * .blog.ezloo.com to point to an IP, so that both a.blog.ezloo.com and b.blog.ezloo.com can reach the same IP.

3. If you set multiple A records for the same second-level domain name, for example, you have created two A records of blog, one of which points to 111.111.111.111 and the other to 111.111.111.112, then when querying, the data returned each time contains two IP addresses, but the data is arranged in a different order each time. Because most clients only choose the first record, a certain degree of load balancing can be achieved in this way.

MX record

You can view the MX record through nslookup-qt=mx ezloo.com from the command line.

The weight of the mx record is very important to the Mail service. When sending mail, the Mail server first parses the domain name and looks up the mx record. First find the server with the lowest weight (say 10), if it can be connected, then send it to the server; if you can't reach the server recorded by mx as 10, then send the mail to the mail server with weight 20.

There is an important concept here. A server with a weight of 20 is configured to temporarily cache mail. When a server with a weight of 20 can connect to a server with a weight of 10, it will still send messages to a Mail server with a weight of 10. Of course, this mechanism needs to be configured on the Mail server.

CNAME record

You can use nslookup-qt=cname a.ezloo.com to view CNAME records from the command line.

CNAME records are also aliased records, which allow you to map multiple records to the same computer. For example, you have created the following records:

A1 CNAME a.ezloo.com

A2 CNAME a.ezloo.com

A3 CNAME a.ezloo.com

An A 111.222.111.222

When we visit A1 (a2Powera3) .ezloo.com, the domain name resolution server will return a CNAME record and point to a.ezloo.com, and then our local computer will send another request for a.ezloo.com resolution and return the IP address.

When we want to point a lot of domain names to a computer, it is more convenient to use CNAME. As in the example above, if the server changes IP, we just need to change the A record of a.ezloo.com.

XT record

You can use nslookup-qt=txt a.ezloo.com to view TXT records from the command line.

A TXT record usually sets a description for a record, for example, you create a new a.ezloo.com TXT record, TXT records the content "this is a test TXT record." and then you use nslookup-qt=txt a.ezloo.com, and you can see the word "this is a test TXT record".

In addition, TXT can also be used to verify all domain names. For example, if your domain name uses a service of Google, Google will ask you to create a TXT record, and then Google will verify whether you have administrative rights to the domain name.

AAAA record

An AAAA record is a record that points to an IPv6 address. You can use nslookup-qt=aaaa a.ezloo.com to view AAAA records.

NS record

NS records are domain name server records that specify which server will resolve the domain name. You can use nslookup-qt=ns ezloo.com to view it.

TTL value

TTL=time to live, which represents the cache time recorded by the resolution in the DNS server. For example, when we request to parse www.ezloo.com, and the DNS server finds that there is no such record, the next NS server will issue a request, and after obtaining the record, the length of time that the record will be saved on the DNS server for TTL. When we make another request to parse the www.ezloo.com, the DNS server directly returns the previous record without requesting the NS server. The time length of TTL is measured in seconds, usually 3600 seconds.

This is the end of the content of "what are the domain name records commonly used in the server"? thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 260

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report