WO2011088659A1 - 域名系统及域名系统的信息处理方法、装置 - Google Patents

域名系统及域名系统的信息处理方法、装置 Download PDF

Info

Publication number
WO2011088659A1
WO2011088659A1 PCT/CN2010/074572 CN2010074572W WO2011088659A1 WO 2011088659 A1 WO2011088659 A1 WO 2011088659A1 CN 2010074572 W CN2010074572 W CN 2010074572W WO 2011088659 A1 WO2011088659 A1 WO 2011088659A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
domain name
name system
information
query request
Prior art date
Application number
PCT/CN2010/074572
Other languages
English (en)
French (fr)
Inventor
毛伟
李晓东
王龑
陈涛
沈烁
王利明
Original Assignee
中国科学院计算机网络信息中心
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中国科学院计算机网络信息中心 filed Critical 中国科学院计算机网络信息中心
Publication of WO2011088659A1 publication Critical patent/WO2011088659A1/zh
Priority to US13/555,016 priority Critical patent/US9003008B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Definitions

  • the embodiments of the present invention relate to the field of Internet technologies, and in particular, to a domain name system and an information processing method and apparatus for a domain name system. Background technique
  • the domain name system provides a mapping service between a convenient domain name and an IP address used by a computer.
  • the process of recursive query in the domain name system in the prior art is as follows. First, the terminal device sends a Domain Name System (DNS) message to the recursive server, and then the recursive server turns to the authoritative server A for query, if the authoritative server A has a related record, that is, an IP address corresponding to the query domain name is stored, and the related record is sent to the recursive server, and the related record information is sent by the recursive server to the terminal device that initiated the query.
  • DNS Domain Name System
  • the authoritative server does not store the IP address corresponding to the query domain name, and judges that the authoritative server B may store the related record of the domain name, it suggests that the recursive server queries the authoritative server B in the response message, thereby making the recursive server Forward the DNS query request to authoritative server B.
  • the authoritative server B performs the same query step as the authoritative server A.
  • the related record is sent to the recursive server, and the related record information is sent by the recursive server to the terminal device that initiated the query;
  • the IP address corresponding to the query domain name is not stored, and it is determined that the authoritative server C may store the related record of the domain name, and the recursive server is suggested to query the authoritative server C in the response message, so that the recursive server requests the DNS query. Forward to authoritative server C.
  • the authoritative server storing the corresponding IP address of the query domain name returns the query result to the recursive server, and the recursive server sends it to the terminal device that initiates the DNS query; and if all the authoritative servers are not stored and Query the IP address corresponding to the domain name, and finally The authoritative server being queried sends a response to the recursive server that does not exist for the domain name, and the recursive server returns the above response to the terminal device that initiated the query.
  • the recursive server replaces the terminal device to perform an inquiry of the IP address corresponding to the domain name.
  • the IP packet header information of the IP packet sent by the terminal device includes the IP address information of the query host, as shown in FIG. 1, but when the recursive server queries the authoritative server.
  • the IP packet header of the IP packet sent by the IP packet includes the IP address of the recursive server.
  • the embodiments of the present invention provide a method and an apparatus for processing a domain name system and a domain name system, and a terminal device for controlling or counting information query behavior in a domain name system of a terminal device.
  • An embodiment of the present invention provides a method for processing information of a domain name system, including:
  • the embodiment of the invention further provides a terminal device, including:
  • a message generating module configured to generate a domain name system query request message including identifier information of the terminal device
  • An embodiment of the present invention further provides an information processing apparatus for a domain name system, including: a receiving module, configured to receive a domain name system query request message sent by the recursive server, where the domain name system query request message includes identifier information of the terminal device that initiates the query request;
  • An obtaining module configured to parse the received domain name system query request message to obtain the identifier information of the terminal device
  • the control module is configured to perform query control according to the identification information of the terminal device.
  • An embodiment of the present invention further provides a domain name system, including: a terminal device, a recursive server, and at least one authoritative server;
  • the terminal device is configured to generate a domain name system query request message including its identification information, and send the message to the recursive server;
  • the recursive server is configured to receive the domain name system query request message sent by the terminal device, and forward the message to the authoritative server;
  • the authoritative server is configured to receive a domain name system query request message sent by the recursive server, where the domain name system query request message includes the identifier information of the terminal device that initiates the query request, and parses the received domain name system query request message to obtain The identification information of the terminal device is used for query control according to the identification information of the terminal device.
  • the domain name system and the information processing method and device of the domain name system provided by the embodiment of the present invention can implement the information query behavior in the domain name system of the terminal device by carrying the identifier information of the terminal device that initiates the query request in the domain name system query request message. Effective control. DRAWINGS
  • FIG. 1 is a schematic diagram of a data format of a DNS packet in the prior art
  • FIG. 2 is a schematic flowchart of an embodiment of an information processing method of a domain name system according to the present invention
  • 3 is a schematic diagram of a data format of a DNS packet header according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a data format of a terminal identifier type resource record according to an embodiment of the present invention
  • FIG. 5 is a resource data field in an OPT resource record according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of Embodiment 1 of an information processing apparatus of a domain name system according to the present invention
  • FIG. 7 is a schematic structural diagram of Embodiment 2 of an information processing apparatus of a domain name system according to the present invention; Schematic diagram of the structure;
  • FIG. 9 is a schematic diagram of an apparatus of an embodiment of a domain name system of the present invention. detailed description
  • FIG. 2 is a schematic flowchart of an embodiment of an information processing method of a domain name system according to the present invention. As shown in FIG. 2, the method includes the following processes:
  • Step 101 Receive a DNS query request message sent by the recursive server, where the DNS query request message includes the identifier information of the terminal device that initiates the query request.
  • the specific DNS query request message may be sent by the recursive server in the domain name system to the authoritative server.
  • the identifier information of the terminal device is added in the DNS query request message.
  • the recursive server receives the DNS query request message, it forwards the message to the authoritative server, and the authoritative server receives the DNS query request message.
  • the identification information of the terminal device may be carried in the DNS packet header or the DNS packet data.
  • the recursive server only updates the IP packet header when forwarding the DNS query request message. Therefore, the identifier information of the terminal device remains.
  • the DNS query request message received by the authoritative server in the embodiment of the present invention may be an IP corresponding to the domain name.
  • the query of the address may also be a query for the physical address corresponding to the i or the name (or the IP address).
  • Step 102 Parse the received DNS query request message to obtain the identification information of the terminal device. The step is: obtaining, by the authoritative server, the identifier of the terminal device from the DNS query request message;
  • Step 103 Perform query control according to the identification information of the terminal device.
  • the authoritative server learns which terminal device initiates the query request, and therefore may perform the foregoing according to the subscription information of the terminal device or a pre-defined policy.
  • the domain name query behavior is controlled.
  • the information processing method of the domain name system provided by the foregoing embodiment of the present invention can effectively control the information query behavior in the domain name system of the terminal device by carrying the identification information of the terminal device that initiates the query request in the DNS query request message.
  • the identifier information of the terminal device may be set in the DNS packet header or the DNS packet data information.
  • the specific location of the DNS packet header and the DNS packet data in the packet can be as shown in Figure 1. The above information is not lost during the recursive server forwarding process. Therefore, it can be ensured that the identity information of the terminal device is finally delivered to the authoritative server.
  • the identifier information of the terminal device may be added to the domain name system packet header or the domain name system packet data information by the terminal device when generating the domain name system packet.
  • the foregoing setting the identifier information of the terminal device in the DNS packet header may be a method of using an extended DNS packet header to extend a new control field, that is, a terminal identifier field, where the field is used to carry the identifier of the terminal device.
  • Information such as information such as IP address, host name, etc.
  • the DNS packet header includes not only the identifier, the flag, the number of problems, the number of resource records, the number of authorized resource records, and the number of additional resource records, but also the terminal identification field.
  • the carrying the identifier information of the terminal device in the data of the domain name system packet in the foregoing embodiment may include: carrying the identifier information of the terminal device in the resource record of the terminal identifier type; or identifying the identifier of the terminal device. It is carried in the resource data field of the resource record of the option type (ie OPT type).
  • the foregoing terminal identification type resource record is a newly defined resource record, and the resource record record
  • the identifier information for carrying the terminal device, and the newly defined resource record may be placed in the additional resource record portion of the data content of the DNS message and transmitted to the authoritative server.
  • the format of the resource record may be specifically as shown in FIG. 4, where the type is A new type value may be used in the field to indicate that the resource record is not another DNS record, but a resource record for carrying the identification information of the terminal device.
  • the identifier information of the resource device may be set in the domain name field, or Is set in the resource data field.
  • the newly defined terminal identification type resource record can be placed in the additional resource record portion of the DNS message data content.
  • the resource record of the OPT type defined for the extended DNS may also be used.
  • the format of the above OPT resource record may be as shown in FIG. 4, and more specifically, the domain name field of the resource record of the type is empty, and the type field value is
  • the class field value is the payload size of the UDP of the sender
  • the different option data is stored in the resource data field in the format shown in FIG. 5, and the identifier information of the terminal device may be carried in the foregoing resource in the embodiment of the present invention.
  • the option data field of the data field a new option code type can be defined for the identification information of the terminal device.
  • the existing OPT resource record is not forwardable. Therefore, the OPT type resource record carrying the identification information of the terminal device needs to be configured as a forwardable resource record type to allow multi-hop delivery.
  • step 103 in the embodiment shown in FIG. 2 may specifically control the query authority of the terminal device according to the identifier information of the terminal device; or perform statistics on the number of queries initiated by the terminal device according to the identifier information of the terminal device.
  • the foregoing embodiment of the present invention provides a method for processing a domain name system.
  • the identifier information of the terminal device that initiates the query request is carried in the DNS query request message, so that the authoritative server can know which terminal device initiates the query, and thus can Realize effective control of the query behavior initiated by the terminal device.
  • the embodiment of the present invention further provides an information processing device for the terminal device and the domain name system, which can execute the step flow provided by the foregoing method embodiment
  • FIG. 6 is an information processing device of the domain name system of the present invention.
  • a schematic structural diagram of Embodiment 1 the device is equivalent to an authoritative server, as shown in FIG. 6, the device includes: a receiving module 11, an acquiring module 12, and a control
  • the module 13 is configured to receive the DNS query request message sent by the recursive server, where the DNS query request message includes the identifier information of the terminal device that initiates the query request, and the obtaining module 12 is configured to query the received DNS query.
  • the request message is parsed to obtain the identification information of the terminal device; the control module 13 is configured to perform query control according to the identification information of the terminal device.
  • the information processing apparatus of the domain name system can obtain the query request initiated by the terminal device by receiving the DNS query request message including the identifier information of the terminal device that initiates the query request. Effective control.
  • the DNS query request message received by the receiving module in the embodiment of the present invention may be an inquiry of an IP address corresponding to a domain name, or may be a query of a physical address corresponding to an i or a name (or an IP address).
  • the identifier information of the terminal device may be carried in the domain name system packet header or the domain name system data information, that is, as shown in FIG. 7, the obtaining module 12 may include: a first acquiring unit 121, The second obtaining unit 122 or the third obtaining unit 123, where the first obtaining unit 121 is configured to parse the received DNS query request message to obtain the identifier information carried in the end device and carry it in the DNS packet header.
  • the second obtaining unit 122 is configured to parse the received DNS query request message to obtain the identifier information of the terminal device that is carried in the terminal identifier type resource record, where the terminal identifier type resource record may be a resource record type that is specifically defined for carrying the identification information of the terminal device; the third obtaining unit 123 is configured to parse the received DNS query request message to obtain the resource data field carried in the OPT type resource record.
  • Identification information of the terminal device, the resource record of the OPT type is extended DNS Defined resource record, specifically as shown in FIG 6, the terminal device acquires the identification information from the data field of the option field of the resource data.
  • control module 13 may further include a first control unit 131 or a second control unit 132, where the first control unit 131 is configured to control the query authority of the terminal device according to the identification information of the terminal device; And performing statistics on the number of queries initiated by the terminal device according to the identifier information of the terminal device.
  • FIG. 8 is a schematic structural diagram of an embodiment of a terminal device according to the present invention. As shown in FIG. 8, the terminal device includes a message generating module 21 and a sending module 22.
  • the message generating module 21 is configured to generate a DNS query including identifier information of the terminal device. a request message; the sending module 22 is configured to send the DNS query request message to the recursive server.
  • the terminal device provided by the foregoing embodiment by using the message generating module, carries the identifier information of the terminal device in the generated DNS query request message to indicate the terminal device that initiates the query request, and the foregoing DNS query request message may be forwarded to the authoritative server by the recursive server.
  • the authoritative server can identify the terminal device that initiates the query request, so as to be able to control the query behavior of the terminal device.
  • the foregoing DNS query request message may be an inquiry about the IP address corresponding to the domain name, or may refer to the domain name (or IP address). ) A query for the corresponding physical address.
  • the identifier information of the foregoing terminal device may be carried in the DNS packet, and is included in the domain name system packet header or the domain name system packet data information, that is, the message generating module may further include the first message generating unit. 211 or the second message generating unit 212, wherein the first message generating unit 211 is configured to generate a domain name system message, and add the identification information of the terminal device to the domain name system message header; the second message generating unit 212 is configured to: The domain name system packet is generated, and the identifier information of the terminal device is added to the domain name system packet data information.
  • the identifier information of the terminal device is set in the domain name system packet header or the domain name system packet data information, so that the foregoing representation information is not lost during the recursive server forwarding process, so that the identification information of the terminal device is finally transmitted to the authority. server.
  • FIG. 9 is a schematic diagram of an apparatus for implementing the domain name system according to the embodiment of the present invention.
  • the system can perform the step procedure provided by the foregoing method embodiment.
  • the system includes the terminal device 1.
  • the DNS query request message may be added to the DNS packet.
  • the recursive server 2 is configured to receive the DNS query request message sent by the terminal device 1 and forward the message to the authoritative server 3;
  • the device 3 is configured to receive a DNS query request message sent by the recursive server, where the DNS query request message includes the identifier information of the terminal device that initiates the query request, and parses the received DNS query request message to obtain the terminal device. Identifying information, and performing query control according to the identification information of the terminal device.
  • the domain name system is provided.
  • the authoritative server can obtain the query request by the terminal device to obtain the query request initiated by the terminal device by receiving the DNS query request message including the identifier information of the terminal device that initiates the query request. control.
  • the DNS query request message received by the authoritative server of the embodiment of the present invention may be an inquiry for an IP address corresponding to the domain name, or may be a query for a physical address corresponding to the i or the name (or IP address).
  • the information processing method and device, and the terminal device of the domain name system and the domain name system provided by the foregoing embodiment of the present invention carry the identification information of the terminal device that initiates the query request in the DNS query request message, and specifically carry the identifier information in the domain name.
  • the system ⁇ me header or the domain name system data information, and when carried in the domain name system data information, can be carried in the newly defined terminal identifier type resource record, or carried in the existing In the OPT resource record, the authoritative server can specifically initiate the query requesting terminal device to implement effective control of the information query behavior in the domain name system.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Description

域名系统以及域名系统的信息处理方法、 装置 技术领域
本发明实施例涉及互联网技术领域, 尤其涉及一种域名系统以及域名系 统的信息处理方法、 装置。 背景技术
在互联网技术中 ,域名系统提供在方便记忆的域名和计算机使用的 IP 地址之间的映射服务。
现有技术中在域名系统进行递归查询的过程如下,首先终端设备向递 归服务器发送域名系统( Domain Name System, 以下简称: DNS )报文, 然后由递归服务器转向权威服务器 A进行查询, 若权威服务器 A具有相 关记录, 即存储有查询域名对应的 IP地址, 则将相关记录发送给递归服 务器, 并由递归服务器将上述相关记录信息发送给发起查询的终端设备。 若权威服务器中没有存储上述查询域名对应的 IP地址, 并判断权威服务 器 B可能会存储有上述域名的相关记录,则会在应答信息中建议递归服器 向权威服务器 B进行查询, 从而使得递归服务器将 DNS查询请求转发给 权威服务器 B。 权威服务器 B执行与权威服务器 A相同的查询步骤, 在 存储有查询域名对应的 IP地址时, 将相关记录发送给递归服务器, 并由 递归服务器将上述相关记录信息发送给发起查询的终端设备;在未存储上 述查询域名对应的 IP地址, 并判断权威服务器 C可能会存储有上述域名 的相关记录, 则会在应答信息中建议递归服器向权威服务器 C进行查询, 从而使得递归服务器将 DNS查询请求转发给权威服务器 C。 依次类推, 直到存储有上述查询域名对应 IP地址的权威服务器将查询结果返回给递 归服务器, 并由递归服务器将其发送给发起 DNS查询的终端设备即可; 另外若所有的权威服务器都没有存储与查询域名对应的 IP地址, 则最后 被查询的权威服务器会发送一条查询域名不存在的应答给递归服务器, 并 由递归服务器将上述的应答返回给发起查询的终端设备。
在上述的递归查询过程中, 由递归服务器代替终端设备进行与域名对 应的 IP地址的查询。具体的是在终端设备向递归服务器发起 DNS查询时, 其发送的 IP数据包的 IP报文头信息包括查询主机的 IP地址信息, 如图 1 所示, 但当递归服务器向权威服务器进行查询时, 其发送的 IP数据包的 IP报文头中包括的是递归服务器的 IP地址。 在实现本发明过程中, 发明 人发现现有技术中至少存在如下问题: 由于无法获取进行域名信息查询的 终端设备的相关信息,现有技术中无法对终端设备的域名信息查询行为进 行控制或统计。 发明内容
本发明实施例提供了一种域名系统以及域名系统的信息处理方法、装置, 以及一种终端设备, 用以实现对终端设备的域名系统内信息查询行为进行控 制或统计。 本发明实施例提供了一种域名系统的信息处理方法, 包括:
接收递归服务器发送的域名系统查询请求消息, 所述域名系统查询请求 消息包括发起查询请求的终端设备的标识信息;
对所述接收到的域名系统查询请求消息进行解析以获取所述终端设备的 标识信息;
根据所述终端设备的标识信息进行查询控制。
本发明实施例还提供了一种终端设备, 包括:
消息生成模块, 用于生成包括终端设备的标识信息的域名系统查询请求 消息;
发送模块, 用于向递归服务器发送所述域名系统查询请求消息。 本发明实施例还提供了一种域名系统的信息处理装置, 包括: 接收模块, 用于接收递归服务器发送的域名系统查询请求消息, 所述域 名系统查询请求消息包括发起查询请求的终端设备的标识信息;
获取模块, 用于对所述接收到的域名系统查询请求消息进行解析以获取 所述终端设备的标识信息;
控制模块, 用于根据所述终端设备的标识信息进行查询控制。
本发明实施例还提供了一种域名系统, 包括: 终端设备、 递归服务器以 及至少一个权威服务器; 其中
所述终端设备用于生成包括其标识信息的域名系统查询请求消息并向所 述递归服务器发送;
所述递归服务器用于接收终端设备发送的所述域名系统查询请求消息, 并向权威服务器转发;
所述权威服务器用于接收递归服务器发送的域名系统查询请求消息, 所 述域名系统查询请求消息包括发起查询请求的终端设备的标识信息, 对所述 接收到的域名系统查询请求消息进行解析以获取所述终端设备的标识信息, 并根据所述终端设备的标识信息进行查询控制。
本发明实施例提供的域名系统以及域名系统的信息处理方法、 装置, 通 过在域名系统查询请求消息中携带发起查询请求的终端设备的标识信息, 能 够实现对终端设备的域名系统内信息查询行为的有效控制。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为现有技术中 DNS报文的数据格式示意图;
图 2为本发明域名系统的信息处理方法实施例的流程示意图; 图 3为本发明实施例中 DNS报文头的数据格式示意图; 图 4为本发明实施例中终端标识类型资源记录的数据格式示意图; 图 5为本发明实施例中 OPT资源记录中资源数据字段的数据格式示意图; 图 6为本发明域名系统的信息处理装置实施例一的结构示意图; 图 7为本发明域名系统的信息处理装置实施例二的结构示意图; 图 8为本发明终端设备实施例的结构示意图;
图 9为本发明域名系统实施例的装置示意图。 具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。
针对现有技术中无法对终端设备发起的查询行为进行控制的缺陷, 本发 明实施例提供了一种域名系统的信息处理方法, 图 2为本发明域名系统的信 息处理方法实施例的流程示意图, 如图 2所示, 该方法包括如下流程:
步骤 101、 接收递归服务器发送的 DNS查询请求消息, 所述 DNS查询 请求消息包括发起查询请求的终端设备的标识信息;具体的上述的 DNS查询 请求消息可以是域名系统中递归服务器向权威服务器发送的 DNS报文,本步 骤中是在 DNS查询请求消息增加终端设备的标识信息, 当递归服务器接收到 上述的 DNS查询请求消息后将其转发给权威服务器, 由权威服务器接收上述 的 DNS查询请求消息, 上述终端设备的标识信息具体的可以携带在 DNS报 文头或者是 DNS报文数据信息中,递归服务器在转发 DNS查询请求消息时, 只更新其中的 IP报文头, 因此终端设备的标识信息依然能得到保留; 另外本 发明实施例权威服务器接收到的 DNS 查询请求消息可以是对域名对应的 IP 地址的查询, 也可以是指对 i或名 (或 IP地址)对应的物理地址的查询; 步骤 102、 对所述接收到的 DNS查询请求消息进行解析以获取所述终端 设备的标识信息,本步骤是由权威服务器从 DNS查询请求消息获取终端设备 的标识;
步骤 103、 根据所述终端设备的标识信息进行查询控制, 在上述步骤的 基础上, 权威服务器获知是哪个终端设备发起的查询请求, 因此可以根据终 端设备的签约信息, 或者预先制定的策略对上述的域名查询行为进行控制。
本发明上述实施例提供的域名系统的信息处理方法,通过在 DNS查询请 求消息中携带发起查询请求的终端设备的标识信息 , 能够实现对终端设备的 域名系统内信息查询行为的有效控制。
在本发明上述实施例中,终端设备的标识信息可以设置在 DNS报文头或 者 DNS报文数据信息中。 DNS报文头和 DNS报文数据信息在报文中具体位 置可如图 1 所示, 上述信息在递归服务器转发过程中不会丟失, 因此可以确 保终端设备的标识信息最终被传递给权威服务器。
另外是在上述实施例中, 终端设备的标识信息可以是由终端设备在生成 域名系统报文时添加到域名系统报文头或者域名系统报文数据信息中。 并且 上述的将终端设备的标识信息设置在 DNS 报文头具体的可以是利用扩展的 DNS报文头的方式, 扩展一个新的控制字段, 即终端标识字段, 该字段用于 携带终端设备的标识信息, 例如可以是 IP地址, 主机名等信息。 具体的可如 图 3所示, DNS报文头不仅包括标识、 标志、 问题数、 资源记录数、 授权资 源记录数和额外资源记录数的字段, 还包括终端标识字段。
另外上述实施例中将终端设备的标识信息携带在所述域名系统报文数据 信息中可以具体为包括: 将终端设备的标识信息携带在终端标识类型资源记 录中; 或者是将终端设备的标识信息携带在选项类型 (即 OPT类型) 的资源 记录的资源数据字段中。
上述的终端标识类型资源记录为一个新定义的资源记录, 该资源记录专 用于携带终端设备的标识信息, 并且上述新定义的资源记录可以放置在 DNS 报文数据内容的额外资源记录部分传递给权威服务器, 该资源记录的格式具 体可如图 4所示, 其中的类型字段中可以新的类型值, 以表明该资源记录不 是其他的 DNS记录, 而是一条用于携带终端设备的标识信息的资源记录, 具 体的, 资源设备的标识信息可以设置在域名字段中, 或者是设置在资源数据 字段中。上述新定义的终端标识类型资源记录可以放置在 DNS报文数据内容 的额外资源记录部分。
另外还可以使用为扩展 DNS而定义的 OPT类型的资源记录中, 上述的 OPT资源记录的格式可如图 4所示, 并且更具体的, 该类型的资源记录的域 名字段为空, 类型字段值为 41 , 类字段值为发送者的 UDP的载荷大小, 在 资源数据字段中使用如图 5所示的格式存放不同的选项数据, 本发明实施例 中可以将终端设备的标识信息携带在上述资源数据字段的选项数据字段中, 并可为终端设备的标识信息定义新的选项代码类型。 另外现有的 OPT资源记 录是不可转发的, 因此需要将所述携带终端设备的标识信息的 OPT类型资源 记录配置为可转发的资源记录类型, 以允许其进行多跳传递。
另外图 2所示实施例中的步骤 103可以具体为根据上述终端设备的标识 信息对终端设备的查询权限进行控制; 或根据上述终端设备的标识信息对终 端设备发起的查询次数进行统计。
本发明上述实施例提供了一种域名系统的信息处理方法, 通过将发起查 询请求的终端设备的标识信息携带在 DNS查询请求消息中,能够使得权威服 务器获知是由哪个终端设备发起查询, 进而能够实现对终端设备发起的查询 行为的有效控制。
与上述域名系统的信息处理方法对应的, 本发明实施例还提供了终端设 备和域名系统的信息处理装置, 能够执行上述方法实施例提供的步驟流程, 图 6为本发明域名系统的信息处理装置实施例一的结构示意图, 该装置相当 于权威服务器, 如图 6所示, 该装置包括: 接收模块 11 , 获取模块 12和控 制模块 13 ,其中接收模块 11用于接收递归服务器发送的 DNS查询请求消息, 所述 DNS查询请求消息包括发起查询请求的终端设备的标识信息;获取模块 12用于对所述接收到的 DNS查询请求消息进行解析以获取所述终端设备的 标识信息; 控制模块 13用于根据所述终端设备的标识信息进行查询控制。
本实施例提供域名系统的信息处理装置, 通过接收包括发起查询请求的 终端设备的标识信息的 DNS查询请求消息, 能够获知是由哪个终端设备发起 查询请求, 进而能够实现对终端设备发起的查询行为的有效控制。 另外本发 明实施例中接收模块接收到的 DNS查询请求消息可以是对域名对应的 IP地 址的查询, 也可以是指对 i或名 (或 IP地址)对应的物理地址的查询。
在具体的实施过程中, 可以将终端设备的标识信息携带在域名系统报文 头或者是域名系统数据信息中,即如图 7所示,上述的获取模块 12可以包括: 第一获取单元 121、 第二获取单元 122或第三获取单元 123 , 其中上述的第一 获取单元 121用于对所述接收到的 DNS查询请求消息进行解析以获取携带在 端设备的标识信息携带在 DNS报文头中的情况进行获取; 第二获取单元 122 用于对接收到的 DNS 查询请求消息进行解析以获取携带在终端标识类型资 源记录中的所述终端设备的标识信息, 上述的终端标识类型资源记录可以是 专门为携带终端设备的标识信息而定义的资源记录类型; 上述的第三获取单 元 123用于对接收到的 DNS查询请求消息进行解析以获取携带在 OPT类型 资源记录的资源数据字段中的所述终端设备的标识信息, 该 OPT类型的资源 记录为扩展 DNS而定义的资源记录, 具体的可以如图 6所示, 从资源数据字 段的选项数据字段中获取终端设备的标识信息。
另外控制模块 13可以进一步包括第一控制单元 131或第二控制单元 132, 其中第一控制单元 131用于根据所述终端设备的标识信息对终端设备的查询 权限进行控制; 第二控制单元 132用于根据所述终端设备的标识信息对终端 设备发起的查询次数进行统计。 图 8为本发明终端设备实施例的结构示意图, 如图 8所示, 该终端设备 包括消息生成模块 21和发送模块 22 , 上述的消息生成模块 21用于生成包括 终端设备的标识信息的 DNS查询请求消息; 发送模块 22用于向递归服务器 发送所述 DNS查询请求消息。
上述实施例提供的终端设备,通过消息生成模块在生成的 DNS查询请求 消息中携带终端设备的标识信息, 以表明发起查询请求的终端设备, 上述的 DNS查询请求消息可由递归服务器转发给权威服务器, 使得权威服务器能够 识别发起查询请求的终端设备, 以便能够对终端设备的查询行为进行控制, 上述的 DNS查询请求消息可以是对域名对应的 IP地址的查询, 也可以是指 对域名 (或 IP地址 ) 对应的物理地址的查询。
并且进一步的上述的终端设备的标识信息可以是携带在 DNS报文中, 包 括携带在域名系统报文头或域名系统报文数据信息中, 即上述的消息生成模 块可以进一步包括第一消息生成单元 211 或第二消息生成单元 212, 其中第 一消息生成单元 211用于生成域名系统报文, 并将所述终端设备的标识信息 添加到域名系统报文头中; 第二消息生成单元 212用于生成域名系统报文, 并将所述终端设备的标识信息添加到域名系统报文数据信息中。 将终端设备 的标识信息设置在域名系统报文头或域名系统报文数据信息中, 能够使得上 述表示信息在递归服务器转发过程中不会丢失, 因此可以确保终端设备的标 识信息最终被传递给权威服务器。
本发明实施例还提供了一种域名系统, 图 9为本发明域名系统实施例的 装置示意图, 该系统能够执行上述方法实施例提供的步骤流程, 如图 9所示, 该系统包括终端设备 1、 递归服务器 2以及至少一个权威服务器 3; 其中上述 终端设备 1用于生成包括其标识信息的 DNS查询请求消息并向所述递归服务 器发送,上述的终端设备的标识信息是由终端设备在生成消息时添加 DNS查 询请求消息中, 具体的可以是添加到 DNS报文中; 递归服务器 2用于接收终 端设备 1发送的所述 DNS查询请求消息, 并向权威服务器 3转发; 权威服务 器 3用于接收递归服务器发送的 DNS查询请求消息, 所述 DNS查询请求消 息包括发起查询请求的终端设备的标识信息,对所述接收到的 DNS查询请求 消息进行解析以获取所述终端设备的标识信息, 并根据所述终端设备的标识 信息进行查询控制。
本实施例提供域名系统, 权威服务器通过接收包括发起查询请求的终端 设备的标识信息的 DNS查询请求消息,能够获知是由哪个终端设备发起查询 请求, 进而能够实现对终端设备发起的查询行为的有效控制。 另外本发明实 施例权威服务器接收到的 DNS查询请求消息可以是对域名对应的 IP地址的 查询, 也可以是指对 i或名 (或 IP地址)对应的物理地址的查询。
本发明上述实施例提供的域名系统以及域名系统的信息处理方法、装置, 以及终端设备,通过在 DNS查询请求消息中携带发起查询请求的终端设备的 标识信息, 具体的将上述标识信息携带在域名系统 · ^文头或者是域名系统数 据信息中, 且在将其携带在域名系统数据信息中时, 可以将其携带在新定义 的终端标识类型资源记录中, 或者是将其携带在已有的 OPT资源记录中, 都 能够使得权威服务器具体发起查询请求的终端设备, 以实现对域名系统内信 息查询行为的有效控制。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步驟可 以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存 储介盾中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存储 介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims

权利要求
1、 一种域名系统的信息处理方法, 其特征在于, 包括:
接收递归服务器发送的域名系统查询请求消息, 所述域名系统查询请求 消息包括发起查询请求的终端设备的标识信息;
对所述接收到的域名系统查询请求消息进行解析以获取所述终端设备的 标识信息;
根据所述终端设备的标识信息进行查询控制。
2、 根据权利要求 1所述的域名系统的信息处理方法, 其特征在于, 所述 终端设备的标识信息携带在域名系统报文头或者域名系统报文数据信息中。
3、 根据权利要求 2所述的域名系统的信息处理方法, 其特征在于, 所述 终端设备的标识信息携带在所述域名系统报文头的终端标识字段中。
4、 根据权利要求 2所述的域名系统的信息处理方法, 其特征在于, 将所 述终端设备的标识信息携带在所述域名系统报文数据信息中包括:
所述终端设备的标识信息携带在终端标识类型资源记录中; 或 所述终端设备的标识信息携带在选择类型资源记录的资源数据字段中。
5、 根据权利要求 4所述的域名系统的信息处理方法, 其特征在于, 所述 终端设备的标识信息携带在终端标识类型资源记录的域名字段或者资源数据 字段中。
6、 根据权利要求 4所述域名系统的信息处理方法, 其特征在于, 所述终 端设备的标识信息携带在选项类型资源记录的资源数据字段中, 具体为携带 在所述资源数据字段的选项数据字段中, 且所述携带终端设备的标识信息的 选项类型资源记录配置为可转发的资源记录类型。
7、 根据权利要求 2所述的域名系统的信息处理方法, 其特征在于, 所述 终端设备的标识信息由终端设备在生成域名系统报文时添加到域名系统报文 头或者域名系统报文数据信息中。
8、根据权利要求 1-7任一所述的域名系统的信息处理方法,其特征在于, 所述根据终端设备的标识信息进行查询控制包括:
根据所述终端设备的标识信息对终端设备的查询权限进行控制; 或 根据所述终端设备的标识信息对终端设备发起的查询次数进行统计。
9、 一种终端设备, 其特征在于, 包括:
消息生成模块, 用于生成包括终端设备的标识信息的域名系统查询请求 消息;
发送模块, 用于向递归服务器发送所述域名系统查询请求消息。
10、 根据权利要求 9所述的终端设备, 其特征在于, 所述消息生成模块 包括:
第一消息生成单元, 用于生成域名系统报文, 并将所述终端设备的标识 信息添加到域名系统报文头中; 或
第二消息生成单元, 用于生成域名系统报文, 并将所述终端设备的标识 信息添加到域名系统报文数据信息中。
1 1、 一种域名系统的信息处理装置, 其特征在于, 包括:
接收模块, 用于接收递归服务器发送的域名系统查询请求消息, 所述域 名系统查询请求消息包括发起查询请求的终端设备的标识信息;
获取模块, 用于对所述接收到的域名系统查询请求消息进行解析以获取 所述终端设备的标识信息;
控制模块, 用于根据所述终端设备的标识信息进行查询控制。
12、 根据权利要求 1 1所述的域名系统的信息处理装置, 其特征在于, 所 述获取模块包括:
第一获取单元, 用于对所述接收到的域名系统查询请求消息进行解析以 或
第二获取单元 , 用于对所述接收到的域名系统查询请求消息进行解析以 获取携带在终端标识类型资源记录中的所述终端设备的标识信息; 或 第三获取单元, 用于对所述接收到的域名系统查询请求消息进行解析以 获取携带在选项类型资源记录的资源数据字段中的所述终端设备的标识信
13、 根据权利要求 11或 12所述的域名系统的信息处理装置, 其特征在 于, 所述控制模块包括:
第一控制单元, 用于根据所述终端设备的标识信息对终端设备的查询权 限进行控制; 或
第二控制单元, 用于根据所述终端设备的标识信息对终端设备发起的查 询次数进行统计。
14、 一种域名系统, 其特征在于, 包括: 终端设备、 递归服务器以及至 少一个权威服务器; 其中
所述终端设备用于生成包括其标识信息的域名系统查询请求消息并向所 述递归服务器发送;
所述递归服务器用于接收终端设备发送的所述域名系统查询请求消息, 并向权威服务器转发;
所述权威服务器用于接收递归服务器发送的域名系统查询请求消息, 所 述域名系统查询请求消息包括发起查询请求的终端设备的标识信息, 对所述 接收到的域名系统查询请求消息进行解析以获取所述终端设备的标识信息, 并根据所述终端设备的标识信息进行查询控制。
PCT/CN2010/074572 2010-01-22 2010-06-28 域名系统及域名系统的信息处理方法、装置 WO2011088659A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US13/555,016 US9003008B2 (en) 2010-01-22 2012-07-20 Domain name system, information processing method and apparatus of domain name system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010100342.2A CN101841520B (zh) 2010-01-22 2010-01-22 域名系统以及域名系统的信息处理方法、装置
CN201010100342.2 2010-01-22

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/555,016 Continuation US9003008B2 (en) 2010-01-22 2012-07-20 Domain name system, information processing method and apparatus of domain name system

