WO2011153908A1 - 一种实现域名解析代理功能的装置和方法 - Google Patents

一种实现域名解析代理功能的装置和方法 Download PDF

Info

Publication number
WO2011153908A1
WO2011153908A1 PCT/CN2011/074927 CN2011074927W WO2011153908A1 WO 2011153908 A1 WO2011153908 A1 WO 2011153908A1 CN 2011074927 W CN2011074927 W CN 2011074927W WO 2011153908 A1 WO2011153908 A1 WO 2011153908A1
Authority
WO
WIPO (PCT)
Prior art keywords
dns
request
dns server
server
domain name
Prior art date
Application number
PCT/CN2011/074927
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 中兴通讯股份有限公司
Priority to RU2012155837/08A priority Critical patent/RU2527756C1/ru
Priority to EP11791899.5A priority patent/EP2566107A4/en
Publication of WO2011153908A1 publication Critical patent/WO2011153908A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • H04L12/2818Controlling appliance services of a home automation network by calling their functionalities from a device located outside both the home and the home network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/59Network arrangements, protocols or services for addressing or naming using proxies for addressing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Definitions

  • the present invention relates to the field of home gateway services, and in particular, to an apparatus and method for implementing a domain name resolution proxy function. Background technique
  • the requirements for the domain name resolution proxy function are high due to the differences in networking and the combination of multiple DNS servers supported by multiple routes.
  • the implementation of the domain name resolution proxy function uses the practice of polling all DNS servers. After receiving a DNS request packet from the attached device, the home gateway sends a packet to all DNS servers. This practice is not efficient and there is a problem of low accuracy.
  • an apparatus for implementing a domain name resolution proxy function including:
  • a DNS request receiving determining unit configured to receive a DNS request of a Domain Name System (DNS) requester, and determine whether the DNS request is a repeated request;
  • DNS Domain Name System
  • the DNS request sending and receiving unit when determining that the DNS request is not a duplicate request, sequentially sends a DNS request message to the DNS server in the DNS server list for a fixed period of time, and waits for receiving the DNS server to return after a waiting time less than or equal to a fixed duration.
  • Request response when determining that the DNS request is not a duplicate request, sequentially sends a DNS request message to the DNS server in the DNS server list for a fixed period of time, and waits for receiving the DNS server to return after a waiting time less than or equal to a fixed duration.
  • the DNS request response delivery unit transmits a valid request response received within the waiting time to the DNS requester;
  • the DNS server list adjustment unit reduces the priority of the DNS server in the DNS server list to a minimum if it does not receive a request response from a DNS server within the waiting time.
  • a method for implementing a domain name resolution proxy function comprising the steps of:
  • the DNS request packet is sent to the DNS server in the DNS server list in a fixed duration, and waits for the request response received by the DNS server to be received within a waiting time of less than or equal to a fixed duration;
  • the request response is passed to the DNS requester
  • the invention can accurately and quickly respond to the DNS request of the device connected to the home gateway by repeating the request determination and the available DNS server, thereby greatly improving the DNS resolution efficiency and satisfying the family.
  • FIG. 1 is a flowchart of domain name update on a home gateway according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of an apparatus on a home gateway according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of implementing a domain name resolution proxy function on a home gateway according to an embodiment of the present invention
  • FIG. 4 is an example of implementing a domain name resolution proxy on a home gateway according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a domain name update on a home gateway according to an embodiment of the present invention.
  • the home gateway includes a Wan connection module, a DNS configuration management module, a DNS function module, a DNS configuration management module, and a DNS function module.
  • DNS file interface As shown in FIG. 1, the home gateway includes a Wan connection module, a DNS configuration management module, a DNS function module, a DNS configuration management module, and a DNS function module.
  • the Wan connection module adds or deletes the DNS connection corresponding to the route connected to it by sending a message to the DNS configuration management module to add or delete the corresponding DNS server.
  • the DNS configuration management module is configured to receive a message of adding or deleting the DNS server of the Wan connection module, update and maintain the DNS server information, and update the update result to the DNS file interface.
  • the DNS server information includes an IP address of a DNS server.
  • the DNS file interface is a file interface between the DNS configuration management module and the DNS function module.
  • the DNS function module obtains the latest DNS server information through the DNS file interface, and builds a list of maintained DNS servers.
  • FIG. 2 is a schematic structural diagram of a device according to an embodiment of the present invention. As shown in FIG. 2, the device includes a Wan connection module, a DNS configuration management module, a DNS file interface, and a DNS function module.
  • the Wan connection module sends a message to the DNS configuration management module to send or delete a corresponding DNS server according to the addition or deletion of the route connected to the Wan connection module.
  • the DNS configuration management module receives the DNS server sent by the Wan connection module. Or delete the message to update the DNS server information, and update the updated DNS server information to the DNS file interface for reading by the DNS server list adjustment unit in the DNS function module to perform the DNS server list update operation.
  • the DNS function module is responsible for implementing the DNS resolution proxy function on the home gateway, and includes a DNS request receiving and determining unit, a DNS request sending and receiving unit, a DNS server list adjusting unit, and a DNS request response transmitting unit.
  • the domain name resolution proxy method on the home gateway of the present invention includes the following steps:
  • the DNS request receiving determining unit parses the obtained DNS request, where the request includes the requested DNS and the server information requesting the DNS, if the requested DNS and the server information requesting the DNS are If the saved information is the same, it is determined that the DNS request is a repeated request, and the DNS request sending and receiving unit does not receive the DNS request and the sending command of the connected DNS request receiving and determining unit, and does not adjust the unit to the DNS server list.
  • the DNS server in the DNS server list sends a DNS request; otherwise, if it is not a duplicate request, the DNS request receiving determination unit sequentially sends a DNS request to the DNS server recorded in the connected DNS server list for a fixed period of time, and is less than or equal to Waiting for a DNS request response from the DNS server during a fixed duration of waiting time;
  • the above-mentioned DNS requester may be a home gateway device, such as a personal computer, or an application that requires a DNS request locally, such as a Simple Network Time Protocol (SNTP).
  • SNTP Simple Network Time Protocol
  • the DNS server list adjusting unit receives the DNS server information output by the connected DNS request sending and receiving unit, and minimizes the priority of the DNS server. That is, the DNS server is placed at the end of the DNS server list, and is finally considered when processing DNS requests.
  • the request response message is transmitted to the DNS request response transmitting unit, and the DNS request response transmitting unit parses the DNS request response message. If the field marked with AA in the header field of the packet is 1, it is determined that the DNS server is an authoritative server, and if the request response of the authoritative server is received, the response is taken as the priority, and the request response is sent to the DNS requester, and the DNS is notified.
  • the requesting transceiver unit stops sending DNS requests to the DNS servers behind the server in other DNS server lists. If the field marked with AA in the header field of the packet is 0, it is determined that the DNS server is not an authoritative server, and the request response needs to be further parsed.
  • the request response is sent to the DNS requester, and the DNS request is sent and received.
  • the unit stops sending DNS requests to DNS servers behind the server in other DNS server lists. Otherwise, continue to send DNS requests to the DNS server behind the server in the DNS list.
  • FIG. 3 is a flowchart of implementing a DNS resolution proxy function on a home gateway according to an embodiment of the present invention. As shown in FIG. 3, the method includes the following steps:
  • Step S301 The DNS request reception determining unit receives the DNS requester's DNS request.
  • Step S302 The DNS request reception determining unit determines whether the DNS request is a duplicate DNS request.
  • the DNS request transceiving unit does not send a DNS request to the DNS server in the DNS server list, and waits to receive the next DNS request; if it is not a duplicate request, proceeds to step S303.
  • Step S303 The DNS request transceiving unit starts from the first DNS server in the DNS server list, and sequentially sends the DNS to the DNS server in the DNS server list in a fixed duration. request.
  • Step S304 The DNS request transceiving unit waits for a request response of the receiving DNS server within a waiting time of less than or equal to a fixed duration.
  • step S305 is performed, and a DNS request is sent to the next DNS server in the DNS server list; if a request response is received, then step S306 is performed.
  • Step S305 The DNS server list adjusting unit receives the DNS server information sent by the DNS request sending and receiving unit about the non-response request, and minimizes the priority of the DNS server in the DNS server list, that is, puts the record of the DNS server into The last side of the list.
  • Step S306 The DNS request response delivery unit parses the request response message, and determines whether the request response is an authoritative server.
  • step S308 is performed; if the requesting response is not the authoritative server, step S307 is performed.
  • Step S307 The request response processing unit determines whether the request response parsing is correct.
  • step S308 If the DNS request response is parsed correctly, proceed to step S308; if not, continue to send DNS requests to other DNS servers.
  • Step S308 The DNS request response delivery unit transmits the DNS request response to the DNS requester, and notifies the DNS request transceiver unit to stop sending the DNS request to the DNS server behind the server in the other DNS server list.
  • FIG. 4 shows an example of implementing a DNS resolution proxy on a home gateway according to an embodiment of the present invention.
  • three DNS server records maintained by the DNS server list adjustment unit in the DNS function module are respectively corresponding to the DNS server.
  • 1 DNS record 1 DNS record 1 corresponding to DNS server 2
  • DNS record 3 corresponding to DNS server 3.
  • the domain name resolution agent process is as follows:
  • the DNS requester sends a DNS request to the home gateway, and the DNS function module of the home gateway receives and determines that the DNS request is not a duplicate request.
  • the DNS function module sends request messages to the three DNS servers in sequence according to the fixed duration. First, the DNS server 1 sends a request message to the DNS server 1 for a fixed time duration, and waits for the DNS request response of the DNS server 1.
  • DNS server list adjustment unit minimizes the priority of the first DNS server.
  • the DNS function module receives and parses the request response of the DNS server 2, confirms that the response is correct or confirms that the DNS server 2 that responded to the request is an authoritative server, terminates sending a DNS request to the DNS server 3, and the request ends.
  • the DNS function module sends a request response analysis result to the DNS requester.
  • the present invention satisfies the repeated requests, and identifies available DNS servers and authoritative servers to accurately and quickly respond to DNS requests from the home gateway to meet the DNS resolution proxy requirements of the complex routing network on the home gateway.
  • the waste of resources caused by repeated DNS requests is avoided, and because a DNS server is unavailable or disabled, the DNS server is still at the forefront of all DNS servers, and the request message is first unavailable to the DNS server.
  • the query time wasted due to deactivation of the server which greatly improved the efficiency of DNS resolution.

Abstract

本发明公开了一种实现域名解析代理功能的装置,装置中的DNS服务器列表调整单元用于若在等待时间内没有收到DNS服务器的请求响应,则把DNS服务器在DNS服务器列表中的优先级降为最低。本发明还公开了一种实现域名解析代理功能的方法,该方法包括:如果DNS请求不是重复请求,则按固定时长依次向DNS服务器列表中的DNS服务器发送DNS请求报文;若在等待时间内收到有效的请求响应,则把请求响应传递给DNS请求者;若在等待时间内没有收到DNS服务器的请求响应,则把DNS服务器在DNS服务器列表中的优先级降为最低。采用本发明,可以准确和快速的响应家庭网关下挂设备的DNS请求,大幅提升DNS解析效率。

Description

一种实现域名解析代理功能的装置和方法 技术领域
本发明涉及家庭网关业务领域, 特别涉及一种实现域名解析代理功能 的装置和方法。 背景技术
随着互联网及其应用技术的不断发展, 人们利用互联网可以开展越来 越丰富的应用与服务, 伴随这些业务的日益丰富, 对于家庭网关上复杂组 网配置的要求也就越来越高, 特别是具备支持多个路由 Wan连接的组网要 求, 逐渐成为家庭网关的配置主流。 结合路由 Wan连接的使用, 和网关下 挂设备经常涉及到的上网、 网络电视、 视频监控等各种业务, 都不可避免 的要涉及到网关上的域名解析代理功能。
在实际开展家庭网关上的业务时, 由于组网的差异性, 以及支持多个 路由 Wan连接带来的多个 DNS服务器组合情况,对于域名解析代理功能的 要求会很高。 目前, 域名解析代理功能的实现釆用轮询所有 DNS服务器的 做法, 即家庭网关收到下挂设备的一个 DNS请求报文后, 向所有 DNS服 务器发包。 这种做法效率不高, 而且存在准确性不高的问题。
例如其中某个 DNS服务器不可用, 但该 DNS服务器排在所有 DNS服 务器的最前列, 则每次请求报文都首先向该不可用 DNS服务器发出, 浪费 查询效率; 再如某个 DNS服务器突然停用, 也会出现上述情况; 再如如何 更高效的利用各个 DNS服务器, 现有技术中一般都不涉及, 而本发明将重 点解决这些问题。 发明内容
本发明的目的在于提供一种实现域名解析代理功能的方法和装置, 以 解决目前家庭网关上域名解析代理功能时效率低、 准确性不高的问题。
根据本发明的一个方面, 提供了一种实现域名解析代理功能的装置, 包括:
DNS请求接收判断单元, 用于接收域名(Domain Name System, DNS) 请求者的 DNS请求,并判断所述 DNS请求是否为一个重复的请求;
DNS请求收发单元, 在判断所述 DNS请求不是重复请求时,按固定时 长依次向 DNS服务器列表中的 DNS服务器发送 DNS请求报文, 并在小于 等于固定时长的等待时间内, 等待接收 DNS服务器返回的请求响应;
DNS 请求响应传递单元, 把等待时间内收到的有效请求响应传递给 DNS请求者;
DNS服务器列表调整单元,若在等待时间内没有收到某一 DNS服务器 的请求响应, 则把该 DNS服务器在 DNS服务器列表中的优先级降为最低。
根据本发明的另一方面, 提供了一种实现域名解析代理功能的方法, 包括以下步骤:
接收 DNS请求者的 DNS请求,并判断所述 DNS请求是否为一个重复的 请求;
如果不是重复请求, 则按固定时长依次向 DNS服务器列表中的 DNS 服务器发送 DNS请求报文, 并在小于等于固定时长的等待时间内, 等待接 收 DNS服务器返回的请求响应;
若在等待时间内收到有效的请求响应, 则把请求响应传递给 DNS请求 者;
若在等待时间内没有收到某一 DNS服务器的请求响应, 则把该 DNS 服务器在 DNS服务器列表中的优先级降为最低。 与现有技术相比, 本发明的有益效果在于: 本发明通过重复请求判定 和可用 DNS服务器识另' 可以准确和快速的响应家庭网关下挂设备的 DNS 请求, 大幅提升 DNS解析效率, 满足家庭网关上复杂路由组网的域名解析 代理需求。 附图说明
图 1是本发明实施例提供的家庭网关上域名更新流程图;
图 2是本发明实施例提供的家庭网关上的装置结构示意图;
图 3是本发明实施例提供的家庭网关上实现域名解析代理功能流程图; 图 4是本发明实施例提供的家庭网关上实现域名解析代理的示例。 具体实施方式
以下结合附图对本发明的优选实施例进行详细说明, 应当理解, 以下 所说明的优选实施例仅用于说明和解释本发明, 并不用于限制本发明。
图 1 显示了本发明实施例提供的家庭网关上域名更新流程图, 如图 1 所示, 家庭网关包括 Wan连接模块、 DNS配置管理模块、 DNS功能模块、 DNS配置管理模块和 DNS功能模块之间的 DNS文件接口。
Wan连接模块根据与其相连的路由 Wan连接的增加或删除, 通过发送 消息通知 DNS配置管理模块该路由 wan连接对应的 DNS服务器增加或是 删除。
DNS配置管理模块用于接收所述 Wan连接模块的 DNS服务器增加或 是删除的消息, 更新和维护 DNS服务器信息, 并将更新结果更新到 DNS 文件接口中。 所述 DNS服务器信息包括 DNS服务器的 IP地址。
DNS文件接口是 DNS配置管理模块和 DNS功能模块之间的文件接口。 DNS功能模块通过 DNS文件接口获得最新的 DNS服务器信息, 构建 起维护的 DNS服务器列表。 如图 2显示了本发明实施例提供的装置结构示意图, 如图 2所示, 包 括 Wan连接模块、 DNS配置管理模块、 DNS文件接口、 DNS功能模块。
Wan连接模块根据与其相连的路由 Wan连接的增加或删除, 通过发送 消息通知 DNS配置管理模块该路由 wan连接对应的 DNS服务器增加或是 删除消息, DNS配置管理模块接收 Wan连接模块发送的 DNS服务器增加 或是删除消息更新 DNS服务器信息, 并把更新的 DNS服务器信息更新到 DNS文件接口中, 供 DNS功能模块中的 DNS服务器列表调整单元读取, 以便执行 DNS服务器列表更新操作。
DNS功能模块负责家庭网关上 DNS解析代理功能的实现,它包括 DNS 请求接收判断单元、 DNS请求收发单元、 DNS服务器列表调整单元、 DNS 请求响应传递单元。
本发明家庭网关上的域名解析代理方法包括以下步骤:
DNS请求接收判断单元接收到 DNS请求者的一个 DNS请求后, 解析 得到的 DNS请求, 该请求中包含请求的 DNS和请求 DNS的服务器信息, 如果所述请求的 DNS和请求 DNS的服务器信息与之前已保存的信息相同, 则判断该 DNS请求是一个重复的请求, 所述 DNS请求收发单元不会收到 相连的 DNS请求接收和判断单元的 DNS请求和发送命令, 不向 DNS服务 器列表调整单元内 DNS服务器列表中的 DNS服务器发送 DNS请求;否则, 如果不是重复的请求, 则所述 DNS请求接收判断单元按固定时长依次向相 连的 DNS服务器列表中记录的 DNS服务器发送 DNS请求, 并在小于等于 固定时长的等待时间内, 等待 DNS服务器的 DNS请求响应;
上述 DNS请求者, 可以是家庭网关下挂设备, 如个人计算机, 也可以 是家庭网关本地的需要 DNS请求的应用, 如简单网络时间协议(SNTP, Simple Network Time Protocol )等。
如果存在一个 DNS服务器在等待时间内未响应请求, 即 DNS请求收 发单元在等待时间内没有收到某一 DNS服务器的请求响应, 则 DNS服务 器列表调整单元将收到相连的 DNS请求收发单元输出的该 DNS服务器信 息,并将该 DNS服务器的优先级降为最低,即把该 DNS服务器放置在 DNS 服务器列表的尾部, 在处理 DNS请求时最后考虑。
如果 DNS请求收发单元在等待时间内收到某一 DNS服务器的请求响 应, 则把请求响应报文传送到 DNS请求响应传递单元, 由 DNS请求响应 传递单元解析该 DNS请求响应报文。 如果该报文首部字段中标志为 AA的 字段为 1 , 则判断该 DNS服务器为权威服务器, 收到权威服务器的请求响 应, 则以该响应为准, 向 DNS请求者发送请求响应, 并通知 DNS请求收 发单元停止向其他 DNS服务器列表中在该服务器之后的 DNS服务器发送 DNS请求。如果该报文的首部字段中标志为 AA的字段为 0,则判断该 DNS 服务器不是权威服务器, 需要进一步解析请求响应, 如果解析结果正确, 则向 DNS请求者发送请求响应,并通知 DNS请求收发单元停止向其他 DNS 服务器列表中在该服务器之后的 DNS服务器发送 DNS请求。 否则, 继续 向 DNS列表中在该服务器之后的 DNS服务器发送 DNS请求。
图 3显示了本发明实施例提供的家庭网关上实现 DNS解析代理功能流 程图, 如图 3所示, 包括以下步骤:
步骤 S301: DNS请求接收判断单元接收 DNS请求者的 DNS请求。 步骤 S302: DNS请求接收判断单元判断该 DNS请求是否为一个重复 的 DNS请求。
如果是重复请求,则 DNS请求收发单元不向 DNS服务器列表中的 DNS 服务器发送 DNS请求, 并等待接收下一个 DNS请求; 如果不是重复请求, 则进行步骤 S303。
步骤 S303: DNS请求收发单元从 DNS服务器列表中的第一个 DNS服 务器开始, 以固定时长依次向 DNS服务器列表中的 DNS服务器发送 DNS 请求。
步骤 S304: DNS请求收发单元在小于等于固定时长的等待时间内等待 接收 DNS服务器的请求响应。
如果没有接收到请求响应, 则进行步骤 S305 , 并向 DNS服务器列表中 的下一个 DNS服务器发送 DNS请求;如果收到请求响应,则进行步骤 S306。
步骤 S305: DNS服务器列表调整单元接收 DNS请求收发单元发送的 关于没有响应请求的 DNS服务器信息, 并在 DNS服务器列表中把该 DNS 服务器的优先级降为最低,即把该 DNS服务器的记录放入列表中的最后面。
步骤 S306: DNS请求响应传递单元解析请求响应报文, 判断发出请求 响应的是否为权威服务器。
如果发出请求响应的是权威服务器, 则进行步骤 S308; 如果发出请求 响应的不是权威服务器, 则进行步骤 S307。
步骤 S307: 请求响应处理单元判断请求响应解析是否正确。
如果 DNS请求响应解析正确, 则进行步骤 S308; 如果无效, 则继续向 其它 DNS服务器发送 DNS请求。
步骤 S308: 通过 DNS请求响应传递单元把 DNS请求响应传递给 DNS 请求者, 并通知 DNS请求收发单元停止向其他 DNS服务器列表中在该服 务器之后的 DNS服务器发送 DNS请求。
如图 4显示了本发明实施例提供的家庭网关上实现 DNS解析代理示 例, 如图 4所示, 假设 DNS功能模块中 DNS服务器列表调整单元维护的 DNS服务器记录有 3个, 分别是对应 DNS服务器 1的 DNS记录 1、 对应 DNS服务器 2的 DNS记录 2、 对应 DNS服务器 3的 DNS记录 3。 域名解 析代理过程如下:
DNS请求者向家庭网关发送 DNS请求, 家庭网关的 DNS功能模块接 收并判断该 DNS请求不是重复的请求。 DNS功能模块按照固定时长, 依次向三个 DNS服务器发送请求报文, 首先向 DNS服务器 1发出请求报文, 在小于等于固定时长的等待时间内等 待 DNS服务器 1的 DNS请求响应。
在等待时间内, 如果 DNS服务器 1未响应请求, 则向 DNS服务器 2 发出请求, 同时 DNS服务器列表调整单元将第一个 DNS服务器的优先级 降到最低。
在等待时间内, DNS功能模块收到并解析 DNS服务器 2的请求响应, 确认响应正确或确认响应请求的 DNS服务器 2是权威服务器后, 终止向 DNS服务器 3发送 DNS请求, 请求结束。
DNS功能模块向 DNS请求者发送请求响应解析结果。
综上所述, 本发明通过判断重复请求, 以及识别可用的 DNS服务器和 权威服务器, 准确和快速响应家庭网关下挂设备的 DNS请求, 满足家庭网 关上复杂路由组网的 DNS解析代理需求, 避免了重复发送 DNS请求造成 的资源浪费, 同时避免了因某个 DNS服务器不可用或停用, 但该 DNS服 务器仍排在所有 DNS服务器的最前列, 请求报文每次都首先向该不可用或 停用服务器发出而导致的查询时间浪费, 从而大幅提升 DNS解析效率。
尽管上文对本发明进行了详细说明, 但是本发明不限于此, 本技术领 域技术人员可以根据本发明的原理进行各种修改。 因此, 凡按照本发明原 理所做的修改, 都应当理解为落入本发明的保护范围。

