A browser and its method for obtaining dns analysis data
A browser and data technology, applied in the Internet field, can solve the problems of long time consumption, long consumption time, low browser-side address resolution efficiency, etc. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] Such as figure 1 As shown, the embodiment of the present invention provides a method for a browser to obtain DNS resolution data, which specifically includes the following steps:
[0048] Step S101, start the browser, and initiate an access request to the URL;
[0049] Step S102, intercepting the function of obtaining address information of the browser-side computer system, obtaining the main domain name corresponding to the URL and / or each subdomain name corresponding to the main domain name, and the IP address corresponding to the main domain name and / or each subdomain name information;
[0050] Preferably, in this step, the main domain name corresponding to the URL and each subdomain name corresponding to the main domain name are obtained; wherein, the subdomain name is preferably a second-level subdomain name.
[0051] Preferably, in this step, when intercepting the function of obtaining the address information of the browser-side computer system, the method further include...
Embodiment 2
[0086] The embodiment of the present invention provides a method for a browser to obtain DNS resolution data. The method is a further detailed description of the method described in Embodiment 1, and specifically includes:
[0087] 1) After the browser is started, when the user initiates an access request to a certain URL, intercept the function of obtaining address information of the computer system on the browser side to obtain the main domain name corresponding to the URL;
[0088] 2) Intercept the system function getaddrinfo() to obtain the secondary subdomain name corresponding to the primary domain name, and the IP address information of the primary domain name and each secondary subdomain name.
[0089] In this step, the intercepted system function is the getaddrinfo(constchar*nodename,constchar*service,conststructaddrinfo*hints,structaddrinfo**result) function.
[0090] Among them, nodename: domain name to be resolved (ASCII format); service: ANSI string containing the service ...
Embodiment 3
[0137] Such as Figure 4 As shown, the embodiment of the present invention provides a browser, including: an access initiation module 410, an information acquisition module 420, and an information storage module 430; among them:
[0138] The access initiation module 410 is used to start a browser and initiate an access request to the URL;
[0139] The information acquisition module 420 is used to intercept the address information function of the browser-side computer system, and acquire the main domain name corresponding to the URL and / or each subdomain name corresponding to the main domain name, and the main domain name and / or each subdomain name Corresponding IP address information;
[0140] Preferably, the information acquisition module 420 is further configured to extract the domain name corresponding to the URL when intercepting the function of acquiring the address information of the browser-side computer system, detect whether the DNS acceleration data information on the brows...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 