CN103595825A - Domain name resolution detection method, domain name resolution detection device and server - Google Patents
Domain name resolution detection method, domain name resolution detection device and server Download PDFInfo
- Publication number
- CN103595825A CN103595825A CN201310512140.2A CN201310512140A CN103595825A CN 103595825 A CN103595825 A CN 103595825A CN 201310512140 A CN201310512140 A CN 201310512140A CN 103595825 A CN103595825 A CN 103595825A
- Authority
- CN
- China
- Prior art keywords
- address
- address list
- domain name
- list
- client
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了域名解析检测方法及装置、服务器,服务器根据客户端发送的域名解析请求中包括的域名,查询第一地址列表,获取与所述域名对应的第一IP地址列表,所述第一IP地址列表中保存有多个网络运营商当前分别提供的与所述域名对应的IP地址;根据所述域名,查询第二地址列表,获取与所述域名对应的第二IP地址列表,所述第二IP地址列表中保存有网站侧服务器预设的所述多个网络运营商提供的与所述域名对应的IP地址;将所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,将匹配结果发送给所述客户端。可以提高域名解析检测效率。
The invention discloses a domain name resolution detection method and device, and a server. The server queries the first address list according to the domain name included in the domain name resolution request sent by the client, and obtains the first IP address list corresponding to the domain name. The first IP addresses currently provided by a plurality of network operators corresponding to the domain name are stored in the IP address list; according to the domain name, query the second address list to obtain the second IP address list corresponding to the domain name, the The IP address corresponding to the domain name provided by the plurality of network operators preset by the server on the website side is stored in the second IP address list; the IP addresses in the first IP address list and the second Each IP address in the IP address list is matched, and the matching result is sent to the client. It can improve the domain name resolution detection efficiency.
Description
技术领域technical field
本发明实施例涉及互联网技术领域,尤其涉及一种域名解析检测方法及装置、服务器。The embodiments of the present invention relate to the technical field of the Internet, in particular to a domain name resolution detection method and device, and a server.
背景技术Background technique
在互联网协议(Internet Protocol,IP)网络中,域名服务(Domain NameService,DNS)的主要功能是将易于人们记忆的域名(Domain Name)与网络可识别的IP地址作转换。域名和IP地址之间的转换称为域名解析,执行域名解析的网络主机可以称为DNS服务器。例如,客户端需要访问域名为www.360.com的网站时,首先发送包含该域名的域名解析请求到该客户端接入的互联网服务提供商(Internet Service Provider,ISP)的本地DNS服务器,本地DNS服务器通过查询确定域名www.360.com对应的IP地址,客户端则通过该IP地址连接相应的网站侧服务器。In the Internet Protocol (IP) network, the main function of Domain Name Service (DNS) is to convert the domain name (Domain Name) that is easy for people to remember and the IP address that can be recognized by the network. The conversion between domain name and IP address is called domain name resolution, and the network host that performs domain name resolution can be called DNS server. For example, when a client needs to access a website with the domain name www.360.com, it first sends a domain name resolution request containing the domain name to the local DNS server of the Internet Service Provider (ISP) that the client accesses. The DNS server determines the IP address corresponding to the domain name www.360.com through query, and the client connects to the corresponding website server through the IP address.
为了保证客户端访问某网站域名时获得最快的访问速度,通常,将该网站域名定向到该客户端接入的ISP提供的与该网站域名对应的IP地址。例如,当客户端的接入ISP是第一网络运营商,该客户端在浏览器中输入某网站域名时即可触发域名解析请求,其中,域名解析请求中包括输入的网站域名,第一网络运营商的本地DNS服务器将该网站域名定向到第一网络运营商提供的与该网站域名对应的第一IP地址;又例如,当客户端的接入ISP是第二网络运营商时,第二网络运营商的本地DNS服务器将该网站域名定向到第二网络运营商提供的与该网站域名对应的第二IP地址。In order to ensure that the client obtains the fastest access speed when accessing a certain website domain name, usually, the website domain name is directed to the IP address corresponding to the website domain name provided by the ISP accessed by the client. For example, when the client's access ISP is the first network operator, the client can trigger a domain name resolution request when entering a website domain name in the browser, wherein the domain name resolution request includes the input website domain name, and the first network operator The provider's local DNS server directs the website domain name to the first IP address corresponding to the website domain name provided by the first network operator; for another example, when the client's access ISP is the second network operator, the second network operator The provider's local DNS server directs the website domain name to the second IP address corresponding to the website domain name provided by the second network operator.
为了不影响客户端访问网站域名,在实际应用中,当网站侧服务器在维护时,例如,网站侧服务器只开启第一网络运营商提供的与该域名对应IP地址,将第二网络运营商提供的与该域名对应IP地址进行切断,此时,通过第二网络运营商接入的用户设备发起域名解析请求,第二网络运营商的本地DNS服务器将网站域名定向到第一网络运营商提供的与该网站域名对应的第一IP地址;当网站侧服务器在维护结束后,需要重新开启第二网络运营商提供的与该域名对应IP地址,由于DNS服务器解析域名对应的IP地址存在时效性,为了不影响客户端访问网站域名,以及保证客户端访问某网站域名时获得最快的访问速度,需要对重新开启的第二网络运营商提供的与该域名对应IP地址进行检测。In order not to affect the client's access to the domain name of the website, in practical applications, when the server on the website side is under maintenance, for example, the server on the website side only opens the IP address corresponding to the domain name provided by the first network operator, and uses the IP address provided by the second network operator. The IP address corresponding to the domain name is cut off. At this time, the user equipment accessed through the second network operator initiates a domain name resolution request, and the local DNS server of the second network operator directs the website domain name to the domain name provided by the first network operator. The first IP address corresponding to the domain name of the website; after the maintenance of the server on the website side, it is necessary to restart the IP address corresponding to the domain name provided by the second network operator, because the DNS server resolves the IP address corresponding to the domain name due to timeliness. In order not to affect the client's access to the domain name of the website, and to ensure that the client obtains the fastest access speed when accessing a certain website domain name, it is necessary to detect the IP address corresponding to the domain name provided by the reopened second network operator.
在现有技术中,需要通过人工登陆第二网络运营商的本地DNS服务器去检测验证第二网络运营商提供的与该域名对应IP地址,然而,在实际应用中,互联网网站提供成千上万的不同的域名,每个域名对应不同网络运营商提供的与该域名对应的IP地址,如果需要通过人工分别登陆不同网络运营商的本地DNS服务器去一一验证,需要花费大量的时间,因此,存在域名解析检测效率低的问题。In the prior art, it is necessary to manually log in to the local DNS server of the second network operator to detect and verify the IP address corresponding to the domain name provided by the second network operator. However, in practical applications, Internet websites provide thousands of Each domain name corresponds to the IP address corresponding to the domain name provided by different network operators. If you need to manually log in to the local DNS servers of different network operators to verify one by one, it will take a lot of time. Therefore, There is a problem of low domain name resolution detection efficiency.
发明内容Contents of the invention
本发明实施例提供一种域名解析检测方法及装置、服务器,用以解决现有技术中存在的域名解析检测效率低的问题。Embodiments of the present invention provide a domain name resolution detection method, device, and server to solve the problem of low domain name resolution detection efficiency in the prior art.
第一方面,本发明提供一种域名解析检测方法,包括:In a first aspect, the present invention provides a domain name resolution detection method, comprising:
服务器根据客户端发送的域名解析请求中包括的域名,查询第一地址列表,获取与所述域名对应的第一IP地址列表,所述第一IP地址列表中保存有多个网络运营商当前分别提供的与所述域名对应的IP地址;According to the domain name included in the domain name resolution request sent by the client, the server queries the first address list to obtain the first IP address list corresponding to the domain name. The provided IP address corresponding to the domain name;
根据所述域名,查询第二地址列表,获取与所述域名对应的第二IP地址列表,所述第二IP地址列表中保存有网站侧服务器预设的所述多个网络运营商提供的与所述域名对应的IP地址;According to the domain name, query the second address list to obtain the second IP address list corresponding to the domain name, and the second IP address list stores the information provided by the plurality of network operators preset by the server on the website side. The IP address corresponding to the domain name;
将所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,将匹配结果发送给所述客户端。Match each IP address in the first IP address list with each IP address in the second IP address list, and send the matching result to the client.
可选地,所述将所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,包括:Optionally, the matching each IP address in the first IP address list with each IP address in the second IP address list includes:
若确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址相同,则确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址相匹配,将匹配成功的结果发送给所述客户端;或If it is determined that each IP address in the first IP address list is the same as each IP address in the second IP address list, then determine that each IP address in the first IP address list is the same as the second IP address Each IP address in the list is matched, and the result of successful matching is sent to the client; or
若确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址不相同,则确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址不匹配,将匹配不成功的结果发送给所述客户端。If it is determined that each IP address in the first IP address list is different from each IP address in the second IP address list, then determine that each IP address in the first IP address list is different from the second IP address The IP addresses in the address list do not match, and a result of unsuccessful matching is sent to the client.
可选地,所述查询第一地址列表之前,包括:Optionally, before querying the first address list, it includes:
所述服务器在预设的周期时间分别从所述多个网络运营商对应的本地服务器中获取对应的网络运营商提供的与所述域名对应的IP地址;The server obtains the IP address corresponding to the domain name provided by the corresponding network operator from the local servers corresponding to the plurality of network operators at a preset cycle time;
将获取的所述多个网络运营商提供的与所述域名对应的IP地址保存到所述第一IP地址列表中。saving the obtained IP addresses provided by the plurality of network operators and corresponding to the domain names in the first IP address list.
可选地,在第三种可选的实现方式中,所述获取与所述域名对应的第一IP地址列表之后,包括:Optionally, in the third optional implementation manner, after obtaining the first IP address list corresponding to the domain name, the method includes:
所述服务器对所述第一IP地址列表中包括的各IP地址进行消重处理;The server performs deduplication processing on each IP address included in the first IP address list;
将消重处理后的所述第一IP地址列表中包括的各IP地址进行过滤处理。Filtering is performed on each IP address included in the first IP address list after deduplication processing.
可选地,所述将所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,包括:Optionally, the matching each IP address in the first IP address list with each IP address in the second IP address list includes:
所述服务器将消重和过滤处理之后所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,并将匹配结果发送给所述客户端。The server matches each IP address in the first IP address list with each IP address in the second IP address list after deduplication and filtering processing, and sends the matching result to the client.
第二方面,本发明提供一种域名解析检测装置,包括:In a second aspect, the present invention provides a domain name resolution detection device, comprising:
获取模块,适于根据客户端发送的域名解析请求中包括的域名,查询第一地址列表,获取与所述域名对应的第一IP地址列表,所述第一IP地址列表中保存有多个网络运营商当前分别提供的与所述域名对应的IP地址;The obtaining module is adapted to query the first address list according to the domain name included in the domain name resolution request sent by the client, and obtain the first IP address list corresponding to the domain name, and the first IP address list stores multiple network addresses. The IP address corresponding to the domain name currently provided by the operator;
所述获取模块,适于根据所述域名,查询第二地址列表,获取与所述域名对应的第二IP地址列表,所述第二IP地址列表中保存有网站侧服务器预设的所述多个网络运营商提供的与所述域名对应的IP地址;The obtaining module is adapted to query a second address list according to the domain name, and obtain a second IP address list corresponding to the domain name, and the second IP address list stores the multiple addresses preset by the server on the website side. An IP address corresponding to the domain name provided by a network operator;
匹配模块,适于将所述获取模块获取的第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,将匹配结果发送给所述客户端。The matching module is adapted to match each IP address in the first IP address list acquired by the acquisition module with each IP address in the second IP address list, and send the matching result to the client.
可选地,所述匹配模块具体适于:Optionally, the matching module is specifically adapted to:
若确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址相同,则确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址相匹配,将匹配成功的结果发送给所述客户端;或If it is determined that each IP address in the first IP address list is the same as each IP address in the second IP address list, then determine that each IP address in the first IP address list is the same as the second IP address Each IP address in the list is matched, and the result of successful matching is sent to the client; or
若确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址不相同,则确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址不匹配,将匹配不成功的结果发送给所述客户端。If it is determined that each IP address in the first IP address list is different from each IP address in the second IP address list, then determine that each IP address in the first IP address list is different from the second IP address The IP addresses in the address list do not match, and a result of unsuccessful matching is sent to the client.
可选地,所述获取模块,还适于在预设的周期时间分别从所述多个网络运营商对应的本地服务器中获取对应的网络运营商提供的与所述域名对应的IP地址;Optionally, the obtaining module is further adapted to obtain the IP address corresponding to the domain name provided by the corresponding network operator from the local servers corresponding to the plurality of network operators at a preset cycle time;
可选地,所述装置还包括:Optionally, the device also includes:
保存模块,适于将所述获取模块获取的所述多个网络运营商提供的与所述域名对应的IP地址保存到所述第一IP地址列表中。The saving module is adapted to save the IP addresses corresponding to the domain names provided by the plurality of network operators obtained by the obtaining module into the first IP address list.
可选地,所述装置还包括:Optionally, the device also includes:
消重模块,适于对所述第一IP地址列表中包括的各IP地址进行消重处理;A deduplication module, adapted to perform deduplication processing on each IP address included in the first IP address list;
过滤模块,适于将所述消重模块处理后的所述第一IP地址列表中包括的各IP地址进行过滤处理。The filtering module is adapted to filter the IP addresses included in the first IP address list processed by the deduplication module.
可选地,所述匹配模块具体适于:Optionally, the matching module is specifically adapted to:
将所述消重模块和所述过滤模块处理之后的所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,并将匹配结果发送给所述客户端。Match each IP address in the first IP address list processed by the deduplication module and the filtering module with each IP address in the second IP address list, and send the matching result to the client.
第三方面,本发明提供一种服务器,包括处理器、存储器和通信接口,所述处理器、存储器和通信接口之间通过通信总线连接,所述存储器中保存有实现域名解析检测方法的指令;当所述处理器调取所述存储器中保存的指令时,可以执行如下步骤:In a third aspect, the present invention provides a server, including a processor, a memory, and a communication interface, wherein the processor, the memory, and the communication interface are connected through a communication bus, and the memory stores instructions for implementing a domain name resolution detection method; When the processor retrieves the instructions stored in the memory, the following steps may be performed:
所述处理器根据所述通信接口接收的域名解析请求中包括的域名,查询第一地址列表,获取与所述域名对应的第一IP地址列表,所述第一IP地址列表中保存有多个网络运营商当前分别提供的与所述域名对应的IP地址;The processor queries the first address list according to the domain name included in the domain name resolution request received by the communication interface, and obtains a first IP address list corresponding to the domain name, and the first IP address list stores a plurality of The IP address corresponding to the domain name currently provided by the network operator;
根据所述域名,查询第二地址列表,获取与所述域名对应的第二IP地址列表,所述第二IP地址列表中保存有网站侧服务器预设的所述多个网络运营商提供的与所述域名对应的IP地址;According to the domain name, query the second address list to obtain the second IP address list corresponding to the domain name, and the second IP address list stores the information provided by the plurality of network operators preset by the server on the website side. The IP address corresponding to the domain name;
将所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,将匹配结果通过所述通信接口发送给所述客户端。Match each IP address in the first IP address list with each IP address in the second IP address list, and send the matching result to the client through the communication interface.
可选地,所述将所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,包括:Optionally, the matching each IP address in the first IP address list with each IP address in the second IP address list includes:
若确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址相同,则确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址相匹配,将匹配成功的结果发送给所述客户端;或If it is determined that each IP address in the first IP address list is the same as each IP address in the second IP address list, then determine that each IP address in the first IP address list is the same as the second IP address Each IP address in the list is matched, and the result of successful matching is sent to the client; or
若确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址不相同,则确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址不匹配,将匹配不成功的结果发送给所述客户端。If it is determined that each IP address in the first IP address list is different from each IP address in the second IP address list, then determine that each IP address in the first IP address list is different from the second IP address The IP addresses in the address list do not match, and a result of unsuccessful matching is sent to the client.
可选地,所述查询第一地址列表之前,包括:Optionally, before querying the first address list, it includes:
所述处理器在预设的周期时间分别从所述多个网络运营商对应的本地服务器中获取对应的网络运营商提供的与所述域名对应的IP地址;The processor obtains the IP address corresponding to the domain name provided by the corresponding network operator from the local servers corresponding to the plurality of network operators at a preset cycle time;
将获取的所述多个网络运营商提供的与所述域名对应的IP地址保存到所述第一IP地址列表中。saving the obtained IP addresses provided by the plurality of network operators and corresponding to the domain names in the first IP address list.
可选地,所述获取与所述域名对应的第一IP地址列表之后,包括:Optionally, after obtaining the first IP address list corresponding to the domain name, it includes:
所述处理器对所述第一IP地址列表中包括的各IP地址进行消重处理;The processor performs deduplication processing on each IP address included in the first IP address list;
将消重处理后的所述第一IP地址列表中包括的各IP地址进行过滤处理。Filtering is performed on each IP address included in the first IP address list after deduplication processing.
可选地,所述将所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,包括:Optionally, the matching each IP address in the first IP address list with each IP address in the second IP address list includes:
所述处理器将消重和过滤处理之后所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,并将匹配结果通过所述通信接口发送给所述客户端。The processor matches each IP address in the first IP address list with each IP address in the second IP address list after deduplication and filtering processing, and sends the matching result to the the client.
本发明实施例的服务器根据客户端发送的域名解析请求中包括的域名,查询第一地址列表,获取与所述域名对应的第一IP地址列表,所述第一IP地址列表中保存有多个网络运营商当前分别提供的与所述域名对应的IP地址;根据所述域名,查询第二地址列表,获取与所述域名对应的第二IP地址列表,所述第二IP地址列表中保存有网站侧服务器预设的所述多个网络运营商提供的与所述域名对应的IP地址;进一步地,将所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,并将匹配结果发送给所述客户端。According to the domain name included in the domain name resolution request sent by the client, the server in the embodiment of the present invention queries the first address list and obtains the first IP address list corresponding to the domain name. The first IP address list stores a plurality of The IP addresses corresponding to the domain names currently provided by the network operators; according to the domain names, query the second address list to obtain the second IP address list corresponding to the domain names, and the second IP address list stores the The IP addresses corresponding to the domain names provided by the plurality of network operators preset by the server on the website side; further, combining the IP addresses in the first IP address list with the IP addresses in the second IP address list Each IP address is matched, and the matching result is sent to the client.
由于本实施例服务器可以自动更新多个网络运营商当前分别提供的与各域名对应的IP地址,不需要网站侧服务器通过人工分别登陆多个网络运营商的本地DNS服务器去一一检测验证网站侧服务器预设的所述多个网络运营商提供的与各域名对应的IP地址,因此,可以提高域名解析检测效率。Since the server in this embodiment can automatically update the IP addresses corresponding to the domain names currently provided by multiple network operators, there is no need for the server on the website side to manually log in to the local DNS servers of multiple network operators to check and verify the website side one by one. The server presets the IP addresses provided by the plurality of network operators and corresponds to each domain name, so domain name resolution and detection efficiency can be improved.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art.
地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。Specifically, the drawings in the following description are some embodiments of the present invention, and those skilled in the art can obtain other drawings according to these drawings without any creative effort.
图1为本发明一实施例提供的域名解析检测方法的流程示意图;FIG. 1 is a schematic flow diagram of a domain name resolution detection method provided by an embodiment of the present invention;
图2为本发明另一实施例提供的域名解析检测方法的流程示意图;Fig. 2 is a schematic flow chart of a domain name resolution detection method provided by another embodiment of the present invention;
图3为本发明另一实施例提供的域名解析检测装置的结构示意图;FIG. 3 is a schematic structural diagram of a domain name resolution detection device provided by another embodiment of the present invention;
图4为本发明另一实施例提供的服务器的结构示意图。Fig. 4 is a schematic structural diagram of a server provided by another embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本发明实施例中所述的服务器可以是位于云端的DNS服务器。The server described in the embodiment of the present invention may be a DNS server located in the cloud.
图1为本发明一实施例提供的域名解析检测方法的流程示意图,如图1所述,本实施例的域名解析检测方法包括:Fig. 1 is a schematic flow chart of a method for detecting domain name resolution provided by an embodiment of the present invention. As shown in Fig. 1, the method for detecting domain name resolution in this embodiment includes:
101、服务器根据客户端发送的域名解析请求中包括的域名,查询第一地址列表,获取与所述域名对应的第一IP地址列表,所述第一IP地址列表中保存有多个网络运营商当前分别提供的与所述域名对应的IP地址。101. The server queries the first address list according to the domain name included in the domain name resolution request sent by the client, and obtains a first IP address list corresponding to the domain name, where multiple network operators are stored in the first IP address list The currently provided IP addresses corresponding to the domain names.
在本发明的一个可选实施方式中,步骤101之前包括:In an optional embodiment of the present invention, before
服务器在预设的周期时间分别从所述多个网络运营商对应的本地服务器中获取对应的网络运营商提供的与所述域名对应的IP地址;The server obtains the IP address corresponding to the domain name provided by the corresponding network operator from the local servers corresponding to the plurality of network operators at a preset cycle time;
将获取的所述多个网络运营商提供的与所述域名对应的IP地址保存到所述第一IP地址列表中。saving the obtained IP addresses provided by the plurality of network operators and corresponding to the domain names in the first IP address list.
具体实现时,为了减少服务器在动态更新第一地址列表时占用的网络开销或流量,本实施例中,服务器例如可以预设在每日凌晨定时启动地址列表自动更新程序,分别从多个网络运营商本地的DNS服务器中获取域名和IP地址之间的对应关系,进一步地,还可以判断每个域名与对应IP地址间的连通性,确定IP地址的可用性,将不可用的IP地址删除,可以保持地址列表的健壮性,确保域名解析的覆盖率和正确率,之后将可用的域名及其对应IP地址保存到第一地址列表中与域名对应的IP地址列表中。During specific implementation, in order to reduce the network overhead or traffic occupied by the server when dynamically updating the first address list, in this embodiment, for example, the server can be preset to start the automatic update program of the address list in the early morning every day, and operate from multiple networks respectively. The corresponding relationship between the domain name and the IP address can be obtained from the local DNS server of the merchant. Further, the connectivity between each domain name and the corresponding IP address can be judged, the availability of the IP address can be determined, and the unavailable IP address can be deleted. Maintain the robustness of the address list to ensure the coverage and accuracy of domain name resolution, and then save the available domain names and their corresponding IP addresses to the IP address list corresponding to the domain name in the first address list.
举例来说,第一地址列表如表1所示:For example, the first address list is shown in Table 1:
本领域技术人员可以理解的是,上述表1所示的第一地址列表中的具体举例只是为了理解本发明的地址列表,本发明对表1所示的第一地址列表中域名和IP地址不作任何限定。Those skilled in the art can understand that the specific examples in the first address list shown in Table 1 above are only for understanding the address list of the present invention, and the present invention does not make any contribution to domain names and IP addresses in the first address list shown in Table 1. Any restrictions.
为了提高域名解析的正确率,在本发明的一个可选实施方式中,步骤101之后包括:In order to improve the correct rate of domain name resolution, in an optional embodiment of the present invention, after
服务器对所述第一IP地址列表中包括的各IP地址进行消重处理;The server performs deduplication processing on each IP address included in the first IP address list;
将消重处理后的所述第一IP地址列表中包括的各IP地址进行过滤处理。Filtering is performed on each IP address included in the first IP address list after deduplication processing.
具体实现时,本实施例的服务器通过查询第一地址列表获取到的多个网络运营商当前分别提供的与各域名对应的IP地址时,有可能多个网络运营商当前分别提供的与各域名对应的IP地址存在重复的情况,需要进行消重处理,使得多个网络运营商当前分别提供的与所述域名对应的IP地址不重复;During specific implementation, when the server in this embodiment obtains the IP addresses corresponding to each domain name currently provided by multiple network operators by querying the first address list, it is possible that the IP addresses currently provided by multiple network operators corresponding to each domain name If the corresponding IP addresses are duplicated, deduplication processing is required so that the IP addresses corresponding to the domain name currently provided by multiple network operators are not duplicated;
进一步举例来说,本实施例的服务器可以预设过滤条件,例如当网站侧服务器正在维护第一网络运营商提供的与各域名对应的IP地址时,可以将第一网络运营商提供的与各域名对应的IP地址从上述第一IP地址列表中过滤掉。As a further example, the server in this embodiment can preset filter conditions, for example, when the server on the website side is maintaining the IP addresses provided by the first network operator and corresponding to each domain name, the IP address provided by the first network operator and corresponding to each domain name can be used. The IP address corresponding to the domain name is filtered out from the above-mentioned first IP address list.
102、服务器根据所述域名,查询第二地址列表,获取与所述域名对应的第二IP地址列表,所述第二IP地址列表中保存有网站侧服务器预设的所述多个网络运营商提供的与所述域名对应的IP地址。102. The server queries a second address list according to the domain name, and obtains a second IP address list corresponding to the domain name, and the second IP address list stores the plurality of network operators preset by the server on the website side The provided IP address corresponding to the domain name.
在本发明的一个可选实施方式中,步骤102之前包括:In an optional embodiment of the present invention, before
服务器预设有第二地址列表,其中,第二地址列表中保存有网站侧服务器为每个域名预设的所述多个网络运营商提供的与该域名对应的IP地址。The server is preset with a second address list, wherein the second address list stores the IP addresses corresponding to the domain name provided by the plurality of network operators preset by the server on the website side for each domain name.
举例来说,第二地址列表如表2所示:For example, the second address list is shown in Table 2:
本领域技术人员可以理解的是,上述表2所示的第二地址列表中的具体举例只是为了理解本发明的地址列表,本发明对表1所示的第一地址列表中域名和IP地址不作任何限定。Those skilled in the art can understand that the specific examples in the second address list shown in Table 2 above are only for understanding the address list of the present invention, and the present invention does not make any contribution to the domain names and IP addresses in the first address list shown in Table 1. Any restrictions.
103、服务器将所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,将匹配结果发送给所述客户端。103. The server matches each IP address in the first IP address list with each IP address in the second IP address list, and sends the matching result to the client.
在本发明的一个可选实施方式中,步骤103包括:In an optional implementation manner of the present invention,
若确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址相同,则确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址相匹配,将匹配成功的结果发送给所述客户端;或If it is determined that each IP address in the first IP address list is the same as each IP address in the second IP address list, then determine that each IP address in the first IP address list is the same as the second IP address Each IP address in the list is matched, and the result of successful matching is sent to the client; or
若确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址不相同,则确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址不匹配,将匹配不成功的结果发送给所述客户端;If it is determined that each IP address in the first IP address list is different from each IP address in the second IP address list, then determine that each IP address in the first IP address list is different from the second IP address Each IP address in the address list does not match, and the result of unsuccessful matching is sent to the client;
需要说明的是,上述第一IP地址列表中的各IP地址可以是经过消重和过滤处理之后的IP地址。It should be noted that each IP address in the first IP address list may be an IP address after deduplication and filtering.
对应地,假设上述匹配结果是成功的,则确定客户端可以成功访问网站域名,而且通过客户端接入的网络运营商提供的与访问的域名对应的IP,获得最快的访问速度;Correspondingly, assuming that the above matching result is successful, it is determined that the client can successfully access the website domain name, and obtain the fastest access speed through the IP corresponding to the accessed domain name provided by the network operator accessed by the client;
假设上述匹配结果是成功的,则将匹配不成功的结果发送给所述客户端;以使客户端根据匹配不成功的结果分析域名解析检测不成功的原因。Assuming that the above matching result is successful, the unsuccessful matching result is sent to the client; so that the client analyzes the reason for the unsuccessful domain name resolution detection according to the unsuccessful matching result.
本发明实施例的服务器根据客户端发送的域名解析请求中包括的域名,查询第一地址列表,获取与所述域名对应的第一IP地址列表,所述第一IP地址列表中保存有多个网络运营商当前分别提供的与所述域名对应的IP地址;根据所述域名,查询第二地址列表,获取与所述域名对应的第二IP地址列表,所述第二IP地址列表中保存有网站侧服务器预设的所述多个网络运营商提供的与所述域名对应的IP地址;进一步地,将所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,并将匹配结果发送给所述客户端。According to the domain name included in the domain name resolution request sent by the client, the server in the embodiment of the present invention queries the first address list and obtains the first IP address list corresponding to the domain name. The first IP address list stores a plurality of The IP addresses corresponding to the domain names currently provided by the network operators; according to the domain names, query the second address list to obtain the second IP address list corresponding to the domain names, and the second IP address list stores the The IP addresses corresponding to the domain names provided by the plurality of network operators preset by the server on the website side; further, combining the IP addresses in the first IP address list with the IP addresses in the second IP address list Each IP address is matched, and the matching result is sent to the client.
由于本实施例服务器可以自动更新多个网络运营商当前分别提供的与各域名对应的IP地址,不需要网站侧服务器通过人工分别登陆多个网络运营商的本地DNS服务器去一一检测验证网站侧服务器预设的所述多个网络运营商提供的与各域名对应的IP地址,因此,可以提高域名解析检测效率。Since the server in this embodiment can automatically update the IP addresses corresponding to the domain names currently provided by multiple network operators, there is no need for the server on the website side to manually log in to the local DNS servers of multiple network operators to check and verify the website side one by one. The server presets the IP addresses provided by the plurality of network operators and corresponds to each domain name, so domain name resolution and detection efficiency can be improved.
图2为本发明另一实施例提供的域名解析检测方法的流程示意图;如图2所示,具体包括:Fig. 2 is a schematic flow chart of a domain name resolution detection method provided by another embodiment of the present invention; as shown in Fig. 2 , it specifically includes:
201、服务器接收域名解析请求,域名解析请求中包括待解析的域名。201. The server receives a domain name resolution request, and the domain name resolution request includes a domain name to be resolved.
202、查询第一地址列表,获取与所述域名对应的第一IP地址列表,查询第二地址列表,获取与所述域名对应的第二IP地址列表。202. Query the first address list to obtain a first IP address list corresponding to the domain name, and query the second address list to obtain a second IP address list corresponding to the domain name.
其中,所述第一IP地址列表中保存有多个网络运营商当前分别提供的与所述域名对应的IP地址。Wherein, the first IP address list stores IP addresses currently provided by multiple network operators and corresponding to the domain names.
所述第二IP地址列表中保存有网站侧服务器预设的所述多个网络运营商提供的与所述域名对应的IP地址。The IP addresses corresponding to the domain names provided by the plurality of network operators preset by the server on the website side are saved in the second IP address list.
需要说明的是,假设服务器是云端的DNS服务器时,本实施例的第一地址列表可以是动态更新的DNS地址列表,该DNS地址列表中保存有多个域名,以及每个域名对应的IP地址列表,其中,每个域名对应的IP地址列表中保存有多个网络运营商当前分别提供的与所述域名对应的IP地址。为了保持DNS地址列表的健壮性,确保域名解析的覆盖率和正确率,DNS服务器定时(例如可以在每日凌晨)启动DNS地址自动更新程序,分别从多个网络运营商本地的DNS服务器中获取域名和IP地址之间的对应关系,进一步地,还可以判断每个域名与对应IP地址间的连通性,确定IP地址的可用性,将不可用的IP地址删除。It should be noted that, assuming that the server is a DNS server in the cloud, the first address list in this embodiment may be a dynamically updated DNS address list, and multiple domain names are stored in the DNS address list, as well as the IP address corresponding to each domain name list, wherein the list of IP addresses corresponding to each domain name stores IP addresses corresponding to the domain names currently provided by multiple network operators. In order to maintain the robustness of the DNS address list and ensure the coverage and accuracy of domain name resolution, the DNS server regularly (for example, in the early morning of every day) starts the DNS address automatic update program, which is obtained from the local DNS servers of multiple network operators. The corresponding relationship between the domain name and the IP address, further, the connectivity between each domain name and the corresponding IP address can be judged, the availability of the IP address can be determined, and the unavailable IP address can be deleted.
203、确定第一IP地址列表中的各IP地址是否存在重复的IP,若是则执行步骤204,否则执行步骤205。203 . Determine whether each IP address in the first IP address list has a duplicate IP, and if so, perform
204、将第一IP地址列表中包括的重复的IP地址进行消重处理。204. Perform deduplication processing on duplicate IP addresses included in the first IP address list.
例如,域名(www.360.com)对应的第一网络运营商的IP地址存在两个或两个以上相同的IP地址时,可以保留一个第一网络运营商的IP地址,将其他的重复的第一网络运营商的IP地址予以删除。For example, when the IP address of the first network operator corresponding to the domain name ( www.360.com ) has two or more identical IP addresses, one IP address of the first network operator can be reserved, and the other repeated The IP address of the first network operator is deleted.
205、确定第一IP地址列表中的各IP地址是否需要过滤处理,若是则执行步骤206,否则执行步骤207。205. Determine whether each IP address in the first IP address list needs to be filtered, and if so, perform
206、将需要过滤掉的IP地址从第一IP地址列表中过滤掉。206. Filter out the IP addresses that need to be filtered out from the first IP address list.
具体地,本实施例的服务器预设过滤条件,将符合过滤条件的IP地址从第一IP地址列表中过滤掉;例如,当网站侧服务器正在维护第一网络运营商提供的与各域名对应的IP地址时,第一网络运营商提供的与各域名对应的IP地址是符合过滤条件的IP地址,可以将第一网络运营商提供的与各域名对应的IP地址从第一IP地址列表中过滤掉。Specifically, the server in this embodiment presets filter conditions to filter out IP addresses that meet the filter conditions from the first IP address list; IP address, the IP address corresponding to each domain name provided by the first network operator is an IP address that meets the filtering conditions, and the IP address corresponding to each domain name provided by the first network operator can be filtered from the first IP address list Lose.
207、确定第一IP地址列表中的各IP地址与第二IP地址列表中的各IP地址是否匹配,若是执行步骤208,否则执行步骤209。207. Determine whether each IP address in the first IP address list matches each IP address in the second IP address list, and if so, perform
其中,第一IP地址列表中的各IP地址可以是步骤202获取的IP地址,也可以是步骤204消重处理之后的IP地址,也可以是步骤206过滤处理之后的IP地址。Wherein, each IP address in the first IP address list may be the IP address obtained in
208、向客户端发送匹配一致的结果。208. Send the matching result to the client.
209、向客户端发送匹配不一致的结果。209. Send a result of inconsistent matching to the client.
本发明实施例的服务器根据客户端发送的域名解析请求中包括的域名,查询第一地址列表,获取与所述域名对应的第一IP地址列表,所述第一IP地址列表中保存有多个网络运营商当前分别提供的与所述域名对应的IP地址;根据所述域名,查询第二地址列表,获取与所述域名对应的第二IP地址列表,所述第二IP地址列表中保存有网站侧服务器预设的所述多个网络运营商提供的与所述域名对应的IP地址;进一步地,将所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,并将匹配结果发送给所述客户端。According to the domain name included in the domain name resolution request sent by the client, the server in the embodiment of the present invention queries the first address list and obtains the first IP address list corresponding to the domain name. The first IP address list stores a plurality of The IP addresses corresponding to the domain names currently provided by the network operators; according to the domain names, query the second address list to obtain the second IP address list corresponding to the domain names, and the second IP address list stores the The IP addresses corresponding to the domain names provided by the plurality of network operators preset by the server on the website side; further, combining the IP addresses in the first IP address list with the IP addresses in the second IP address list Each IP address is matched, and the matching result is sent to the client.
由于本实施例服务器可以自动更新多个网络运营商当前分别提供的与各域名对应的IP地址,不需要网站侧服务器通过人工分别登陆多个网络运营商的本地DNS服务器去一一检测验证网站侧服务器预设的所述多个网络运营商提供的与各域名对应的IP地址,因此,可以提高域名解析检测效率。Since the server in this embodiment can automatically update the IP addresses corresponding to the domain names currently provided by multiple network operators, there is no need for the server on the website side to manually log in to the local DNS servers of multiple network operators to check and verify the website side one by one. The server presets the IP addresses provided by the plurality of network operators and corresponds to each domain name, so domain name resolution and detection efficiency can be improved.
图3为本发明另一实施例提供的域名解析检测装置的结构示意图;如图3所示,所述装置包括:Fig. 3 is a schematic structural diagram of a domain name resolution detection device provided by another embodiment of the present invention; as shown in Fig. 3, the device includes:
获取模块31,适于根据客户端发送的域名解析请求中包括的域名,查询第一地址列表,获取与所述域名对应的第一IP地址列表,所述第一IP地址列表中保存有多个网络运营商当前分别提供的与所述域名对应的IP地址;The obtaining
所述获取模块31,适于根据所述域名,查询第二地址列表,获取与所述域名对应的第二IP地址列表,所述第二IP地址列表中保存有网站侧服务器预设的所述多个网络运营商提供的与所述域名对应的IP地址;The obtaining
匹配模块32,适于将所述获取模块获取的第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,将匹配结果发送给所述客户端。The
可选地,所述匹配模块32适于:Optionally, the
若确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址相同,则确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址相匹配,将匹配成功的结果发送给所述客户端;或If it is determined that each IP address in the first IP address list is the same as each IP address in the second IP address list, then determine that each IP address in the first IP address list is the same as the second IP address Each IP address in the list is matched, and the result of successful matching is sent to the client; or
若确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址不相同,则确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址不匹配,将匹配不成功的结果发送给所述客户端。If it is determined that each IP address in the first IP address list is different from each IP address in the second IP address list, then determine that each IP address in the first IP address list is different from the second IP address The IP addresses in the address list do not match, and a result of unsuccessful matching is sent to the client.
可选地,所述获取模块31,还适于在预设的周期时间分别从所述多个网络运营商对应的本地服务器中获取对应的网络运营商提供的与所述域名对应的IP地址;Optionally, the obtaining
可选地,所述装置还包括:Optionally, the device also includes:
保存模块33,适于将所述获取模块31获取的所述多个网络运营商提供的与所述域名对应的IP地址保存到所述第一IP地址列表中。The saving
可选地,在保存模块33将所述获取模块31获取的所述多个网络运营商提供的与所述域名对应的IP地址保存到所述第一IP地址列表中之前,所述装置还包括:Optionally, before the saving
消重模块34,适于对所述第一IP地址列表中包括的各IP地址进行消重处理;The
过滤模块35,适于将所述消重模块34处理后的所述第一IP地址列表中包括的各IP地址进行过滤处理。The
可选地,所述匹配模块32具体适于:Optionally, the
将所述消重模块34和所述过滤模块35处理之后的所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,并将匹配结果发送给所述客户端。Each IP address in the first IP address list processed by the
本发明实施例的服务器根据客户端发送的域名解析请求中包括的域名,查询第一地址列表,获取与所述域名对应的第一IP地址列表,所述第一IP地址列表中保存有多个网络运营商当前分别提供的与所述域名对应的IP地址;根据所述域名,查询第二地址列表,获取与所述域名对应的第二IP地址列表,所述第二IP地址列表中保存有网站侧服务器预设的所述多个网络运营商提供的与所述域名对应的IP地址;进一步地,将所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,并将匹配结果发送给所述客户端。According to the domain name included in the domain name resolution request sent by the client, the server in the embodiment of the present invention queries the first address list and obtains the first IP address list corresponding to the domain name. The first IP address list stores a plurality of The IP addresses corresponding to the domain names currently provided by the network operators; according to the domain names, query the second address list to obtain the second IP address list corresponding to the domain names, and the second IP address list stores the The IP addresses corresponding to the domain names provided by the plurality of network operators preset by the server on the website side; further, combining the IP addresses in the first IP address list with the IP addresses in the second IP address list Each IP address is matched, and the matching result is sent to the client.
由于本实施例服务器可以自动更新多个网络运营商当前分别提供的与各域名对应的IP地址,不需要网站侧服务器通过人工分别登陆多个网络运营商的本地DNS服务器去一一检测验证网站侧服务器预设的所述多个网络运营商提供的与各域名对应的IP地址,因此,可以提高域名解析检测效率。Since the server in this embodiment can automatically update the IP addresses corresponding to the domain names currently provided by multiple network operators, there is no need for the server on the website side to manually log in to the local DNS servers of multiple network operators to check and verify the website side one by one. The server presets the IP addresses provided by the plurality of network operators and corresponds to each domain name, so domain name resolution and detection efficiency can be improved.
图4为本发明另一实施例提供的服务器的结构示意图,如图4所示,所述服务器包括处理器41、存储器42和通信接口43,所述处理器41、存储器42和通信接口43之间通过通信总线44连接,所述存储器42中保存有实现域名解析检测方法的指令;FIG. 4 is a schematic structural diagram of a server provided by another embodiment of the present invention. As shown in FIG. 4 , the server includes a
当所述处理器41调取所述存储器42中保存的指令时,可以执行如下步骤:When the
所述处理器根据所述通信接口接收的域名解析请求中包括的域名,查询第一地址列表,获取与所述域名对应的第一IP地址列表,所述第一IP地址列表中保存有多个网络运营商当前分别提供的与所述域名对应的IP地址;The processor queries the first address list according to the domain name included in the domain name resolution request received by the communication interface, and obtains a first IP address list corresponding to the domain name, and the first IP address list stores a plurality of The IP address corresponding to the domain name currently provided by the network operator;
根据所述域名,查询第二地址列表,获取与所述域名对应的第二IP地址列表,所述第二IP地址列表中保存有网站侧服务器预设的所述多个网络运营商提供的与所述域名对应的IP地址;According to the domain name, query the second address list to obtain the second IP address list corresponding to the domain name, and the second IP address list stores the information provided by the plurality of network operators preset by the server on the website side. The IP address corresponding to the domain name;
将所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,将匹配结果通过所述通信接口发送给所述客户端。Match each IP address in the first IP address list with each IP address in the second IP address list, and send the matching result to the client through the communication interface.
可选地,所述将所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,包括:Optionally, the matching each IP address in the first IP address list with each IP address in the second IP address list includes:
若确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址相同,则确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址相匹配,将匹配成功的结果发送给所述客户端;或If it is determined that each IP address in the first IP address list is the same as each IP address in the second IP address list, then determine that each IP address in the first IP address list is the same as the second IP address Each IP address in the list is matched, and the result of successful matching is sent to the client; or
若确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址不相同,则确定所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址不匹配,将匹配不成功的结果发送给所述客户端。If it is determined that each IP address in the first IP address list is different from each IP address in the second IP address list, then determine that each IP address in the first IP address list is different from the second IP address The IP addresses in the address list do not match, and a result of unsuccessful matching is sent to the client.
可选地,所述查询第一地址列表之前,包括:Optionally, before querying the first address list, it includes:
所述处理器在预设的周期时间分别从所述多个网络运营商对应的本地服务器中获取对应的网络运营商提供的与所述域名对应的IP地址;The processor obtains the IP address corresponding to the domain name provided by the corresponding network operator from the local servers corresponding to the plurality of network operators at a preset cycle time;
将获取的所述多个网络运营商提供的与所述域名对应的IP地址保存到所述第一IP地址列表中。saving the obtained IP addresses provided by the plurality of network operators and corresponding to the domain names in the first IP address list.
可选地,所述获取与所述域名对应的第一IP地址列表之后,包括:Optionally, after obtaining the first IP address list corresponding to the domain name, it includes:
所述处理器对所述第一IP地址列表中包括的各IP地址进行消重处理;The processor performs deduplication processing on each IP address included in the first IP address list;
将消重处理后的所述第一IP地址列表中包括的各IP地址进行过滤处理。Filtering is performed on each IP address included in the first IP address list after deduplication processing.
可选地,所述将所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,包括:Optionally, the matching each IP address in the first IP address list with each IP address in the second IP address list includes:
所述处理器将消重和过滤处理之后所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,并将匹配结果通过所述通信接口发送给所述客户端。The processor matches each IP address in the first IP address list with each IP address in the second IP address list after deduplication and filtering processing, and sends the matching result to the the client.
本发明实施例的服务器根据客户端发送的域名解析请求中包括的域名,查询第一地址列表,获取与所述域名对应的第一IP地址列表,所述第一IP地址列表中保存有多个网络运营商当前分别提供的与所述域名对应的IP地址;根据所述域名,查询第二地址列表,获取与所述域名对应的第二IP地址列表,所述第二IP地址列表中保存有网站侧服务器预设的所述多个网络运营商提供的与所述域名对应的IP地址;进一步地,将所述第一IP地址列表中的各IP地址与所述第二IP地址列表中的各IP地址进行匹配,并将匹配结果发送给所述客户端。According to the domain name included in the domain name resolution request sent by the client, the server in the embodiment of the present invention queries the first address list and obtains the first IP address list corresponding to the domain name. The first IP address list stores a plurality of The IP addresses corresponding to the domain names currently provided by the network operators; according to the domain names, query the second address list to obtain the second IP address list corresponding to the domain names, and the second IP address list stores the The IP addresses corresponding to the domain names provided by the plurality of network operators preset by the server on the website side; further, combining the IP addresses in the first IP address list with the IP addresses in the second IP address list Each IP address is matched, and the matching result is sent to the client.
由于本实施例服务器可以自动更新多个网络运营商当前分别提供的与各域名对应的IP地址,不需要网站侧服务器通过人工分别登陆多个网络运营商的本地DNS服务器去一一检测验证网站侧服务器预设的所述多个网络运营商提供的与各域名对应的IP地址,因此,可以提高域名解析检测效率。Since the server in this embodiment can automatically update the IP addresses corresponding to the domain names currently provided by multiple network operators, there is no need for the server on the website side to manually log in to the local DNS servers of multiple network operators to check and verify the website side one by one. The server presets the IP addresses provided by the plurality of network operators and corresponds to each domain name, so domain name resolution and detection efficiency can be improved.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以以代码的形式存储在一个计算机可读取存储介质中。上述代码存储在一个计算机可读存储介质中,包括若干指令用以使处理器或硬件电路执行本发明各个实施例所述方法的部分或全部步骤。而前述的存储介质包括:通用串行总线接口的无需物理驱动器的微型高容量移动存储盘、移动硬盘、只读存储器(英文:Read-Only Memory,简称ROM)、随机存取存储器(英文:Random AccessMemory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium in the form of codes. The above codes are stored in a computer-readable storage medium, and include several instructions for causing a processor or a hardware circuit to execute some or all steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: a miniature high-capacity mobile storage disk without a physical drive, a mobile hard disk, a read-only memory (English: Read-Only Memory, ROM for short), and a random access memory (English: Random Access Memory). AccessMemory, referred to as RAM), magnetic disk or optical disk and other media that can store program code.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的保护范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the protection scope of the technical solutions of the various embodiments of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310512140.2A CN103595825B (en) | 2013-10-25 | 2013-10-25 | Domain name mapping detection method and device, server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310512140.2A CN103595825B (en) | 2013-10-25 | 2013-10-25 | Domain name mapping detection method and device, server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103595825A true CN103595825A (en) | 2014-02-19 |
CN103595825B CN103595825B (en) | 2017-11-03 |
Family
ID=50085803
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310512140.2A Active CN103595825B (en) | 2013-10-25 | 2013-10-25 | Domain name mapping detection method and device, server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103595825B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104092785A (en) * | 2014-06-05 | 2014-10-08 | 汉柏科技有限公司 | Method for domain name registration and resolution, and resource access method and resource access device based on domain name |
CN105323324A (en) * | 2014-06-05 | 2016-02-10 | 北京邮电大学 | System and method for IP aeronautical telecommunication network communication addressing |
CN105991797A (en) * | 2016-07-01 | 2016-10-05 | 北京奇虎科技有限公司 | Method and device for network access by mobile terminal |
CN106603588A (en) * | 2015-10-14 | 2017-04-26 | 北京国双科技有限公司 | Processing method and device for server node |
CN107040617A (en) * | 2016-10-11 | 2017-08-11 | 阿里巴巴集团控股有限公司 | The method and device of data processing |
CN107295116A (en) * | 2017-05-11 | 2017-10-24 | 上海红阵信息科技有限公司 | A kind of domain name analytic method, apparatus and system |
CN108040085A (en) * | 2017-11-20 | 2018-05-15 | 广州华多网络科技有限公司 | Method for network access, device and server |
CN110430188A (en) * | 2019-08-02 | 2019-11-08 | 武汉思普崚技术有限公司 | A kind of quick url filtering method and device |
CN112565249A (en) * | 2020-12-02 | 2021-03-26 | 中国联合网络通信集团有限公司 | Domain name detection method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051740B (en) * | 2012-12-13 | 2016-04-20 | 上海牙木通讯技术有限公司 | Domain name analytic method, dns server and domain name analysis system |
-
2013
- 2013-10-25 CN CN201310512140.2A patent/CN103595825B/en active Active
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105323324A (en) * | 2014-06-05 | 2016-02-10 | 北京邮电大学 | System and method for IP aeronautical telecommunication network communication addressing |
CN104092785A (en) * | 2014-06-05 | 2014-10-08 | 汉柏科技有限公司 | Method for domain name registration and resolution, and resource access method and resource access device based on domain name |
CN106603588A (en) * | 2015-10-14 | 2017-04-26 | 北京国双科技有限公司 | Processing method and device for server node |
CN106603588B (en) * | 2015-10-14 | 2020-05-15 | 北京国双科技有限公司 | Server node processing method and device |
CN105991797B (en) * | 2016-07-01 | 2019-10-15 | 北京奇虎科技有限公司 | Method and device for mobile terminal to access network |
CN105991797A (en) * | 2016-07-01 | 2016-10-05 | 北京奇虎科技有限公司 | Method and device for network access by mobile terminal |
CN107040617A (en) * | 2016-10-11 | 2017-08-11 | 阿里巴巴集团控股有限公司 | The method and device of data processing |
CN107295116B (en) * | 2017-05-11 | 2020-04-10 | 上海红阵信息科技有限公司 | Domain name resolution method, device and system |
CN107295116A (en) * | 2017-05-11 | 2017-10-24 | 上海红阵信息科技有限公司 | A kind of domain name analytic method, apparatus and system |
CN108040085A (en) * | 2017-11-20 | 2018-05-15 | 广州华多网络科技有限公司 | Method for network access, device and server |
CN110430188A (en) * | 2019-08-02 | 2019-11-08 | 武汉思普崚技术有限公司 | A kind of quick url filtering method and device |
CN110430188B (en) * | 2019-08-02 | 2022-04-19 | 武汉思普崚技术有限公司 | Rapid URL filtering method and device |
CN112565249A (en) * | 2020-12-02 | 2021-03-26 | 中国联合网络通信集团有限公司 | Domain name detection method and device |
CN112565249B (en) * | 2020-12-02 | 2023-04-07 | 中国联合网络通信集团有限公司 | Domain name detection method and device |
Also Published As
Publication number | Publication date |
---|---|
CN103595825B (en) | 2017-11-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103595825B (en) | Domain name mapping detection method and device, server | |
EP3709603A1 (en) | Method for internet of things device to access network, apparatus, and system | |
WO2019028683A1 (en) | Method and system for acquiring and collecting client local dns server | |
CN103561121B (en) | Method and device for analyzing DNS and browser | |
US9554276B2 (en) | System and method for on the fly protocol conversion in obtaining policy enforcement information | |
TWI734744B (en) | Method, device and system for synchronizing routing table | |
CN109639748B (en) | Cache updating method, device and system of DNS (Domain name Server) and domain name system | |
CN105430110A (en) | Container configuration method and network transmission device for a virtual network system | |
CN112261172A (en) | Service addressing access method, device, system, equipment and medium | |
WO2017215492A1 (en) | Device detection method and apparatus | |
RU2642833C2 (en) | Method and device for mediere resource support | |
WO2015081709A1 (en) | Method, terminal device, and system for implementing network test based on reverse proxy | |
WO2017166524A1 (en) | Domain name parsing method and apparatus | |
WO2017202225A1 (en) | Method for querying domain name, method for domain name proxy, server and system | |
CN102904977A (en) | Network address allocation method, server and node | |
WO2020088170A1 (en) | Domain name system configuration method and related apparatus | |
CN109788050B (en) | A method, system, electronic device and medium for obtaining IP address of source station | |
CN106302384A (en) | DNS message processing method and device | |
JP5813891B2 (en) | Processing method and processing apparatus for automatically setting Internet access mode | |
CN114338630A (en) | Domain name access method, device, electronic device, storage medium and program product | |
CN106534204B (en) | Method and system for connecting client and server | |
CN104426816B (en) | A kind of virtual machine communication method and device | |
CN108234685A (en) | Method, apparatus, equipment and the medium of user terminal gateway equipment DNS scheduling | |
CN104702707A (en) | Method and device for data processing | |
CN103067495B (en) | A kind of method of pushed information and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220727 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |