大网数据广告活动
网络与域名解析

Resource Records

· 52CE 我爱测

Learn about resource records. A resource record is the unit of information entry in DNS zone files, which used to resolve all DNS queries.

A resource record, commonly referred to as an RR, is the unit of information entry in DNS zone files; RRs are the basic building blocks of host-name and IP information and are used to resolve all DNS queries. Resource records exist as many types to provide extended name-resolution services.

Different types of RRs have different formats, as they contain different data. In general, however, many RRs share a common format, as the following address resource records example illustrates. The following fictional example explains the fields found in an A resource record:

microsoft.com. 600 IN A 150.150.150.1
  • The first field (microsoft.com) denotes the owner.
  • The second field (600) is the time-to-live (TTL) parameter, in seconds.
  • The third field (IN) is the class field that represents the protocol family, which is almost always IN, for Internet class.
  • The fourth field (A) is the type of resource the RR is representing.
  • The fifth field (150.150.150.1) is the resource data, or RDATA. This field is a variable type that provides information appropriate for the type of resource; in this case, it's a 32-bit IP address.

The following resource record types are commonly used in DNS:

  • Start of authority (SOA)
  • Name server (NS)
  • Pointer record (PTR)
  • Address (A)
  • IPv6 Address (AAAA)
  • Mail exchange (MX)
  • Canonical name (CNAME)
  • Windows Internet Naming Service (WINS)
  • WINS Reverse Look up (WINSR)

There are many other resource record types in DNS. For more information, see DNS WMI Provider Reference.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。