WO2014206118A1 - Domain name resolution method based on tcp protocol in mobile internet and dns server - Google Patents

Domain name resolution method based on tcp protocol in mobile internet and dns server Download PDF

Info

Publication number
WO2014206118A1
WO2014206118A1 PCT/CN2014/073640 CN2014073640W WO2014206118A1 WO 2014206118 A1 WO2014206118 A1 WO 2014206118A1 CN 2014073640 W CN2014073640 W CN 2014073640W WO 2014206118 A1 WO2014206118 A1 WO 2014206118A1
Authority
WO
WIPO (PCT)
Prior art keywords
domain name
name resolution
dns
dns server
result
Prior art date
Application number
PCT/CN2014/073640
Other languages
French (fr)
Chinese (zh)
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 WO2014206118A1 publication Critical patent/WO2014206118A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • 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/58Caching of addresses or names

Definitions

  • the present invention relates to the field of DNS service technologies, and in particular, to a mobile Internet domain name resolution method and a DNS server based on a TCP protocol.
  • DNS Domain Name System
  • IP Internet Protocol
  • the user When the user accesses the webpage, the user first requests the DNS server to resolve the domain name of the webpage to be accessed, obtains the IP address corresponding to the webpage domain name, and then the browser requests the IP address to establish a connection and obtain the content. For example, if the user requests to visit the webpage of www.uc.cn, the DNS server is first requested to parse the domain name www.uc.cn, and the IP address of the domain name is 61.145.135.221, and then the browser requests the IP address of 61.145.135.221, thereby The web page establishes a connection and gets the content.
  • the existing server's DNS server is based on the User Datagram Protocol (UDP) protocol. The communication is performed under good network quality. The communication is more efficient.
  • UDP User Datagram Protocol
  • the traditional DNS server can only return one line query result. If the line does not query the IP address corresponding to the domain name of the page to be parsed, the browser will display the query, which may result in the user not accessing the corresponding web page.
  • the main object of the present invention is to provide a mobile Internet domain name resolution method and a DNS server based on the TCP protocol, so as to solve the problem that a mobile terminal such as a mobile terminal and a browser device of a mobile device are issued due to poor network quality loss in the mobile Internet.
  • the request data cannot reach the DNS server normally or the browser cannot receive the DNS server response result properly, so as to improve the availability and stability of the DNS server during web browsing.
  • a mobile internet domain name resolution method based on a TCP protocol is provided, the method comprising:
  • the DNS server receives the domain name resolution request sent by the mobile terminal browser through the TCP protocol;
  • the DNS server determines that the domain name resolution result does not match the domain name resolution request, and initiates a domain name resolution request to the cache server group of the at least one region;
  • the DNS server receives the domain name resolution result returned by the public network DNS sent by the cache server group;
  • the DNS server selects the domain name resolution result and returns it to the mobile terminal browser.
  • the present invention further provides a mobile internet DNS server based on the TCP protocol, comprising: a domain name receiving unit, configured to receive a domain name resolution request sent by a mobile terminal browser through a TCP protocol; and a determining unit, configured to: Determining the domain name resolution result that is not matched with the domain name resolution request; the parsing result obtaining unit is configured to initiate a domain name resolution request to the cache server group of the at least one region; and the parsing result receiving unit is configured to receive the public network sent by the cache server group The domain name resolution result returned by the DNS; and the parsing result returning unit, which is used to select the domain name parsing result and return it to the mobile terminal browser.
  • the above-mentioned TCP-based mobile Internet domain name resolution method and DNS server according to the present invention can solve the problem of data packet loss caused by poor network quality in the mobile Internet, and avoid browsing of mobile terminal browser devices such as mobile phones existing in the prior art.
  • the request data sent by the device cannot reach the DNS server normally or the browser cannot receive the UDP result of the DNS server response normally, and can return the domain name resolution result of multiple lines, thereby improving the availability and stability of the DNS server during web browsing.
  • FIG. 1 is a schematic flowchart of a method for analyzing a domain name of a mobile Internet based on a TCP protocol according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a processing flow of a web interface on a server side according to an embodiment of the present invention
  • the UDP protocol is prone to packet loss in the case of poor network quality, which may result in the user not being able to obtain the DNS server resolution result.
  • the embodiment of the present invention provides a TCP-based DNS server in the mobile Internet. Through the link guarantee mechanism of the TCP protocol, the DNS server is not affected by the fluctuation of the mobile network environment, thereby improving the availability and stability of the DNS server during web browsing.
  • FIG. 1 is a schematic flowchart diagram of a method for analyzing a mobile Internet domain name based on a TCP protocol according to an embodiment of the present invention.
  • the method for analyzing a mobile Internet domain name based on the TCP protocol provided by the embodiment of the present invention includes:
  • the DNS server receives a domain name resolution request sent by the mobile terminal browser through the TCP protocol, where the DNS server is a DNS server in the TCP-based mobile internet;
  • step S120 determining, in the cache pool of the DNS server or the DNS database, that the domain name resolution result does not match the domain name requested to be resolved; wherein, in step S120, the DNS server first determines whether the cache database matches the domain name requested to be resolved. The result of domain name resolution, if the DNS server's cache library does not match the domain name requested for resolution. As a result of the domain name resolution, the DNS server initiates a query to the DNS database to determine whether the DNS database has a resolution matching the domain name requested to be resolved. If there is no matching domain name resolution in the DNS server cache database and the DNS database. The result proceeds to step S130, otherwise proceeds to step S150.
  • the DNS server initiates a domain name resolution request to the cache server group of the at least one area, where the cache server group initiates a domain name resolution request to the public network DNS through the route of different operators in the area;
  • the DNS server receives the domain name resolution result returned by the public network DNS sent by the cache server group.
  • the DNS server selects the domain name resolution result and returns it to the mobile terminal browser.
  • the mobile Internet domain name resolution method provided by the embodiment of the present invention communicates by using the TCP protocol, and utilizes the link guarantee mechanism of the TCP protocol, so that the DNS server is not affected by the fluctuation of the mobile network environment. This improves the stability of the DNS server and improves the user experience when browsing the web.
  • data exchange between the mobile terminal browser and the DNS server is implemented through a socket of java.
  • step S120 it is determined that the DNS server cache database or the DNS database does not have the domain name resolution result matching the domain name requested to be resolved, and the DNS server cache database or the DNS database may have a domain name matching the domain name requested to be resolved. Analyze the results.
  • the DNS server queries the cache database or the DNS database for the domain name resolution result according to the domain name that the request resolves. That is to say, in the process of determining the DNS server cache database or the DNS database with or without the domain name resolution result, the following two steps are actually included. First, the DNS server queries the cache library to see if there is a domain name matching the request resolution.
  • the result of the domain name resolution is that if there is no matching result in the cache database of the DNS server matching the domain name to be resolved, it is queried from the DNS database to check whether there is a matching domain name resolution result. If the DNS server cache database or the DNS database has a domain name resolution result that matches the domain name to be resolved, the process directly proceeds to step S150, where the domain name resolution result is selected and returned to the mobile terminal browser.
  • the data format of the domain name resolution result in the cache library or the DNS database is: domain name_result+ IP_Results+ Survival Time ttl_Results+Location_Result+Operator.
  • the data format matching the domain name in the cache database is: www.sina. com.cn_218.30.21.65_600_Guangdong_China Unicom.
  • the DNS server returns the domain name resolution result to the mobile terminal browser through a preset data format, and the preset format is that the domain name resolution result is slow.
  • the data format in the repository therefore, the return of the domain name www.sina.com.cn requested by the mobile terminal browser in Guangdong Unicom.com is: www.sina.com.cn_218.30.21.65_600_ ⁇ _ ⁇ .
  • the Bind cache server group is composed of multiple Bind cache servers, and each The Bind cache server obtains the domain name resolution result from the public network DNS server through a carrier's line in the area. That is to say, if the matching domain name resolution result is not found in the cache server or the DNS database of the DNS server itself, multiple cached DNS instances are executed, that is, multiple identical programs are run on one DNS server.
  • the network DNS initiates a query.
  • the DNS server initiates a standard DNS query through multiple sets of self-built Bind cache servers in multiple regions, and multiple sets of self-built Bind cache servers in multiple regions to the public through different carriers in the region.
  • the network queries the domain name resolution result.
  • the mobile terminal browser may issue multiple domain name resolution requests at the same time, and the mobile terminal browser may also send a resolution request of a certain domain name from multiple dimensions, for example: the mobile terminal browser simultaneously sends out through the mobile network. 10 domain name resolution requests, and requests are sent from 3 dimensions at the same time.
  • the three dimensions refer to user habits, navigation page placement, and history records. Therefore, the DNS server receives 30 domain name resolution requests at the same time.
  • the DNS server since the DNS server initiates standard DNS query through multiple sets of self-built Bind cache servers in multiple regions, it also needs to pass multiple groups of self-built Bind cache servers in multiple regions to different operators passing through the region.
  • the DNS server may obtain the domain name resolution result, which is composed of multiple parsing results of multiple domain names. That is to say, the DNS server also receives multiple resolution results under one domain name, and the domain name resolution result obtained when the same domain name is requested twice, or the same analysis result obtained by the same domain name on different lines.
  • the method further includes performing deduplication processing on the domain name resolution result, that is, ensuring that there is no duplicate analysis result in the analysis result of the domain name.
  • the repeated parsing results are removed via the web interface.
  • the web interface is written by nginx scrlPt technology, and the interface specification is:
  • circumventing IP refers to the requirement to return IP, it does not return the same IP, and only returns other results.
  • the parsing results are merged, that is, the parsing results of the same domain name from different routes or obtained through different ways are merged and classified.
  • the mobile terminal browser may perform the domain name and domain name resolution result according to the domain name resolution result.
  • the utility that is, whether the domain name resolution is often wrong
  • the operator from which the domain name resolution result is derived determines the domain name resolution result and returns the result to the mobile terminal browser.
  • the cache server group in the embodiment of the present invention is a Bind (Berkeley Internet Name Daemon) cache server group.
  • Bind is a commonly used DNS server software for the Internet.
  • the Bind cache server also uses Bind as the DNS server for the server software.
  • the processing procedure of the web interface in the embodiment of the present invention is described in more detail below by taking the data processing flow shown in FIG. 2 as an example.
  • the mobile terminal browser issues a domain name resolution request S210 in the post mode of http.
  • the mobile terminal browser simultaneously issues a plurality of domain name resolution requests. For example: www.uc.cn_61.144.131.222; www.sina.cn_61.145.ll ll ll;
  • the DNS server After receiving the domain name resolution request sent by the mobile terminal browser, the DNS server splits the requested content into a separate request for each domain name, as shown in step S220. For example, the above request is split into: www.uc.cn_61.144.131.222 and www.sina.cn_61.145.111.111.
  • the DNS server splits the request content of the mobile terminal browser and enters the loop query process.
  • step S230 the DNS server uses the domain name that the mobile terminal browser requests to parse as a key, and queries the cache pool of the DNS server whether there is a domain name resolution result that matches the domain name requested to be resolved.
  • the domain name that the mobile terminal browser requests to resolve is www.uc.com
  • the DNS server first queries the cache database of itself with the matching domain name resolution result by using www.uc.com as a key. If not, the process goes to step S240, the jsp module is called, and then in S250, it is queried whether there is a matching domain name resolution result in the DNS database.
  • the DNS server After the DNS server queries the cache or the DNS database, if the cache database or the DNS database has a domain name resolution result that matches the requested domain name, the DNS server takes the domain name resolution result and temporarily stores it. If the DNS server does not query the domain name resolution result matching the requested domain name from the cache database or the DNS database, proceed to step S260 to initiate a query request to the public network DNS through the Bind cache server group, and pass the geographical matching process.
  • the query result is saved in the cache library; if the public network DNS still cannot find the balance result matching the requested domain name, the failure result S270 is returned, otherwise the success result S280 is returned.
  • the query request and the receiving record are sent to the public network DNS by calling the Bind cache server group, and multiple query results are obtained, that is, the analysis result on the different lines under one domain name is obtained.
  • Each Bind cache server initiates a query to the public network DNS through a carrier's line in the area.
  • the Bind cache server group initiates query requests through the Bind cache server group in four places of Guangdong, Shanghai, Beijing, and Chengdu, respectively, wherein each place has three Bind cache servers, and these three
  • the Bind cache servers are responsible for the queries of the three major operators of Telecom, China Unicom and Mobile. In this query, there are 12 queries in the Bind cache server group, and there may be multiple ips in each result. These ips are usually used by the website of the target domain name for DNS polling to achieve load balancing.
  • the Bind cache server group sends the queried multiple domain name resolution results to the DNS server.
  • the DNS server stores the received domain name resolution result in the DNS server's cache or DNS database.
  • the DNS server sorts the received domain name resolution results into the cache pool or DNS database of the DNS server according to the query location and the operator classification.
  • the region matching process includes: matching the IP of the mobile terminal browser with the regional comparison table and matching the IMEI of the mobile terminal browser with the operator comparison table to obtain the domain name requested by the mobile terminal browser to be resolved. Territory and affiliated carrier. Because the website of the target domain name is used for load balancing, multiple IP addresses are used for DNS polling. Therefore, there may be multiple IP addresses corresponding to the domain name that is queried by a route in a region.
  • the DNS server After receiving the returned results, the DNS server first summarizes the results returned by the self-built Bind server group and the domain name resolution results recorded in the cache and DNS libraries, and then de-duplicates the results. That is, the result of the same IP under the same domain name in the analysis result is merged into one result, and the availability of the domain and domain name resolution result of the DNS server through the domain name resolution result (that is, whether the domain name resolution is frequently wrong) and the source of the domain name resolution result are further obtained. The operator determines the domain name resolution result and returns the result to the mobile terminal browser, step S280.
  • a program for executing the TCP protocol-based mobile Internet domain name resolution method of the embodiment of the present invention may be stored in a computer readable storage medium. Accordingly, an embodiment of the present invention further provides a computer readable storage medium storing a program for performing a TCP Internet-based mobile Internet domain name resolution method according to an embodiment of the present invention.
  • the mobile terminal of the present invention may be various handheld terminal devices, such as a mobile phone, a personal digital assistant (PDA), etc., and thus the scope of protection of the present invention should not be limited to a particular type of mobile terminal.
  • the method according to the invention can also be implemented as a computer program executed by a CPU. When the computer program is executed by the CPU, the above-described functions defined in the method of the present invention are performed.
  • the method steps and system units described above may also be implemented with a controller and a computer readable storage device for storing a computer program that causes the controller to implement the steps or unit functions described above.
  • a computer readable storage device eg, a memory
  • a volatile memory can be a volatile memory or a nonvolatile memory, or can include both volatile and nonvolatile memory.
  • non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash.
  • ROM read only memory
  • PROM programmable ROM
  • EPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • flash volatile memory
  • Volatile memory can include random access memory (RAM), which can act as external cache memory.
  • RAM can be obtained in a variety of forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Storage devices of the synchronous link DRAM (SLDRAM) and direct Rambus RAM (DRRAM) 0 aspects are intended to comprise, without being limited to, these and other suitable types of memory.
  • DRAM synchronous RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous link DRAM
  • SLDRAM synchronous link DRAM
  • DRRAM direct Rambus RAM
  • a general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller or state machine.
  • the processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
  • the software unit can reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor, such that the processor can read information from or write information to the storage medium.
  • the storage medium can be integrated with a processor.
  • the processor and the storage medium can reside in an ASIC.
  • the ASIC can reside in the user terminal.
  • the processor and the storage medium may reside as a discrete component in the user terminal.
  • the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted as one or more instructions or code on a computer readable medium.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a general purpose or special purpose computer.
  • the computer readable medium may comprise RAM, ROM, EEPROM CD-ROM or other optical disk storage device, disk storage device or other magnetic storage device, or may be used for carrying or storing the form as an instruction or The required program code of the data structure and any other medium that can be accessed by a general purpose or special purpose computer or a general purpose or special purpose processor.
  • any connection is properly termed a computer-readable medium.
  • a magnetic disk and an optical disk include a compact disk (CD), a laser disk, an optical disk, a digital versatile disk (DVD), a floppy disk, a Blu-ray disk, in which a disk generally reproduces data magnetically, and an optical disk optically reproduces data using a laser. .
  • FIG. 3 shows a block schematic diagram of a mobile internet DNS server based on the TCP protocol according to an embodiment of the invention. As shown in FIG.
  • the mobile internet DNS server 300 based on the TCP protocol provided by the embodiment of the present invention includes a domain name receiving unit 310, a determining unit 320, an analysis result obtaining unit 330, an analysis result receiving unit 340, and an analysis result returning unit 350.
  • the domain name receiving unit 310 is configured to receive, by the DNS server, a domain name resolution request sent by the mobile terminal browser through the TCP protocol, where the DNS server is a DNS server in the mobile internet based on the TCP; the determining unit 320 is configured to determine the cache of the DNS server.
  • the domain name resolution result is not matched with the domain name in the database or the DNS database; the parsing result obtaining unit 330 is configured to initiate a domain name resolution request to the Bind cache server group of the at least one region, where the Bind cache server group operates through different regions.
  • the route of the quotient initiates a domain name resolution request to the public network DNS;
  • the parsing result receiving unit 340 is configured to receive, by the DNS server, the domain name resolution result returned by the public network DNS sent by the Bind cache server group;
  • the parsing result returning unit 350 is configured to select a domain name by the DNS server.
  • the parsing result is returned to the mobile terminal browser.
  • the determining unit 320 is further configured to determine a domain name parsing result that matches the domain name in the cache of the DNS server or the DNS database, and then the parsing result returning unit 350 is used to select the domain name parsing result in the domain name parsing result, and return to the mobile Terminal browser.
  • the Bind cache server group is composed of a plurality of Bind cache servers, and each Bind cache server obtains a domain name parsing result from a public network DNS server through a line of an operator in the area.
  • the DNS server further includes a storage unit (not shown) for the DNS server to classify the received domain name resolution result by the geographical matching process, and store the domain name resolution result in the DNS server cache or DNS.
  • the TCP-based mobile Internet DNS server and the parsing method thereof provided by the embodiment of the present invention, by designing a DNS server in the mobile Internet based on the TCP protocol, changing the original UDP protocol to the TCP protocol, and ensuring the link through the TCP protocol.
  • the mechanism realizes that the DNS server is not affected by the fluctuation of the mobile network environment, and initiates a standard DNS query through multiple sets of self-built Bind cache servers in multiple regions to implement a single domain name multi-record query, and can simultaneously query a domain name under different lines.
  • the result of the analysis is to avoid the defect that the traditional DNS server can only return one line result, thereby improving the availability and stability of the DNS server during web browsing.