Publications (1)

Publication Number Publication Date
WO2011088659A1 true WO2011088659A1 (zh) 2011-07-28

Family

ID=42744645

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/074572 WO2011088659A1 (zh) 2010-01-22 2010-06-28 域名系统及域名系统的信息处理方法、装置

Country Status (3)

Country Link
US (1) US9003008B2 (zh)
CN (1) CN101841520B (zh)
WO (1) WO2011088659A1 (zh)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611763A (zh) * 2011-01-25 2012-07-25 中国移动通信集团公司 Dns查询的方法及设备
KR101419436B1 (ko) * 2012-12-14 2014-08-13 (주)씨디네트웍스 Dns 서비스 제공 방법 및 장치
CN103491201A (zh) * 2013-08-27 2014-01-01 北京蓝汛通信技术有限责任公司 一种域名解析的方法和域名服务器
CN104702706B (zh) * 2013-12-04 2018-05-11 中国移动通信集团公司 一种获取dns报文的方法及设备
CN104702709A (zh) * 2013-12-06 2015-06-10 华为技术有限公司 标识、识别终端类型的方法和装置
CN103685599B (zh) * 2013-12-09 2017-04-05 中国科学院计算机网络信息中心 一种域名递归服务的预判干预方法
US10805110B2 (en) * 2015-03-27 2020-10-13 Akamai Technologies, Inc. Traffic delivery using anycast and end user-based mapping in an overlay network
CN106470195B (zh) * 2015-08-20 2019-12-17 互联网域名系统北京市工程研究中心有限公司 消息的签名方法和域名服务器
CN105338128B (zh) * 2015-09-25 2018-09-25 互联网域名系统北京市工程研究中心有限公司 域名解析方法及域名解析装置
CN105357328B (zh) * 2015-09-28 2018-10-02 互联网域名系统北京市工程研究中心有限公司 域名解析方法、dns递归服务器及域名解析系统
CN106612339A (zh) * 2015-10-27 2017-05-03 中国电信股份有限公司 域名更新方法、系统和主dns服务器
CN105681491B (zh) * 2016-04-08 2018-09-14 网宿科技股份有限公司 一种域名解析加速方法、系统和装置
CN109561082A (zh) * 2018-11-16 2019-04-02 国网思极网安科技(北京)有限公司 一种区分dns用户的方法和系统
US11425086B2 (en) * 2019-06-11 2022-08-23 Juniper Networks, Inc. Using DNS to communicate MC-TCP capability of server devices
CN115442329B (zh) * 2021-06-04 2024-02-23 贵州白山云科技股份有限公司 域名信息查询方法、系统、装置、设备及存储介质
CN115334040B (zh) * 2022-08-10 2023-07-18 北京百度网讯科技有限公司 域名的互联网协议ip地址的确定方法及其装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984136A (zh) * 2006-04-07 2007-06-20 华为技术有限公司 会话初始协议终端查询服务器支持能力的方法
CN101170585A (zh) * 2007-11-13 2008-04-30 中兴通讯股份有限公司 一种域名查询方法
WO2010002603A1 (en) * 2008-06-30 2010-01-07 Amazon Technologies, Inc. Request routing using network computing components
CN101631133A (zh) * 2008-07-15 2010-01-20 华为技术有限公司 一种域名解析系统、设备及方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7730187B2 (en) * 2006-10-05 2010-06-01 Limelight Networks, Inc. Remote domain name service
US9154512B2 (en) * 2006-03-30 2015-10-06 Cisco Technology, Inc. Transparently proxying transport protocol connections using an external server
EP1931114B1 (en) * 2006-12-08 2010-07-28 Ubs Ag Method and apparatus for detecting the IP address of a computer and location information associated therewith
CN101478553B (zh) * 2009-02-10 2012-07-04 中国联合网络通信集团有限公司 动态域名管理系统和方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984136A (zh) * 2006-04-07 2007-06-20 华为技术有限公司 会话初始协议终端查询服务器支持能力的方法
CN101170585A (zh) * 2007-11-13 2008-04-30 中兴通讯股份有限公司 一种域名查询方法
WO2010002603A1 (en) * 2008-06-30 2010-01-07 Amazon Technologies, Inc. Request routing using network computing components
CN101631133A (zh) * 2008-07-15 2010-01-20 华为技术有限公司 一种域名解析系统、设备及方法