Claims

权利要求书
1、 一种实现域名解析代理功能的装置, 其特征在于, 该装置包括: 域 名 (DNS )请求接收判断单元、 DNS请求收发单元、 DNS请求响应传递单 元、 DNS服务器列表调整单元; 其中,
DNS请求接收判断单元, 用于接收 DNS请求者的 DNS请求, 并判断 所述 DNS请求是否为一个重复的请求;
DNS请求收发单元, 用于在判断所述 DNS请求不是重复请求时,按固 定时长依次向 DNS服务器列表中的 DNS服务器发送 DNS请求报文, 并在 小于等于固定时长的等待时间内, 等待接收 DNS服务器返回的请求响应;
DNS请求响应传递单元, 用于把所述等待时间内收到的有效请求响应 传递给 DNS请求者;
DNS服务器列表调整单元,用于若在所述等待时间内没有收到 DNS服 务器的请求响应, 则把所述 DNS服务器在 DNS服务器列表中的优先级降 为最低。
2、根据权利要求 1所述的实现域名解析代理功能的装置,其特征在于, 该装置还包括: 广域网 (Wan )连接模块、 DNS配置管理模块、 DNS文件 接口; 其中,
广域网 (Wan )连接模块, 用于根据与其相连的路由 Wan连接的增加 或删除, 通过消息通知 DNS配置管理模块所述 Wan连接对应的 DNS服务 器的增加或删除;
DNS配置管理模块, 用于收到 DNS服务器的增加或删除的消息, 更新 和维护 DNS服务器信息, 并将其写入 DNS文件接口中;
DNS文件接口, 用于接收更新 DNS服务器信息, 供所述 DNS服务器 列表调整单元读取, 执行 DNS服务器列表更新操作。
3、 一种实现域名解析代理功能的方法, 其特征在于, 该方法包括: 接收 DNS请求者的 DNS请求, 并判断所述 DNS请求是否为一个重复 的请求;
如果不是重复请求, 则按固定时长依次向 DNS服务器列表中的 DNS 服务器发送 DNS请求报文, 并在小于等于固定时长的等待时间内, 等待接 收 DNS服务器返回的请求响应;
若在所述等待时间内收到有效的请求响应, 则把请求响应传递给 DNS 请求者;
若在所述等待时间内没有收到 DNS服务器的请求响应,则把所述 DNS 服务器在 DNS服务器列表中的优先级降为最低。
4、根据权利要求 3所述的实现域名解析代理功能的方法,其特征在于, 所述 DNS服务器列表中 DNS服务器更新时, 该方法还包括:
根据与 Wan连接模块相连的路由 Wan连接的增加或删除,通过消息通 知 DNS配置管理模块该 Wan连接对应的 DNS服务器的增加或删除;
接收 DNS服务器的增加或删除的消息, 更新和维护 DNS服务器信息, 并将其写入 DNS文件接口中;
接收更新 DNS服务器信息, 供 DNS服务器列表调整单元读取, 执行 DNS服务器列表更新操作。
5、根据权利要求 3所述的实现域名解析代理功能的方法,其特征在于, 所述 DNS请求中包含请求的 DNS和请求 DNS的服务器源地址信息, 用于 判断重复请求。
6、根据权利要求 5所述的实现域名解析代理功能的方法,其特征在于, 该方法还包括: 所述请求的 DNS和请求 DNS的服务器源地址信息与保存 的信息相同时, 判定 DNS请求是重复请求, 则不向 DNS服务器列表中的 DNS服务器发送 DNS请求。
7、根据权利要求 3所述的实现域名解析代理功能的方法,其特征在于, 所述有效的请求响应包括解析结果正确的请求响应和权威服务器发送的请 求响应。
8、根据权利要求 7所述的实现域名解析代理功能的方法,其特征在于, 该方法还包括: DNS请求响应传递单元接收到有效的请求响应后, DNS请 求发送单元停止向其它 DNS服务器发送 DNS请求。
PCT/CN2011/074927 2010-06-07 2011-05-30 一种实现域名解析代理功能的装置和方法 WO2011153908A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
RU2012155837/08A RU2527756C1 (ru) 2010-06-07 2011-05-30 Устройство и способ для выполнения функции агента разрешения dns
EP11791899.5A EP2566107A4 (en) 2010-06-07 2011-05-30 DEVICE AND METHOD FOR ACTIVATING A DOMAIN NAME RESOLUTION AGENT

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010192965.7A CN101841577B (zh) 2010-06-07 2010-06-07 一种实现域名解析代理功能的方法和装置
CN201010192965.7 2010-06-07