Abstract

The present invention provides a domain name resolution method based on the TCP protocol in the mobile Internet and a DNS server. The domain name resolution method comprises: after a DNS server receives a domain name resolution request sent by a mobile terminal browser, the DNS server first determining that a resolution result matching the domain name does not exist in a caching library or a DNS database of the DNS server, the DNS server then initiating the domain name resolution request to a Bind cache server group of at least one region, the Bind cache server group sending a domain name resolution result to the DNS server, and the DNS server then selecting a domain name resolution result and returning the domain name resolution result to the mobile terminal browser. By means of the present invention, a problem of data packet loss caused by poor network quality in the mobile Internet can be solved, thereby enhancing the usability and stability of a DNS server during webpage browsing.

Description

基于 TCP协议的移动互联网域名解析方法及 DNS服务器 技术领域 本发明涉及 DNS服务技术领域, 更具体地, 涉及一种基于 TCP协议的移动互联 网域名解析方法及 DNS服务器。 背景技术 随着科技的不断发展, 越来越多的人们开始使用手机等移动终端设备进行互联网 的访问, 以便于随时了解信息。 DNS (Domain Name System, 域名系统) 作为互联网 的一项核心服务, 将域名和 IP (Internet Protocol, 网络互连协议) 地址相互映射, 从 而使用户能够更方便的使用域名访问互联网, 而不用去记住能够被机器直接读取的 IP 数串。 用户在访问网页时, 首先请求 DNS服务器解析将要访问的网页的域名,得到该网 页域名相对应的 IP地址, 然后浏览器请求这个 IP地址建立连接并获取内容。 例如用 户请求访问 www.uc.cn这个网页, 首先请求 DNS服务器解析 www.uc.cn这个域名, 得 到该域名的 IP地址 61.145.135.221后, 然后浏览器请求 61.145.135.221这个 IP地址, 从而与该网页建立连接并获取内容。 现有运营商的 DNS服务器都基于 UDP(User Datagram Protocol,用户数据报协议) 协议, 在良好的网络质量下进行通信, 通信比较高效, 但在网络繁忙时, 则容易出现 丢包的情况,致使用户无法获得 DNS服务器解析的结果,从而导致用户无法浏览网页。 此种情况尤其在移动环境的互联网尤为明显。 另外,传统的 DNS服务器一般只能返回一个线路查询结果, 如果该线路查询不到 请求解析的网页域名相对应的 IP地址, 则浏览器会显示无法查询, 从而导致用户访问 不到相应的网页。 发明内容 鉴于上述问题,本发明的主要目的在于提供一种基于 TCP协议的移动互联网域名 解析方法及 DNS服务器,以解决移动互联网内因网络质量不好丢包导致手机等移动终 端浏览器设备浏览器发出的请求数据不能正常到达 DNS 服务器或者浏览器不能正常 接收 DNS服务器应答结果的问题,以提升网页浏览时 DNS服务器的可用性和稳定性。 根据本发明的一个方面, 提供一种基于 TCP协议的移动互联网域名解析方法, 该 方法包括: TECHNICAL FIELD The present invention relates to the field of DNS service technologies, and in particular, to a mobile Internet domain name resolution method and a DNS server based on a TCP protocol. BACKGROUND With the continuous development of technology, more and more people are beginning to use mobile terminals such as mobile phones to access the Internet, so that they can understand the information at any time. As a core service of the Internet, DNS (Domain Name System) maps domain names and IP (Internet Protocol) addresses to each other, making it easier for users to use the domain name to access the Internet without having to remember. Live a string of IP numbers that can be read directly by the machine. When the user accesses the webpage, the user first requests the DNS server to resolve the domain name of the webpage to be accessed, obtains the IP address corresponding to the webpage domain name, and then the browser requests the IP address to establish a connection and obtain the content. For example, if the user requests to visit the webpage of www.uc.cn, the DNS server is first requested to parse the domain name www.uc.cn, and the IP address of the domain name is 61.145.135.221, and then the browser requests the IP address of 61.145.135.221, thereby The web page establishes a connection and gets the content. The existing server's DNS server is based on the User Datagram Protocol (UDP) protocol. The communication is performed under good network quality. The communication is more efficient. However, when the network is busy, packet loss is likely to occur. The user is unable to obtain the results of the DNS server resolution, resulting in the user being unable to browse the web. This is especially true for the Internet in mobile environments. In addition, the traditional DNS server can only return one line query result. If the line does not query the IP address corresponding to the domain name of the page to be parsed, the browser will display the query, which may result in the user not accessing the corresponding web page. SUMMARY OF THE INVENTION In view of the above problems, the main object of the present invention is to provide a mobile Internet domain name resolution method and a DNS server based on the TCP protocol, so as to solve the problem that a mobile terminal such as a mobile terminal and a browser device of a mobile device are issued due to poor network quality loss in the mobile Internet. The request data cannot reach the DNS server normally or the browser cannot receive the DNS server response result properly, so as to improve the availability and stability of the DNS server during web browsing. According to an aspect of the present invention, a mobile internet domain name resolution method based on a TCP protocol is provided, the method comprising:
DNS服务器接收移动终端浏览器通过 TCP协议发送的域名解析请求; The DNS server receives the domain name resolution request sent by the mobile terminal browser through the TCP protocol;
DNS服务器确定无与域名解析请求相匹配的域名解析结果, 则向至少一个地域的 缓存服务器组发起域名解析请求; The DNS server determines that the domain name resolution result does not match the domain name resolution request, and initiates a domain name resolution request to the cache server group of the at least one region;
DNS服务器接收由缓存服务器组发送的由公网 DNS返回的域名解析结果; 以及 The DNS server receives the domain name resolution result returned by the public network DNS sent by the cache server group;
DNS服务器选取域名解析结果返回给移动终端浏览器。 根据本发明的另一个方面, 本发明还提供一种基于 TCP协议的移动互联网 DNS 服务器, 包括: 域名接收单元, 用于接收移动终端浏览器通过 TCP协议发送的域名解析请求; 判断单元, 用于确定无与域名解析请求相匹配的域名解析结果; 解析结果获取单元, 用于向至少一个地域的缓存服务器组发起域名解析请求; 解析结果接收单元,用于接收由缓存服务器组发送的由公网 DNS返回的域名解析 结果; 以及 解析结果返回单元, 用于选取域名解析结果返回给移动终端浏览器。 利用上述根据本发明的基于 TCP协议的移动互联网域名解析方法及 DNS服务器, 能够解决移动互联网内因网络质量不好导致数据丢包的问题, 避免现有技术中存在的 手机等移动终端浏览器设备浏览器发出的请求数据不能正常到达 DNS 服务器或者浏 览器不能正常接收 DNS服务器应答的 UDP结果的缺陷, 同时可以返回多个线路的域 名解析结果, 从而提升网页浏览时 DNS服务器的可用性和稳定性。 为了实现上述以及相关目的, 本发明的一个或多个方面包括后面将详细说明并在 权利要求中特别指出的特征。 下面的说明以及附图详细说明了本发明的某些示例性方 面。 然而, 这些方面指示的仅仅是可使用本发明的原理的各种方式中的一些方式。 此 夕卜, 本发明旨在包括所有这些方面以及它们的等同物。 附图说明 通过参考以下结合附图的说明及权利要求书的内容, 并且随着对本发明的更全面 理解, 本发明的其它目的及结果将更加明白及易于理解。 在附图中: 图 1 为根据本发明实施例的基于 TCP协议的移动互联网域名解析方法流程示意 图; 图 2为根据本发明实施例的 Web接口在服务器端的处理流程示意图; 图 3为根据本发明实施例的基于 TCP协议的移动互联网 DNS服务器的方框示意 图。 在所有附图中相同的标号指示相似或相应的特征或功能。 具体实施方式 以下将结合附图对本发明的具体实施例进行详细描述。 针对前述现有技术中基于 UDP协议在网络质量不好的情况下容易出现丢包,从而 导致用户无法获得 DNS服务器解析结果的问题, 本发明实施例提供了一个基于 TCP 的移动互联网内的 DNS服务器,通过 TCP协议的链路保证机制实现 DNS服务器不受 移动网络环境波动的影响, 从而提升网页浏览时 DNS服务器的可用性和稳定性。 需要说明的是, 本发明实施例中涉及的移动终端主要指手机等利用移动终端浏览 器和移动互联网进行网络访问的终端。 图 1示出了根据本发明实施例的基于 TCP协议的移动互联网域名解析方法流程示 意图。 如图 1所示,本发明实施例提供的基于 TCP协议的移动互联网域名解析方法包括: The DNS server selects the domain name resolution result and returns it to the mobile terminal browser. According to another aspect of the present invention, the present invention further provides a mobile internet DNS server based on the TCP protocol, comprising: a domain name receiving unit, configured to receive a domain name resolution request sent by a mobile terminal browser through a TCP protocol; and a determining unit, configured to: Determining the domain name resolution result that is not matched with the domain name resolution request; the parsing result obtaining unit is configured to initiate a domain name resolution request to the cache server group of the at least one region; and the parsing result receiving unit is configured to receive the public network sent by the cache server group The domain name resolution result returned by the DNS; and the parsing result returning unit, which is used to select the domain name parsing result and return it to the mobile terminal browser. The above-mentioned TCP-based mobile Internet domain name resolution method and DNS server according to the present invention can solve the problem of data packet loss caused by poor network quality in the mobile Internet, and avoid browsing of mobile terminal browser devices such as mobile phones existing in the prior art. The request data sent by the device cannot reach the DNS server normally or the browser cannot receive the UDP result of the DNS server response normally, and can return the domain name resolution result of multiple lines, thereby improving the availability and stability of the DNS server during web browsing. In order to achieve the above and related ends, the one or more aspects of the invention are described in the following detailed description. The following description and the annexed drawings set forth in detail However, these aspects are indicative of only some of the various ways in which the principles of the invention may be employed. Further, the present invention is intended to include all such aspects and their equivalents. Other objects and results of the present invention will become more apparent from the following description of the appended claims. In the drawings: FIG. 1 is a schematic flowchart of a method for analyzing a domain name of a mobile Internet based on a TCP protocol according to an embodiment of the present invention; FIG. 2 is a schematic diagram of a processing flow of a web interface on a server side according to an embodiment of the present invention; A block diagram of a mobile internet DNS server based on the TCP protocol of an embodiment. The same reference numerals are used throughout the drawings to refer to the DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, specific embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the foregoing prior art, the UDP protocol is prone to packet loss in the case of poor network quality, which may result in the user not being able to obtain the DNS server resolution result. The embodiment of the present invention provides a TCP-based DNS server in the mobile Internet. Through the link guarantee mechanism of the TCP protocol, the DNS server is not affected by the fluctuation of the mobile network environment, thereby improving the availability and stability of the DNS server during web browsing. It should be noted that the mobile terminal involved in the embodiment of the present invention mainly refers to a terminal that uses a mobile terminal browser and a mobile Internet to perform network access, such as a mobile phone. FIG. 1 is a schematic flowchart diagram of a method for analyzing a mobile Internet domain name based on a TCP protocol according to an embodiment of the present invention. As shown in FIG. 1 , the method for analyzing a mobile Internet domain name based on the TCP protocol provided by the embodiment of the present invention includes:
S110: DNS服务器接收移动终端浏览器通过 TCP协议发送的域名解析请求, 其 中, DNS服务器为基于 TCP的移动互联网内的 DNS服务器; S110: The DNS server receives a domain name resolution request sent by the mobile terminal browser through the TCP protocol, where the DNS server is a DNS server in the TCP-based mobile internet;
S120: 确定 DNS服务器的缓存库或者 DNS数据库中无与请求解析的域名相匹配 的域名解析结果; 其中, 在步骤 S120中, DNS服务器首先确定其缓存库中是否有与请求解析的域 名相匹配的域名解析结果,如果 DNS服务器的缓存库中没有与请求解析的域名相匹配 的域名解析结果, DNS服务器再向 DNS数据库发起查询, 用于确定 DNS数据库中是 否有与请求解析的域名相匹配的解析结果, 如果 DNS服务器的缓存库和 DNS数据库 中都没有相匹配的域名解析结果则进入步骤 S130, 否则进入步骤 S150。 S120: determining, in the cache pool of the DNS server or the DNS database, that the domain name resolution result does not match the domain name requested to be resolved; wherein, in step S120, the DNS server first determines whether the cache database matches the domain name requested to be resolved. The result of domain name resolution, if the DNS server's cache library does not match the domain name requested for resolution. As a result of the domain name resolution, the DNS server initiates a query to the DNS database to determine whether the DNS database has a resolution matching the domain name requested to be resolved. If there is no matching domain name resolution in the DNS server cache database and the DNS database. The result proceeds to step S130, otherwise proceeds to step S150.
S130: DNS服务器向至少一个地域的缓存服务器组发起域名解析请求, 其中, 缓 存服务器组通过地域的不同运营商的路线向公网 DNS发起域名解析请求; S130: The DNS server initiates a domain name resolution request to the cache server group of the at least one area, where the cache server group initiates a domain name resolution request to the public network DNS through the route of different operators in the area;
S140: DNS服务器接收由缓存服务器组发送的由公网 DNS返回的域名解析结果; S140: The DNS server receives the domain name resolution result returned by the public network DNS sent by the cache server group.
S150: DNS服务器选取域名解析结果返回给移动终端浏览器。 通过图 1的流程示意图可以看出,本发明实施例提供的移动互联网域名解析方法, 通过使用 TCP协议进行通信, 利用 TCP协议的链路保证机制, 使得 DNS服务器不受 移动网络环境波动的影响, 从而提升用户在浏览网页时, DNS服务器的稳定性, 改善 用户体验。在本发明的具体实施例中,通过 java的 socket实现移动终端浏览器与 DNS 服务器的数据交换。 步骤 S120中,确定 DNS服务器的缓存库或者 DNS数据库中无与请求解析的域名 相匹配的域名解析结果, 同时也可能存在 DNS服务器的缓存库或者 DNS数据库中有 与请求解析的域名相匹配的域名解析结果。 DNS服务器根据请求解析的域名为关键字 向缓存库或者 DNS数据库查询域名解析结果。 也就是说, 在确定 DNS服务器的缓存库或者 DNS数据库中有或者无域名解析结 果的过程中,其实包括如下两个步骤, 首先 DNS服务器向缓存库中查询是否有与请求 解析的域名相匹配的域名解析结果,如果 DNS服务器的缓存库中没有与请求解析的域 名相匹配的结果, 再从本身的 DNS数据库中查询是否有相匹配的域名解析结果。如果 DNS服务器的缓存库或者 DNS数据库中有与请求解析的域名相匹配的域名解析结果, 则直接进入步骤 S150, 在域名解析结果中选取域名解析结果返回给移动终端浏览器。 其中, 在查询 DNS服务器的缓存库或者 DNS数据库存中是否有与请求解析的域 名相匹配的域名解析结果的过程中,域名解析结果在缓存库或者 DNS数据库中的数据 格式为: 域名 _结果 +IP_结果 +生存时间 ttl_结果 +所在地区_结果 +所在运营商。 例如, 有一个广东联通网内的移动终端浏览器请求解析的域名为: www.sina.com.cn, 那么与该域名相匹配的域名解析结果在缓存库中的数据格式为: www.sina.com.cn_218.30.21.65_600_广东 _联通。 DNS服务器通过预先设定的数据格式 将域名解析结果返回给移动终端浏览器, 而预先设定的格式也就是域名解析结果在缓 存库中的数据格式, 因此, 广东联通网内的移动终端浏览器请求解析的域名 www.sina.com.cn的返回结果为: www.sina.com.cn_218.30.21.65_600_广东 _联通。 在本发明的具体实施例中, 如果 DNS服务器没有在缓存库或者 DNS数据库中查 询到与请求解析的域名相匹配的域名解析结果, 则由多个 Bind缓存服务器组成 Bind 缓存服务器组, 且每个 Bind缓存服务器通过该地域的一个运营商的线路向公网 DNS 服务器获取域名解析结果。 也就是说, 如果在 DNS服务器本身的缓存库或者 DNS数据库中没有查询到相匹 配的域名解析结果, 则通过多个缓存 DNS实例, 即在一台 DNS服务器上运行多个相 同的程序, 向公网 DNS发起查询。 其中, DNS服务器同时通过多个地域当中的多组 自建的 Bind缓存服务器发起标准 DNS查询,和多个地域当中的多组自建的 Bind缓存 服务器向通过该地域的不同运营商的线路向公网查询域名解析结果。 本发明的实施例中移动终端浏览器可能同时发出多个域名解析请求, 同时移动终 端浏览器还可能会从多个维度发送某一个域名的解析请求, 例如: 移动终端浏览器通 过移动的网络同时发出 10个域名解析请求, 同时从 3个维度发送请求,这里 3个维度 是指用户习惯、 导航页放置、 历史记录三个方面, 因此 DNS服务器同时收到 30个域 名解析请求。 同时由于 DNS服务器既要通过多个地域当中的多组自建的 Bind缓存服 务器发起标准 DNS查询, 又要通过多个地域当中的多组自建的 Bind缓存服务器向通 过该地域的不同运营商的线路向公网查询,那么 DNS服务器有可能得到的域名解析结 果是由多个域名的多个解析结果组成。 也就是说 DNS服务器同时会收到一个域名下的多个解析结果,并且存在同一个域 名被请求两次时获得的域名解析结果, 或者同一个域名在不同线路上获取的相同的解 析结果。 因此, 在 DNS服务器将域名解析结果返回给移动终端浏览器之前, 还包括对 域名解析结果进行域名为唯一标识的去重处理, 即保证一个域名的解析结果中没有重 复的解析结果。 在本发明的一个具体实施方式中, 通过 Web接口将重复的解析结果去 除。 其中, 该 Web接口通过 nginx scrlPt技术编写, 接口规范为: S150: The DNS server selects the domain name resolution result and returns it to the mobile terminal browser. As shown in the flowchart of FIG. 1, the mobile Internet domain name resolution method provided by the embodiment of the present invention communicates by using the TCP protocol, and utilizes the link guarantee mechanism of the TCP protocol, so that the DNS server is not affected by the fluctuation of the mobile network environment. This improves the stability of the DNS server and improves the user experience when browsing the web. In a specific embodiment of the present invention, data exchange between the mobile terminal browser and the DNS server is implemented through a socket of java. In step S120, it is determined that the DNS server cache database or the DNS database does not have the domain name resolution result matching the domain name requested to be resolved, and the DNS server cache database or the DNS database may have a domain name matching the domain name requested to be resolved. Analyze the results. The DNS server queries the cache database or the DNS database for the domain name resolution result according to the domain name that the request resolves. That is to say, in the process of determining the DNS server cache database or the DNS database with or without the domain name resolution result, the following two steps are actually included. First, the DNS server queries the cache library to see if there is a domain name matching the request resolution. The result of the domain name resolution is that if there is no matching result in the cache database of the DNS server matching the domain name to be resolved, it is queried from the DNS database to check whether there is a matching domain name resolution result. If the DNS server cache database or the DNS database has a domain name resolution result that matches the domain name to be resolved, the process directly proceeds to step S150, where the domain name resolution result is selected and returned to the mobile terminal browser. In the process of querying the DNS server cache database or the DNS data inventory for the domain name resolution result matching the domain name requested to be resolved, the data format of the domain name resolution result in the cache library or the DNS database is: domain name_result+ IP_Results+ Survival Time ttl_Results+Location_Result+Operator. For example, if the domain name requested by the mobile terminal browser in the Guangdong Unicom network is: www.sina.com.cn, the data format matching the domain name in the cache database is: www.sina. com.cn_218.30.21.65_600_Guangdong_China Unicom. The DNS server returns the domain name resolution result to the mobile terminal browser through a preset data format, and the preset format is that the domain name resolution result is slow. The data format in the repository, therefore, the return of the domain name www.sina.com.cn requested by the mobile terminal browser in Guangdong Unicom.com is: www.sina.com.cn_218.30.21.65_600_广东_联通. In a specific embodiment of the present invention, if the DNS server does not query the domain name resolution result matching the domain name requested to be resolved in the cache library or the DNS database, the Bind cache server group is composed of multiple Bind cache servers, and each The Bind cache server obtains the domain name resolution result from the public network DNS server through a carrier's line in the area. That is to say, if the matching domain name resolution result is not found in the cache server or the DNS database of the DNS server itself, multiple cached DNS instances are executed, that is, multiple identical programs are run on one DNS server. The network DNS initiates a query. The DNS server initiates a standard DNS query through multiple sets of self-built Bind cache servers in multiple regions, and multiple sets of self-built Bind cache servers in multiple regions to the public through different carriers in the region. The network queries the domain name resolution result. In the embodiment of the present invention, the mobile terminal browser may issue multiple domain name resolution requests at the same time, and the mobile terminal browser may also send a resolution request of a certain domain name from multiple dimensions, for example: the mobile terminal browser simultaneously sends out through the mobile network. 10 domain name resolution requests, and requests are sent from 3 dimensions at the same time. Here, the three dimensions refer to user habits, navigation page placement, and history records. Therefore, the DNS server receives 30 domain name resolution requests at the same time. At the same time, since the DNS server initiates standard DNS query through multiple sets of self-built Bind cache servers in multiple regions, it also needs to pass multiple groups of self-built Bind cache servers in multiple regions to different operators passing through the region. When the line queries the public network, the DNS server may obtain the domain name resolution result, which is composed of multiple parsing results of multiple domain names. That is to say, the DNS server also receives multiple resolution results under one domain name, and the domain name resolution result obtained when the same domain name is requested twice, or the same analysis result obtained by the same domain name on different lines. Therefore, before the DNS server returns the domain name resolution result to the mobile terminal browser, the method further includes performing deduplication processing on the domain name resolution result, that is, ensuring that there is no duplicate analysis result in the analysis result of the domain name. In one embodiment of the invention, the repeated parsing results are removed via the web interface. The web interface is written by nginx scrlPt technology, and the interface specification is:
Request: domain 1_规避 IP 1; domainl_IP2。 其中规避 IP指要求返回 IP时, 不返 回相同的 IP, 只返回其它结果。 在去重之后, 将解析结果合并, 即同一域名的来自不同路线或者通过不同途径获 取的解析结果进行合并归类。其中,在 DNS服务器选取域名解析结果返回给移动终端 浏览器的过程中, 移动终端浏览器根据域名解析结果来源的地域、 域名解析结果的可 用性 (即域名解析是否经常出错) 以及域名解析结果所来源的运营商, 确定域名解析 结果, 并将该结果返回给移动终端浏览器。 优选地,本发明实施例中的缓存服务器组为 Bind(Berkeley Internet Name Daemon) 缓存服务器组。 Bind为互联网常用的 DNS服务器软件, Bind缓存服务器也即使用 Bind 作为服务器软件的 DNS服务器。 为了详细说明 Web接口在服务器端的处理过程,下面以图 2所示的数据处理流程 为例对本发明实施例的 Web接口在服务器端的处理过程做更加详细的说明。 如图 2所示, 首先, 移动终端浏览器以 http的 post方式发出域名解析请求 S210。 作为本发明的一个示例, 移动终端浏览器同时发出多个域名解析请求。 例如: www.uc.cn_61.144.131.222; www.sina.cn_61.145.l l l.l l l; Request: domain 1_ circumvents IP 1; domainl_IP2. When circumventing IP refers to the requirement to return IP, it does not return the same IP, and only returns other results. After the deduplication, the parsing results are merged, that is, the parsing results of the same domain name from different routes or obtained through different ways are merged and classified. In the process of the DNS server selecting the domain name resolution result and returning it to the mobile terminal browser, the mobile terminal browser may perform the domain name and domain name resolution result according to the domain name resolution result. The utility (that is, whether the domain name resolution is often wrong) and the operator from which the domain name resolution result is derived determines the domain name resolution result and returns the result to the mobile terminal browser. Preferably, the cache server group in the embodiment of the present invention is a Bind (Berkeley Internet Name Daemon) cache server group. Bind is a commonly used DNS server software for the Internet. The Bind cache server also uses Bind as the DNS server for the server software. In order to describe the processing of the web interface on the server side in detail, the processing procedure of the web interface in the embodiment of the present invention is described in more detail below by taking the data processing flow shown in FIG. 2 as an example. As shown in FIG. 2, first, the mobile terminal browser issues a domain name resolution request S210 in the post mode of http. As an example of the present invention, the mobile terminal browser simultaneously issues a plurality of domain name resolution requests. For example: www.uc.cn_61.144.131.222; www.sina.cn_61.145.ll ll ll;
DNS 服务器接收到移动终端浏览器发出的域名解析请求后, 对请求内容进行分 拆, 使之成为每个域名独立的请求如步骤 S220。 例如, 将上述请求拆分为: www.uc.cn_61.144.131.222禾口 www.sina.cn_61.145.111.111。 After receiving the domain name resolution request sent by the mobile terminal browser, the DNS server splits the requested content into a separate request for each domain name, as shown in step S220. For example, the above request is split into: www.uc.cn_61.144.131.222 and www.sina.cn_61.145.111.111.
DNS服务器对移动终端浏览器的请求内容进行分拆之后进入循环查询过程。首先 进入步骤 S230, DNS服务器将移动终端浏览器请求解析的域名作为关键字, 向 DNS 服务器的缓存库中查询是否有与请求解析的域名相匹配的域名解析结果。 在本发明的 一个示例中, 移动终端浏览器请求解析的域名为 www.uc.com, DNS 服务器首先以 www.uc.com为关键字查询本身的缓存库中是否有相匹配的域名解析结果, 如果没有, 则进入步骤 S240,调用 jsp模块, 然后在 S250中查询 DNS数据库中是否存在相匹配 的域名解析结果。 在 DNS 服务器向本身的缓存库或者 DNS 数据库中查询之后, 如果缓存库或者 DNS数据库中有与请求的域名相匹配的域名解析结果, 那么 DNS服务器把域名解析 结果取出暂存, 待所有循环结束后合并结果; 如果 DNS 服务器从本身的缓存库或者 DNS数据库中查询不到与请求域名相匹配的域名解析结果,则进入步骤 S260通过 Bind 缓存服务器组向公网 DNS发起查询请求,并通过地域匹配过程将查询结果保存到缓存 库中;如果公网 DNS仍查询不到与请求域名相匹配的结存结果,则返回失败结果 S270, 否则返回成功结果 S280。 其中, 通过调用 Bind缓存服务器组向公网 DNS发起查询请求和接收记录, 得到 多个查询结果, 即得到一个域名下, 不同线路上面的解析结果。 其中, 每个 Bind缓存 服务器通过该地域的一个运营商的线路向公网 DNS发起查询。 在本发明的一个具体实施方式中, Bind缓存服务器组分别同时通过广东、 上海、 北京和成都四个地方的 Bind缓存服务器组发起查询请求,其中,每个地方有 3个 Bind 缓存服务器,这 3个 Bind缓存服务器分别负责电信、联通和移动这三大运营商的查询。 那么在此次查询中, Bind缓存服务器组的查询结果就有 12个, 而每个结果内可能有 多个 ip, 这些 ip通常是目标域名的网站用来做 DNS轮询, 实现负载均衡的。 The DNS server splits the request content of the mobile terminal browser and enters the loop query process. First, in step S230, the DNS server uses the domain name that the mobile terminal browser requests to parse as a key, and queries the cache pool of the DNS server whether there is a domain name resolution result that matches the domain name requested to be resolved. In an example of the present invention, the domain name that the mobile terminal browser requests to resolve is www.uc.com, and the DNS server first queries the cache database of itself with the matching domain name resolution result by using www.uc.com as a key. If not, the process goes to step S240, the jsp module is called, and then in S250, it is queried whether there is a matching domain name resolution result in the DNS database. After the DNS server queries the cache or the DNS database, if the cache database or the DNS database has a domain name resolution result that matches the requested domain name, the DNS server takes the domain name resolution result and temporarily stores it. If the DNS server does not query the domain name resolution result matching the requested domain name from the cache database or the DNS database, proceed to step S260 to initiate a query request to the public network DNS through the Bind cache server group, and pass the geographical matching process. The query result is saved in the cache library; if the public network DNS still cannot find the balance result matching the requested domain name, the failure result S270 is returned, otherwise the success result S280 is returned. The query request and the receiving record are sent to the public network DNS by calling the Bind cache server group, and multiple query results are obtained, that is, the analysis result on the different lines under one domain name is obtained. Each Bind cache server initiates a query to the public network DNS through a carrier's line in the area. In a specific embodiment of the present invention, the Bind cache server group initiates query requests through the Bind cache server group in four places of Guangdong, Shanghai, Beijing, and Chengdu, respectively, wherein each place has three Bind cache servers, and these three The Bind cache servers are responsible for the queries of the three major operators of Telecom, China Unicom and Mobile. In this query, there are 12 queries in the Bind cache server group, and there may be multiple ips in each result. These ips are usually used by the website of the target domain name for DNS polling to achieve load balancing.
Bind缓存服务器组将查询到的多个域名解析结果发送给 DNS服务器, DNS服务 器将收到的域名解析结果存储于 DNS服务器的缓存库或者 DNS数据库中。 其中, 按 照查询地和运营商分类, DNS服务器通过地域匹配过程将收到的域名解析结果归类存 储于 DNS服务器的缓存库或者 DNS数据库中。 在本发明的具体实施中, 地域匹配过程包括, 将移动终端浏览器的 IP与地域对照 表匹配和将移动终端浏览器的 IMEI与运营商对照表匹配, 以获得移动终端浏览器请 求解析的域名所属地域和所属运营商。 由于目标域名的网站为了实现负载均衡, 通常会采用多个 IP做 DNS轮询, 因此 通过一个地域内一条路线查询到的该请求解析的域名对应的 IP也可能会有多个,即一 个域名对应多个域名解析结果在收到返回结果后, DNS 服务器首先汇总通过自建的 Bind服务器组返回的结果以及通过自身缓存库和 DNS库中记录的域名解析结果, 然 后会对结果进行去重处理,即去掉解析结果中同一个域名下的相同 IP的结果合并成一 个结果,进一步 DNS服务器通过域名解析结果来源的地域、域名解析结果的可用性(即 域名解析是否经常出错) 以及域名解析结果所来源的运营商, 确定域名解析结果, 并 将该结果返回给移动终端浏览器, 即步骤 S280。 通过 Bind缓存服务器组的查询, 就可以实现单个域名多记录的查询, 即可以同时 查询一个域名下, 不同线路上的解析结果, 这样即使其中一个线路查询不到, 也可以 通过其他线路查询得到解析结果。 用于执行本发明实施例的基于 TCP协议的移动互联网域名解析方法的程序可以存 储在计算机可读存储介质中。因而,本发明实施例还提供了一种计算机可读存储介质, 该计算机可读存储介质存储有用于执行本发明实施例的基于 TCP协议的移动互联网域 名解析方法的程序。 此外, 典型地, 本发明所述的移动终端可为各种手持终端设备, 例如手机、 个人 数字助理 (PDA) 等, 因此本发明的保护范围不应限定为某种特定类型的移动终端。 此外, 根据本发明的方法还可以被实现为由 CPU执行的计算机程序。在该计算机 程序被 CPU执行时, 执行本发明的方法中限定的上述功能。 此外, 上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实 现上述步骤或单元功能的计算机程序的计算机可读存储设备实现。 此外, 应该明白的是, 本文所述的计算机可读存储设备 (例如, 存储器) 可以是 易失性存储器或非易失性存储器,或者可以包括易失性存储器和非易失性存储器两者。 作为例子而非限制性的, 非易失性存储器可以包括只读存储器(ROM)、 可编程 ROM (PROM)、 电可编程 ROM (EPROM)、 电可擦写可编程 ROM (EEPROM)或快闪存 储器。 易失性存储器可以包括随机存取存储器(RAM), 该 RAM可以充当外部高速缓 存存储器。 作为例子而非限制性的, RAM 可以以多种形式获得, 比如同步 RAM (DRAM)、动态 RAM (DRAM)、同步 DRAM ( SDRAM )、双数据速率 SDRAM (DDR SDRAM )、增强 SDRAM (ESDRAM)、同步链路 DRAM ( SLDRAM)以及直接 Rambus RAM (DRRAM)0所公开的方面的存储设备意在包括但不限于这些和其它合适类型的 存储器。 本领域技术人员还将明白的是, 结合这里的公开所描述的各种示例性逻辑块、 单 元、 电路和算法步骤可以被实现为电子硬件、 计算机软件或两者的组合。 为了清楚地 说明硬件和软件的这种可互换性, 已经就各种示意性组件、 方块、 单元、 电路和步骤 的功能对其进行了一般性的描述。 这种功能是被实现为软件还是被实现为硬件取决于 具体应用以及施加给整个系统的设计约束。 本领域技术人员可以针对每种具体应用以 各种方式来实现所述的功能,但是这种实现决定不应被解释为导致脱离本发明的范围。 结合这里的公开所描述的各种示例性逻辑块、 单元和电路可以利用被设计成用于 执行这里所述功能的下列部件来实现或执行: 通用处理器、 数字信号处理器 (DSP)、 专用集成电路 (ASIC)、 现场可编程门阵列 (FPGA) 或其它可编程逻辑器件、 分立门 或晶体管逻辑、 分立的硬件组件或者这些部件的任何组合。 通用处理器可以是微处理 器, 但是可替换地, 处理器可以是任何传统处理器、 控制器、 微控制器或状态机。 处 理器也可以被实现为计算设备的组合, 例如, DSP和微处理器的组合、多个微处理器、 一个或多个微处理器结合 DSP核、 或任何其它这种配置。 结合这里的公开所描述的方法或算法的步骤可以直接包含在硬件中、 由处理器执 行的软件单元中或这两者的组合中。 软件单元可以驻留在 RAM存储器、 快闪存储器、 ROM存储器、 EPROM存储器、 EEPROM存储器、寄存器、硬盘、可移动盘、 CD-ROM、 或本领域已知的任何其它形式的存储介质中。 示例性的存储介质被耦合到处理器, 使 得处理器能够从该存储介质中读取信息或向该存储介质写入信息。在一个替换方案中, 所述存储介质可以与处理器集成在一起。处理器和存储介质可以驻留在 ASIC中。 ASIC 可以驻留在用户终端中。 在一个替换方案中, 处理器和存储介质可以作为分立组件驻 留在用户终端中。 在一个或多个示例性设计中, 所述功能可以在硬件、 软件、 固件或其任意组合中 实现。 如果在软件中实现, 则可以将所述功能作为一个或多个指令或代码存储在计算 机可读介质上或通过计算机可读介质来传送。 计算机可读介质包括计算机存储介质和 通信介质, 该通信介质包括有助于将计算机程序从一个位置传送到另一个位置的任何 介质。 存储介质可以是能够被通用或专用计算机访问的任何可用介质。 作为例子而非 限制性的, 该计算机可读介质可以包括 RAM、 ROM、 EEPROM CD-ROM或其它光 盘存储设备、 磁盘存储设备或其它磁性存储设备, 或者是可以用于携带或存储形式为 指令或数据结构的所需程序代码并且能够被通用或专用计算机或者通用或专用处理器 访问的任何其它介质。 此外, 任何连接都可以适当地称为计算机可读介质。 例如, 如 果使用同轴线缆、 光纤线缆、 双绞线、 数字用户线路 (DSL) 或诸如红外线、 无线电 和微波的无线技术来从网站、 服务器或其它远程源发送软件, 则上述同轴线缆、 光纤 线缆、 双绞线、 DSL或诸如红外先、 无线电和微波的无线技术均包括在介质的定义。 如这里所使用的,磁盘和光盘包括压缩盘(CD)、激光盘、光盘、数字多功能盘(DVD)、 软盘、 蓝光盘, 其中磁盘通常磁性地再现数据, 而光盘利用激光光学地再现数据。 上 述内容的组合也应当包括在计算机可读介质的范围内。 尽管前面公开的内容示出了本发明的示例性实施例, 但是应当注意, 在不背离权 利要求限定的本发明的范围的前提下, 可以进行多种改变和修改。 根据这里描述的发 明实施例的方法权利要求的功能、 步骤和 /或动作不需以任何特定顺序执行。 此外, 尽 管本发明的元素可以以个体形式描述或要求, 但是也可以设想多个, 除非明确限制为 单数。 与上述方法相对应,本发明实施例还提供了一种基于 TCP协议的移动互联网 DNS 服务器, 图 3示出了根据本发明实施例的基于 TCP协议的移动互联网 DNS服务器的 方框示意图。 如图 3所示, 本发明实施例提供的基于 TCP协议的移动互联网 DNS服务器 300 包括域名接收单元 310、判断单元 320、解析结果获取单元 330、解析结果接收单元 340 和解析结果返回单元 350。 其中, 域名接收单元 310用于 DNS服务器接收移动终端浏览器通过 TCP协议发 送的域名解析请求,其中,该 DNS服务器为基于 TCP的移动互联网内的 DNS服务器; 判断单元 320用于确定 DNS服务器的缓存库或者 DNS数据库中无与该域名相匹配的 域名解析结果; 解析结果获取单元 330用于 DNS服务器向至少一个地域的 Bind缓存 服务器组发起域名解析请求, 其中, Bind缓存服务器组通过地域的不同运营商的路线 向公网 DNS发起域名解析请求; 解析结果接收单元 340用于 DNS服务器接收由 Bind 缓存服务器组发送的由公网 DNS返回的域名解析结果; 解析结果返回单元 350用于 DNS服务器选取域名解析结果返回给移动终端浏览器。 其中, 判断单元 320还用于确定 DNS服务器的缓存或者 DNS数据库中有与域名 相匹配的域名解析结果, 然后通过解析结果返回单元 350, 将在该域名解析结果中选 取域名解析结果, 返回给移动终端浏览器。 其中, 在解析结果获取单元 330中, Bind缓存服务器组由多个 Bind缓存服务器 组成, 且每个 Bind缓存服务器通过该地域的一个运营商的线路向公网 DNS服务器获 取域名解析结果。 另外, 本 DNS服务器还包括存储单元(图中未示出), 用于 DNS服务器将收到的 域名解析结果通过地域匹配过程将收到的域名解析结果归类存储于 DNS 服务器的缓 存库或者 DNS数据库中。 本发明实施例提供的基于 TCP的移动互联网 DNS服务器及其解析方法, 通过设 计一个基于 TCP协议的移动互联网内的 DNS服务器, 将原有的 UDP协议改为 TCP 协议,通过 TCP协议的链路保证机制实现 DNS服务器不受移动网络环境波动的影响, 并且通过多个地域当中的多组自建的 Bind缓存服务器发起标准 DNS查询, 实现单个 域名多记录查询, 可以同时查询一个域名下, 不同线路上的解析结果, 避免传统 DNS 服务器只能返回一个线路结果的缺陷,从而提升网页浏览时 DNS服务器的可用性和稳 定性。 所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描述的单元 的具体工作过程, 可以参考前述方法实施例中的对应过程, 在此不再赘述。 本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各示例的单 元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来实现。 这些功 能究竟以硬件还是软件方式来执行, 取决于技术方案的特定应用和设计约束条件。 专 业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能, 但是这种实 现不应认为超出本发明的范围。 如上参照附图以示例的方式描述了根据本发明实施例的基于 TCP协议的移动互联 网域名解析方法及 DNS服务器。但是, 本领域技术人员应当理解, 对于上述本发明所 提出的基于 TCP协议的移动互联网域名解析方法及 DNS服务器, 还可以在不脱离本 发明内容的基础上做出各种改进。 因此, 本发明的保护范围应当由所附的权利要求书 的内容确定。 The Bind cache server group sends the queried multiple domain name resolution results to the DNS server. The DNS server stores the received domain name resolution result in the DNS server's cache or DNS database. The DNS server sorts the received domain name resolution results into the cache pool or DNS database of the DNS server according to the query location and the operator classification. In a specific implementation of the present invention, the region matching process includes: matching the IP of the mobile terminal browser with the regional comparison table and matching the IMEI of the mobile terminal browser with the operator comparison table to obtain the domain name requested by the mobile terminal browser to be resolved. Territory and affiliated carrier. Because the website of the target domain name is used for load balancing, multiple IP addresses are used for DNS polling. Therefore, there may be multiple IP addresses corresponding to the domain name that is queried by a route in a region. After receiving the returned results, the DNS server first summarizes the results returned by the self-built Bind server group and the domain name resolution results recorded in the cache and DNS libraries, and then de-duplicates the results. That is, the result of the same IP under the same domain name in the analysis result is merged into one result, and the availability of the domain and domain name resolution result of the DNS server through the domain name resolution result (that is, whether the domain name resolution is frequently wrong) and the source of the domain name resolution result are further obtained. The operator determines the domain name resolution result and returns the result to the mobile terminal browser, step S280. Through the query of the Bind cache server group, the query of multiple records of a single domain name can be realized, that is, the parsing result on different lines can be queried simultaneously, so that even if one of the lines is not queried, it can be parsed by other line queries. result. A program for executing the TCP protocol-based mobile Internet domain name resolution method of the embodiment of the present invention may be stored in a computer readable storage medium. Accordingly, an embodiment of the present invention further provides a computer readable storage medium storing a program for performing a TCP Internet-based mobile Internet domain name resolution method according to an embodiment of the present invention. In addition, the mobile terminal of the present invention may be various handheld terminal devices, such as a mobile phone, a personal digital assistant (PDA), etc., and thus the scope of protection of the present invention should not be limited to a particular type of mobile terminal. Furthermore, the method according to the invention can also be implemented as a computer program executed by a CPU. When the computer program is executed by the CPU, the above-described functions defined in the method of the present invention are performed. Furthermore, the method steps and system units described above may also be implemented with a controller and a computer readable storage device for storing a computer program that causes the controller to implement the steps or unit functions described above. Moreover, it should be understood that a computer readable storage device (eg, a memory) described herein can be a volatile memory or a nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example and not limitation, non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash. Memory. Volatile memory can include random access memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM can be obtained in a variety of forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Storage devices of the synchronous link DRAM (SLDRAM) and direct Rambus RAM (DRRAM) 0 aspects are intended to comprise, without being limited to, these and other suitable types of memory. The various exemplary logical blocks, units, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, units, circuits, and steps have been described. Whether such functionality is implemented as software or as hardware depends on the particular application and design constraints imposed on the overall system. A person skilled in the art can implement the described functions in various ways for each specific application, but such implementation decisions should not be construed as causing a departure from the scope of the invention. The various exemplary logical blocks, units, and circuits described in connection with the disclosure herein can be implemented or executed with the following components designed to perform the functions described herein: general purpose processor, digital signal processor (DSP), dedicated An integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller or state machine. The processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration. The steps of a method or algorithm described in connection with the disclosure herein can be <RTI ID=0.0>> The software unit can reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, such that the processor can read information from or write information to the storage medium. In an alternative, the storage medium can be integrated with a processor. The processor and the storage medium can reside in an ASIC. The ASIC can reside in the user terminal. In an alternative, the processor and the storage medium may reside as a discrete component in the user terminal. In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted as one or more instructions or code on a computer readable medium. Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another. A storage medium may be any available media that can be accessed by a general purpose or special purpose computer. By way of example and not limitation, the computer readable medium may comprise RAM, ROM, EEPROM CD-ROM or other optical disk storage device, disk storage device or other magnetic storage device, or may be used for carrying or storing the form as an instruction or The required program code of the data structure and any other medium that can be accessed by a general purpose or special purpose computer or a general purpose or special purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if you use coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technology such as infrared, radio, and microwave to send software from a website, server, or other remote source, the coaxial cable Cables, fiber optic cables, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are all included in the definition of media. As used herein, a magnetic disk and an optical disk include a compact disk (CD), a laser disk, an optical disk, a digital versatile disk (DVD), a floppy disk, a Blu-ray disk, in which a disk generally reproduces data magnetically, and an optical disk optically reproduces data using a laser. . Combinations of the above should also be included within the scope of computer readable media. While the foregoing disclosure shows exemplary embodiments of the present invention, it should be understood that various changes and modifications may be made without departing from the scope of the invention. The functions, steps and/or actions of the method claims according to the embodiments of the invention described herein are not required to be performed in any particular order. In addition, although elements of the invention may be described or claimed in the form of an individual, many are contemplated, unless explicitly limited to the singular. Corresponding to the above method, the embodiment of the present invention further provides a mobile internet DNS server based on the TCP protocol, and FIG. 3 shows a block schematic diagram of a mobile internet DNS server based on the TCP protocol according to an embodiment of the invention. As shown in FIG. 3, the mobile internet DNS server 300 based on the TCP protocol provided by the embodiment of the present invention includes a domain name receiving unit 310, a determining unit 320, an analysis result obtaining unit 330, an analysis result receiving unit 340, and an analysis result returning unit 350. The domain name receiving unit 310 is configured to receive, by the DNS server, a domain name resolution request sent by the mobile terminal browser through the TCP protocol, where the DNS server is a DNS server in the mobile internet based on the TCP; the determining unit 320 is configured to determine the cache of the DNS server. The domain name resolution result is not matched with the domain name in the database or the DNS database; the parsing result obtaining unit 330 is configured to initiate a domain name resolution request to the Bind cache server group of the at least one region, where the Bind cache server group operates through different regions. The route of the quotient initiates a domain name resolution request to the public network DNS; the parsing result receiving unit 340 is configured to receive, by the DNS server, the domain name resolution result returned by the public network DNS sent by the Bind cache server group; the parsing result returning unit 350 is configured to select a domain name by the DNS server. The parsing result is returned to the mobile terminal browser. The determining unit 320 is further configured to determine a domain name parsing result that matches the domain name in the cache of the DNS server or the DNS database, and then the parsing result returning unit 350 is used to select the domain name parsing result in the domain name parsing result, and return to the mobile Terminal browser. In the parsing result obtaining unit 330, the Bind cache server group is composed of a plurality of Bind cache servers, and each Bind cache server obtains a domain name parsing result from a public network DNS server through a line of an operator in the area. In addition, the DNS server further includes a storage unit (not shown) for the DNS server to classify the received domain name resolution result by the geographical matching process, and store the domain name resolution result in the DNS server cache or DNS. In the database. The TCP-based mobile Internet DNS server and the parsing method thereof provided by the embodiment of the present invention, by designing a DNS server in the mobile Internet based on the TCP protocol, changing the original UDP protocol to the TCP protocol, and ensuring the link through the TCP protocol The mechanism realizes that the DNS server is not affected by the fluctuation of the mobile network environment, and initiates a standard DNS query through multiple sets of self-built Bind cache servers in multiple regions to implement a single domain name multi-record query, and can simultaneously query a domain name under different lines. The result of the analysis is to avoid the defect that the traditional DNS server can only return one line result, thereby improving the availability and stability of the DNS server during web browsing. A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the above-mentioned unit may refer to the corresponding process in the foregoing method embodiment, and details are not described herein again. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention. The mobile Internet domain name resolution method based on the TCP protocol and the DNS server according to an embodiment of the present invention are described by way of example with reference to the accompanying drawings. However, those skilled in the art should understand that the above-mentioned TCP protocol-based mobile Internet domain name resolution method and DNS server proposed by the present invention can also be variously modified without departing from the scope of the present invention. Therefore, the scope of the invention should be determined by the content of the appended claims.

Claims

权 利 要 求 书 、 一种基于 TCP协议的移动互联网域名解析方法, 其特征在于, 包括: A request for rights, a method for analyzing a domain name of a mobile Internet based on a TCP protocol, comprising:
DNS服务器接收移动终端浏览器通过 TCP协议发送的域名解析请求; 所述 DNS服务器确定无与所述域名解析请求相匹配的域名解析结果,则向 至少一个地域的缓存服务器组发起域名解析请求;  The DNS server receives the domain name resolution request sent by the mobile terminal browser through the TCP protocol; the DNS server determines that the domain name resolution result does not match the domain name resolution request, and initiates a domain name resolution request to the cache server group of the at least one region;
所述 DNS服务器接收由所述缓存服务器组发送的由所述公网 DNS返回的 域名解析结果; 以及  Receiving, by the DNS server, a domain name resolution result returned by the public network DNS sent by the cache server group;
所述 DNS服务器选取域名解析结果返回给所述移动终端浏览器。 、 根据权利要求 1所述的基于 TCP协议的移动互联网域名解析方法,其特征在于, 所述 DNS服务器确定无与所述域名解析请求相匹配的域名解析结果包括: 所述 DNS服务器确定所述 DNS服务器的缓存库或者 DNS数据库中无与所 述域名相匹配的域名解析结果。 、 根据权利要求 1所述的基于 TCP协议的移动互联网域名解析方法,其特征在于, 所述 DNS服务器为基于 TCP的移动互联网内的 DNS服务器。 、 根据权利要求 1所述的基于 TCP协议的移动互联网域名解析方法,其特征在于, 在所述 DNS服务器确定无与所述域名解析请求相匹配的域名解析结果,则向至 少一个地域的缓存服务器组发起域名解析请求之后, 所述方法还包括:  The DNS server selects a domain name resolution result and returns it to the mobile terminal browser. The method for parsing a mobile Internet domain name based on the TCP protocol according to claim 1, wherein the DNS server determines that the domain name resolution result that does not match the domain name resolution request comprises: the DNS server determining the DNS There is no domain name resolution result matching the domain name in the server's cache or DNS database. The method for analyzing a mobile Internet domain name based on a TCP protocol according to claim 1, wherein the DNS server is a DNS server in a TCP-based mobile internet. The method for analyzing a mobile Internet domain name based on the TCP protocol according to claim 1, wherein the DNS server determines that the domain name resolution result does not match the domain name resolution request, and then the cache server is configured to at least one region. After the group initiates the domain name resolution request, the method further includes:
所述缓存服务器组通过所述地域的不同运营商的路线向公网 DNS 发起域 名解析请求。 、 根据权利要求 1所述的基于 TCP协议的移动互联网域名解析方法,其特征在于, 在 DNS服务器接收移动终端浏览器通过 TCP协议发送的域名解析请求之后, 所述方法还包括: 确定所述 DNS服务器的缓存库或者 DNS数据库中有与所述 域名相匹配的域名解析结果, 然后在所述域名解析结果中选取域名解析结果返 回给所述移动终端浏览器。 、 根据权利要求 1所述的基于 TCP协议的移动互联网域名解析方法,其特征在于, 所述缓存服务器组由多个缓存服务器组成, 且每个缓存服务器通过所述地域的 一个运营商的线路向公网 DNS服务器获取所述域名解析结果。 、 根据权利要求 1所述的基于 TCP协议的移动互联网域名解析方法,其特征在于, 在所述 DNS服务器接收由所述缓存服务器组发送的由所述公网 DNS返回的域 名解析结果之后,还包括:所述 DNS服务器将收到的域名解析结果存储于所述 DNS服务器的缓存库或者 DNS数据库中。 、 根据权利要求 7所述的基于 TCP协议的移动互联网域名解析方法,其特征在于, 所述 DNS 服务器通过地域匹配过程将收到的域名解析结果归类存储于所述 DNS服务器的缓存库或者所述 DNS数据库中。 、 根据权利要求 1所述的基于 TCP协议的移动互联网域名解析方法,其特征在于, 在所述 DNS 服务器选取所述域名解析结果返回给所述移动终端浏览器的过程 中, 通过根据所述域名解析结果来源的地域、 所述域名解析结果的可用性以及 所述域名解析结果所来源的运营商, 选取所述域名解析结果并返回给所述移动 终端浏览器。 、 根据权利要求 1所述的基于 TCP协议的移动互联网域名解析方法,其特征在于, 所述 DNS服务器确定无与所述域名解析请求相匹配的域名解析结果包括: 所述 DNS 服务器首先确定其缓存库中是否有与所述域名解析请求所请求 解析的域名相匹配的域名解析结果, The cache server group initiates a domain name resolution request to the public network DNS through routes of different operators in the area. The method for parsing a mobile Internet domain name based on the TCP protocol according to claim 1, wherein after the DNS server receives the domain name resolution request sent by the mobile terminal browser through the TCP protocol, the method further includes: determining the DNS The cached database or the DNS database of the server has a domain name resolution result matching the domain name, and then the domain name resolution result is selected in the domain name resolution result and returned to the mobile terminal browser. The method for analyzing a mobile Internet domain name based on the TCP protocol according to claim 1, wherein the cache server group is composed of a plurality of cache servers, and each cache server passes a line of an operator of the area. The public network DNS server obtains the domain name resolution result. The method for parsing a mobile Internet domain name based on the TCP protocol according to claim 1, wherein after the DNS server receives the domain name resolution result returned by the public network DNS sent by the cache server group, The method includes: the DNS server stores the received domain name resolution result in a cache pool or a DNS database of the DNS server. The method for parsing a mobile Internet domain name based on the TCP protocol according to claim 7, wherein the DNS server classifies the received domain name resolution result in a cache pool or a location of the DNS server by a region matching process. In the DNS database. The method for parsing a mobile Internet domain name based on the TCP protocol according to claim 1, wherein in the process of the DNS server selecting the domain name resolution result and returning to the browser of the mobile terminal, The domain of the source of the analysis result, the availability of the domain name resolution result, and the operator from which the domain name resolution result is derived, the domain name resolution result is selected and returned to the mobile terminal browser. The method for parsing a mobile Internet domain name based on the TCP protocol according to claim 1, wherein the DNS server determines that the domain name resolution result does not match the domain name resolution request, and the DNS server first determines the cache. Whether there is a domain name resolution result in the library that matches the domain name requested by the domain name resolution request,
如果所述 DNS 缓存库中没有与所述域名解析请求所请求解析的域名相匹 配的域名解析结果,所述 DNS服务器向 DNS数据库发起查询以确定所述 DNS 数据库中是否有与所述域名解析请求所请求解析的域名相匹配的解析结果, 其 中,如果所述 DNS数据库中没有与所述域名解析请求所请求解析的域名相匹配 的解析结果,则所述 DNS服务器确定无与所述域名解析请求相匹配的域名解析 结果。 1、 根据权利要求 1所述的基于 TCP协议的移动互联网域名解析方法,其特征在于, 所述缓存服务器组为 Bind缓存服务器组。 、 一种基于 TCP协议的移动互联网 DNS服务器, 其特征在于, 包括:  If the DNS cache library does not have a domain name resolution result that matches the domain name requested by the domain name resolution request, the DNS server initiates a query to the DNS database to determine whether the domain name resolution request is in the DNS database. The parsing result of the domain name requested to be matched, wherein if the DNS database does not have a parsing result matching the domain name requested by the domain name resolution request, the DNS server determines that the domain name resolution request is not Match the results of the domain name resolution. The method for analyzing a mobile Internet domain name based on the TCP protocol according to claim 1, wherein the cache server group is a Bind cache server group. A mobile internet DNS server based on the TCP protocol, which is characterized by comprising:
域名接收单元,用于接收移动终端浏览器通过 TCP协议发送的域名解析请 求;  a domain name receiving unit, configured to receive a domain name resolution request sent by a mobile terminal browser through a TCP protocol;
判断单元, 用于确定无与所述域名解析请求相匹配的域名解析结果; 解析结果获取单元, 用于向至少一个地域的缓存服务器组发起域名解析请 求; 解析结果接收单元,用于接收由所述缓存服务器组发送的由所述公网 DNS 返回的域名解析结果; 以及 a determining unit, configured to determine that the domain name resolution result does not match the domain name resolution request; and the parsing result obtaining unit is configured to initiate a domain name resolution request to the cache server group of the at least one region; An analysis result receiving unit, configured to receive a domain name resolution result returned by the public network DNS sent by the cache server group; and
解析结果返回单元, 用于选取域名解析结果返回给所述移动终端浏览器。 、 根据权利要求 12所述的基于 TCP协议的移动互联网 DNS服务器,其特征在于, 所述 DNS服务器确定无与所述域名解析请求相匹配的域名解析结果包括: 所述 DNS服务器确定所述 DNS服务器的缓存库或者 DNS数据库中无与所 述域名相匹配的域名解析结果。 、 根据权利要求 12所述的基于 TCP协议的移动互联网 DNS服务器,其特征在于, 所述 DNS服务器为基于 TCP的移动互联网内的 DNS服务器, 在所述 DNS服 务器确定无与所述域名解析请求相匹配的域名解析结果, 则向至少一个地域的 缓存服务器组发起域名解析请求之后, 所述方法还包括:  The parsing result returning unit is configured to select a domain name parsing result and return it to the mobile terminal browser. The mobile internet DNS server based on the TCP protocol according to claim 12, wherein the DNS server determines that the domain name resolution result that does not match the domain name resolution request comprises: the DNS server determining the DNS server There is no domain name resolution result matching the domain name in the cache library or the DNS database. The mobile internet DNS server based on the TCP protocol according to claim 12, wherein the DNS server is a DNS server in a mobile network based on TCP, and the DNS server determines that there is no request for the domain name resolution After the domain name resolution request is sent to the cache server group of the at least one region, the method further includes:
所述缓存服务器组通过所述地域的不同运营商的路线向公网 DNS 发起域 名解析请求。 、 如权利要求 12所述的基于 TCP协议的移动互联网 DNS服务器, 其特征在于, 所述判断单元还用于确定所述 DNS服务器的缓存或者 DNS数据库中有与所述 域名相匹配的域名解析结果, 然后通过所述解析结果返回单元, 将在所述域名 解析结果中选取域名解析结果, 返回给所述移动终端浏览器。 、 如权利要求 12所述的基于 TCP协议的移动互联网 DNS服务器, 其特征在于, 所述缓存服务器组由多个缓存服务器组成, 且每个缓存服务器通过所述地域的 一个运营商的线路向公网 DNS服务器获取所述域名解析结果,所述缓存服务器 组为 Bind缓存服务器组。 、 如权利要求 12所述的基于 TCP协议的移动互联网 DNS服务器, 其特征在于, 还包括:  The cache server group initiates a domain name resolution request to the public network DNS through routes of different operators in the area. The mobile internet DNS server based on the TCP protocol according to claim 12, wherein the determining unit is further configured to determine a domain name resolution result that matches the domain name in a cache or a DNS database of the DNS server. And then, by using the parsing result returning unit, the domain name parsing result is selected in the domain name parsing result, and returned to the mobile terminal browser. The mobile internet DNS server based on the TCP protocol of claim 12, wherein the cache server group is composed of a plurality of cache servers, and each cache server passes the line of an operator of the area to the public The network DNS server obtains the domain name resolution result, and the cache server group is a Bind cache server group. The mobile internet DNS server based on the TCP protocol of claim 12, further comprising:
存储单元,用于所述 DNS服务器将收到的域名解析结果通过地域匹配过程 将收到的域名解析结果归类存储于所述 DNS服务器的缓存库或者所述 DNS数 据库中。 、 一种具有处理器可执行的程序代码的计算机可读介质, 其特征在于, 在被执行 时, 所述程序代码使得 DNS服务器执行下述步骤:  And a storage unit, configured to store, by the DNS server, the received domain name resolution result by the geographical matching process, and store the received domain name resolution result in the cache pool of the DNS server or the DNS database. A computer readable medium having processor-executable program code, wherein, when executed, the program code causes a DNS server to perform the steps of:
接收移动终端浏览器通过 TCP协议发送的域名解析请求; 确定无与所述域名解析请求相匹配的域名解析结果, 则向至少一个地域的 缓存服务器组发起域名解析请求; Receiving a domain name resolution request sent by the mobile terminal browser through the TCP protocol; Determining a domain name resolution result that does not match the domain name resolution request, and initiating a domain name resolution request to the cache server group of the at least one region;
接收由所述缓存服务器组发送的由所述公网 DNS返回的域名解析结果;以 及  Receiving, by the cache server group, a domain name resolution result returned by the public network DNS; and
选取域名解析结果返回给所述移动终端浏览器。 一种计算机程序, 其特征在于, 用于执行以下步骤:  The domain name resolution result is selected and returned to the mobile terminal browser. A computer program, characterized in that it is used to perform the following steps:
接收移动终端浏览器通过 TCP协议发送的域名解析请求;  Receiving a domain name resolution request sent by the mobile terminal browser through the TCP protocol;
确定无与所述域名解析请求相匹配的域名解析结果, 则向至少一个地域的 缓存服务器组发起域名解析请求;  Determining that the domain name resolution result does not match the domain name resolution request, and initiating a domain name resolution request to the cache server group of the at least one region;
接收由所述缓存服务器组发送的由所述公网 DNS返回的域名解析结果;以 及  Receiving, by the cache server group, a domain name resolution result returned by the public network DNS; and
选取域名解析结果返回给所述移动终端浏览器。  The domain name resolution result is selected and returned to the mobile terminal browser.
PCT/CN2014/073640 2013-06-24 2014-03-18 Domain name resolution method based on tcp protocol in mobile internet and dns server WO2014206118A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310253679.0 2013-06-24
CN201310253679.0A CN103281409B (en) 2013-06-24 2013-06-24 Based on mobile Internet domain name analytic method and the dns server of Transmission Control Protocol