Also Published As

Publication number Publication date
CN101841520A (zh) 2010-09-22
CN101841520B (zh) 2013-11-06
US20120290701A1 (en) 2012-11-15
US9003008B2 (en) 2015-04-07

Similar Documents

Publication Publication Date Title
WO2011088659A1 (zh) 域名系统及域名系统的信息处理方法、装置
US10511567B2 (en) Network resource identification
CN108737515B (zh) 在联网环境中请求路由选择
EP3726786B1 (en) Method and apparatus for transmitting application programming interface (api) request
EP2930911B1 (en) Method and apparatus for controlling sending of heartbeat signal
JP4951676B2 (ja) マルチメディア・ネットワークにおいてサービス要求を処理するための方法及び装置
WO2018214853A1 (zh) 一种减小dns报文长度的方法、装置、介质及设备
WO2017000144A1 (zh) Dns的服务器、客户端及数据同步方法
WO2011140852A1 (zh) 访问im业务系统存储服务器的方法和im业务系统
KR101779917B1 (ko) 미디어 리소스 피드백 방법, 장치, 프로그램 및 기록매체
WO2014000558A1 (zh) 一种cdn路由实现方法和系统
US9674283B2 (en) Method for solving coherency lock issues in proxy services
CN110913011B (zh) 会话保持方法、会话保持装置、可读存储介质及电子设备
CN112087412B (zh) 一种基于唯一令牌的服务访问处理方法及装置
WO2009024030A1 (fr) Procédé d'enregistrement d'utilisateur, système, terminal et serveur basés sur un protocole d'initiation de session
WO2015172629A1 (zh) 一种消息传输的方法、装置及系统
US20150074234A1 (en) Content system and method for chunk-based content delivery
WO2018093425A1 (en) Enabling connections in a content centric network
WO2012088934A1 (zh) 一种报文过滤方法和交换设备
WO2017136979A1 (zh) 一种远程访问的实现方法、装置和系统
WO2012119537A1 (zh) 业务处理方法及系统、机顶盒
JP2014514670A (ja) コンピュータ・ネットワーク内のサーバにアクセスするサーバ、システム、方法、コンピュータ・プログラム、およびコンピュータ・プログラム製品
TWI727268B (zh) 用於實體鏈接分析的接入裝置及其方法
JP2023537468A (ja) 間接通信のためのネットワークノード及びネットワークノードにおける方法
WO2018090865A1 (zh) 网络设备的注册方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10843699

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10843699

Country of ref document: EP

Kind code of ref document: A1