Publications (1)

Publication Number Publication Date
WO2011153908A1 true WO2011153908A1 (zh) 2011-12-15

Family

ID=42744696

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/074927 WO2011153908A1 (zh) 2010-06-07 2011-05-30 一种实现域名解析代理功能的装置和方法

Country Status (4)

Country Link
EP (1) EP2566107A4 (zh)
CN (1) CN101841577B (zh)
RU (1) RU2527756C1 (zh)
WO (1) WO2011153908A1 (zh)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841577B (zh) * 2010-06-07 2015-01-28 中兴通讯股份有限公司 一种实现域名解析代理功能的方法和装置
CN102143243B (zh) * 2010-10-28 2014-01-08 华为终端有限公司 动态路由处理方法和装置及其家庭网关
CN104065761A (zh) * 2011-09-29 2014-09-24 北京奇虎科技有限公司 应用服务器选取方法和网络连接方法
CN103957283A (zh) * 2011-09-29 2014-07-30 北京奇虎科技有限公司 一种域名系统dns的最优应用服务器选取方法和装置
CN102572014B (zh) * 2012-03-07 2015-12-02 华为终端有限公司 消息处理方法、装置和系统
GB2513796B (en) * 2012-11-05 2020-06-17 Pismo Labs Technology Ltd Methods and gateways for processing DNS request
US10142282B2 (en) 2012-11-05 2018-11-27 Pismo Labs Technology Limited Methods and gateways for processing DNS request
CN102957709A (zh) * 2012-12-05 2013-03-06 广东佳和通信技术有限公司 一种融合通信系统中客户端高效检查可用服务器的方法及系统
CN103051740B (zh) * 2012-12-13 2016-04-20 上海牙木通讯技术有限公司 域名解析方法、dns服务器及域名解析系统
CN103973827A (zh) * 2013-02-05 2014-08-06 中国移动通信集团公司 一种域名解析方法及装置
CN105453488B (zh) 2014-04-22 2019-01-18 柏思科技有限公司 用于处理dns请求的方法和系统
CN103929507B (zh) * 2014-04-28 2017-10-10 广东睿江云计算股份有限公司 一种实现可离线化dns服务的方法及装置
CN103929508A (zh) * 2014-05-04 2014-07-16 上海大亚科技有限公司 实现业务与域名解析服务器绑定的系统及方法
CN103973834B (zh) * 2014-05-12 2017-07-25 重庆邮电大学 一种基于家庭网关的dns域名解析加速方法及装置
CN106210156B (zh) * 2015-04-29 2019-07-23 阿里巴巴集团控股有限公司 解析任务的处理方法、装置及服务器
CN106657426A (zh) * 2015-11-04 2017-05-10 中兴通讯股份有限公司 域名解析请求的处理方法、装置及服务器
JP6861219B2 (ja) * 2016-03-09 2021-04-21 ダイナミック・ネットワーク・サービシーズ・インコーポレイテッドDynamic Network Services, Inc. インテリジェントドメインネームシステム転送のための方法および装置
CN106850813A (zh) * 2017-02-14 2017-06-13 合网络技术(北京)有限公司 网络服务地址切换方法及装置
CN107528862B (zh) * 2017-10-23 2021-04-30 京东数字科技控股有限公司 域名解析的方法及装置
CN108040134A (zh) * 2017-12-06 2018-05-15 杭州迪普科技股份有限公司 一种dns透明代理的方法及装置
CN109660425B (zh) * 2018-12-13 2021-05-18 网宿科技股份有限公司 一种监控方法、确定方法、监控设备及存储介质
CN112671910B (zh) * 2020-12-25 2023-03-24 深圳网基科技有限公司 Dns转发服务器的优化选取方法及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030055979A1 (en) * 2001-09-19 2003-03-20 Cooley William Ray Internet domain name resolver
CN1599346A (zh) * 2004-08-11 2005-03-23 重庆大学 一种基于域名的对等网络体系结构实现方法
JP2007214671A (ja) * 2006-02-07 2007-08-23 Seiko Epson Corp クライアント装置およびプログラム
CN101272407A (zh) * 2008-04-28 2008-09-24 杭州华三通信技术有限公司 域名系统的缓存探测方法、缓存探测装置和探测响应装置
CN101841577A (zh) * 2010-06-07 2010-09-22 中兴通讯股份有限公司 一种实现域名解析代理功能的方法和装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7725602B2 (en) * 2000-07-19 2010-05-25 Akamai Technologies, Inc. Domain name resolution using a distributed DNS network
US6795858B1 (en) * 2000-12-29 2004-09-21 Cisco Technology, Inc. Method and apparatus for metric based server selection
US7418509B2 (en) * 2001-11-13 2008-08-26 Nokia Corporation Method and apparatus for a distributed server tree
CN100403737C (zh) * 2006-05-16 2008-07-16 杭州华三通信技术有限公司 选择语音路由的方法和语音网关
US7720954B2 (en) * 2006-08-03 2010-05-18 Citrix Systems, Inc. Method and appliance for using a dynamic response time to determine responsiveness of network services
US7865585B2 (en) * 2007-03-12 2011-01-04 Citrix Systems, Inc. Systems and methods for providing dynamic ad hoc proxy-cache hierarchies

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030055979A1 (en) * 2001-09-19 2003-03-20 Cooley William Ray Internet domain name resolver
CN1599346A (zh) * 2004-08-11 2005-03-23 重庆大学 一种基于域名的对等网络体系结构实现方法
JP2007214671A (ja) * 2006-02-07 2007-08-23 Seiko Epson Corp クライアント装置およびプログラム
CN101272407A (zh) * 2008-04-28 2008-09-24 杭州华三通信技术有限公司 域名系统的缓存探测方法、缓存探测装置和探测响应装置
CN101841577A (zh) * 2010-06-07 2010-09-22 中兴通讯股份有限公司 一种实现域名解析代理功能的方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2566107A4 *