Publications (1)

Publication Number Publication Date
WO2014206118A1 true WO2014206118A1 (en) 2014-12-31

Family

ID=49063854

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/073640 WO2014206118A1 (en) 2013-06-24 2014-03-18 Domain name resolution method based on tcp protocol in mobile internet and dns server

Country Status (2)

Country Link
CN (1) CN103281409B (en)
WO (1) WO2014206118A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917851A (en) * 2015-05-08 2015-09-16 亚信科技(南京)有限公司 Information processing method and DNS buffer server

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281409B (en) * 2013-06-24 2016-03-16 广州市动景计算机科技有限公司 Based on mobile Internet domain name analytic method and the dns server of Transmission Control Protocol
CN103747005B (en) * 2014-01-17 2018-01-05 山石网科通信技术有限公司 The means of defence and equipment that DNS cache is poisoned
CN106161668B (en) * 2015-04-28 2019-06-28 阿里巴巴集团控股有限公司 Generate the method, apparatus and server of domain name mapping
CN104796502A (en) * 2015-05-08 2015-07-22 上海斐讯数据通信技术有限公司 DNS (domain name system) system and method
CN104869182A (en) * 2015-05-28 2015-08-26 广州华多网络科技有限公司 Domain name resolution method and device
CN105357212A (en) * 2015-11-23 2016-02-24 北京天地互连信息技术有限公司 DNS end-to-end analysis method capable of ensuring safety and privacy
CN106331216B (en) * 2016-09-13 2020-11-03 腾讯科技(深圳)有限公司 Domain name resolution method and device
CN106686156B (en) * 2016-12-28 2020-03-13 北京四达时代软件技术股份有限公司 Internet audio and video domain name resolution method and device
CN107846483A (en) * 2017-11-10 2018-03-27 北京粉笔蓝天科技有限公司 A kind of domain name analytic method, system and server
CN108718347B (en) * 2018-05-18 2021-12-03 腾讯科技(深圳)有限公司 Domain name resolution method, system, device and storage medium
CN109413229A (en) * 2018-12-20 2019-03-01 全链通有限公司 Domain name analytic method, equipment, system and storage medium
CN109788082B (en) * 2019-01-23 2021-09-28 深圳互联先锋科技有限公司 Method and system for efficient domain name detection
CN110730251B (en) * 2019-09-10 2022-11-29 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for analyzing domain name
CN111245944B (en) * 2020-01-14 2022-10-04 广州虎牙科技有限公司 Domain name resolution method and device, electronic equipment and storage medium
CN111447296B (en) * 2020-03-10 2023-03-24 达闼机器人股份有限公司 Domain name resolution method, domain name resolution device, computing equipment and computer storage medium
CN111343299B (en) * 2020-03-12 2022-07-05 宋磊 Multi-protocol active detection type intelligent DNS and method thereof
CN112887447A (en) * 2021-01-22 2021-06-01 北京金山云网络技术有限公司 Domain name query method and device and domain name server
CN114401247A (en) * 2022-01-14 2022-04-26 深圳市和讯华谷信息技术有限公司 High-concurrency service request processing system based on bind service

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025794A (en) * 2010-01-22 2011-04-20 中国移动通信集团北京有限公司 Domain name resolution method, DNS (Domain Name Server) server and system
CN102216923A (en) * 2008-11-17 2011-10-12 亚马逊技术有限公司 Request routing and updating routing information utilizing client location information
US20110320524A1 (en) * 2010-06-29 2011-12-29 Alcatel-Lucent Usa Inc. Technique For Effectively Reducing Latency Of Locating A Resource On A Network
CN103281409A (en) * 2013-06-24 2013-09-04 广州菁英信息技术有限公司 Domain name resolution method of mobile internet and DNS server based on TCP protocol