Also Published As

Publication number Publication date
EP2566107A1 (en) 2013-03-06
CN101841577A (zh) 2010-09-22
EP2566107A4 (en) 2014-11-26
RU2012155837A (ru) 2014-07-20
RU2527756C1 (ru) 2014-09-10
CN101841577B (zh) 2015-01-28

Similar Documents

Publication Publication Date Title
WO2011153908A1 (zh) 一种实现域名解析代理功能的装置和方法
US8458250B2 (en) Request routing using network computing components
WO2022057318A1 (zh) 拉流请求处理方法、装置、系统、电子设备和存储介质
US9401885B2 (en) Data push service method and system using data pull model
JP4758362B2 (ja) 中継装置、プログラム及び中継方法
JP4755683B2 (ja) ピア・ツー・ピア(p2p)・ネットワークを効率的に拡張するための方法、装置、およびプログラム
TWI535255B (zh) 一種發送業務請求訊息的方法及裝置
WO2015003566A1 (zh) 组播域名系统中报文传输的方法、装置及系统
US7958195B2 (en) Method and apparatus for improving data transfers in peer-to-peer networks
WO2009018418A2 (en) Systems, methods, and computer program products for distributing application or higher layer communications network signaling entity operational status information among session initiation protocol (sip) entities
WO2009039745A1 (fr) Procédé, appareil et système de traitement de données
WO2011069387A1 (zh) 一种网络节点及其数据查询方法和索引更新方法
WO2013104237A1 (zh) 内容分发的方法、装置及接入网设备
WO2011017976A1 (zh) 媒体服务方法及系统
WO2019100831A1 (zh) 传输层协议适配的方法、网元设备及系统
WO2012075970A1 (zh) 一种获取媒体内容的方法、设备及系统
CN101567769A (zh) 数据重传方法、系统及对等节点
WO2012072045A1 (zh) 一种cdn网络中的数据传输方法、网络节点及系统
WO2009059525A1 (fr) Méthode, dispositif et système de demande et de réponse dans un réseau de recouvrement p2p
WO2009015587A1 (fr) Procédé, système et appareil de routage soap
JP2009163698A (ja) ストリーミングサービスのシステムと方法
WO2019100912A1 (zh) 数据分发方法以及分发服务器
WO2013083085A1 (zh) 数据获取方法及装置
US20110293080A1 (en) Communication system, processing apparatus, and communication method in communication system
WO2010022671A1 (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: 11791899

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2011791899

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2012155837

Country of ref document: RU

Kind code of ref document: A