Family Cites Families (3)

* 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
CN101764855A (en) * 2009-12-30 2010-06-30 福建星网锐捷网络有限公司 Method, device and system for providing domain name resolution services
CN102025793A (en) * 2010-01-22 2011-04-20 中国移动通信集团北京有限公司 Domain name resolution method and system and DNS in IP network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102216923A (en) * 2008-11-17 2011-10-12 亚马逊技术有限公司 Request routing and updating routing information utilizing client location information
CN102025794A (en) * 2010-01-22 2011-04-20 中国移动通信集团北京有限公司 Domain name resolution method, DNS (Domain Name Server) server and system
US20110320524A1 (en) * 2010-06-29 2011-12-29 Alcatel-Lucent Usa Inc. Technique For Effectively Reducing Latency Of Locating A Resource On A Network
CN103281409A (en) * 2013-06-24 2013-09-04 广州菁英信息技术有限公司 Domain name resolution method of mobile internet and DNS server based on TCP protocol

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917851A (en) * 2015-05-08 2015-09-16 亚信科技(南京)有限公司 Information processing method and DNS buffer server
CN104917851B (en) * 2015-05-08 2019-01-22 成都亚信网络安全产业技术研究院有限公司 Information processing method and dns caching server

Also Published As

Publication number Publication date
CN103281409A (en) 2013-09-04
CN103281409B (en) 2016-03-16

Similar Documents

Publication Publication Date Title
WO2014206118A1 (en) Domain name resolution method based on tcp protocol in mobile internet and dns server
CN106302842B (en) Domain name resolution method, device and system
WO2017114206A1 (en) Method and device for processing short link, and short link server
US9148332B2 (en) Content delivery network
US8321503B2 (en) Context-specific network resource addressing model for distributed services
US10033818B2 (en) Using listen ranges to deliver content to electronic devices from local caching servers
WO2021057889A1 (en) Data processing method and apparatus, electronic device, and storage medium
TWI656772B (en) Method, system, web server, browser and GPS for obtaining webpage
EP2924941B1 (en) Method and device for preventing service illegal access
US11165885B2 (en) Routing method and device
US9444780B1 (en) Content provided DNS resolution validation and use
WO2013143403A1 (en) Method and system for accessing website
WO2013185693A1 (en) Method for router to process web page data, and router
US20160021114A1 (en) Method and Server of Remote Information Query
WO2015043455A1 (en) Data transmission method, device, and system
WO2020228038A1 (en) Domain name processing method, apparatus, electronic device, and storage medium
WO2020206660A1 (en) Network resource request method and apparatus, electronic device and storage medium
WO2019052058A1 (en) Domain name redirecting method and system
WO2016070822A1 (en) Media resource feedback method and device
US20140337536A1 (en) Method and apparatus for data communication
WO2020088170A1 (en) Domain name system configuration method and related apparatus
WO2017166524A1 (en) Domain name parsing method and apparatus
CN110933193B (en) Domain name resolution method and device, electronic equipment and computer readable storage medium
WO2013120315A1 (en) Method for processing domain name information, wireless router, and client
US10122630B1 (en) Methods for network traffic presteering and devices thereof

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: 14816722

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: 14816722

Country of ref document: EP

Kind code of ref document: A1