WO2016177282A1 - 域名解析生效的检测方法、浏览器、服务端和系统 - Google Patents
域名解析生效的检测方法、浏览器、服务端和系统 Download PDFInfo
- Publication number
- WO2016177282A1 WO2016177282A1 PCT/CN2016/079815 CN2016079815W WO2016177282A1 WO 2016177282 A1 WO2016177282 A1 WO 2016177282A1 CN 2016079815 W CN2016079815 W CN 2016079815W WO 2016177282 A1 WO2016177282 A1 WO 2016177282A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- record set
- parsing
- server
- domain name
- dns
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
Definitions
- the invention belongs to the field of the Internet, and in particular relates to a detection method, a browser, a server and a system for validating domain name resolution.
- DNS Domain Name System
- An authoritative server is a server that is authorized by a higher level to resolve a domain name.
- the recursive server is responsible for accepting the user's query for any domain name and returning the parsing result to the user.
- the detection node is deployed, and the detection node initiates a query for the specified domain name resolution to the local recursive server, collects the cached data of the domain name queryed by the local recursive server, and displays the cached data.
- This detection method only displays the cached DNS resolution record directly, and there is no analysis conclusion of the analysis record, which makes it difficult for the user to understand the detection result.
- the present application provides a detection method, a browser, a server, and a system for validating domain name resolution, and solves the technical problem of analyzing the detection result of the DNS resolution record.
- the present application discloses a method for detecting a valid domain name resolution, comprising: receiving a first domain name from a browser; obtaining, by the DNS authoritative server of the first domain name, querying the first domain name a DNS recursive server; receiving a DNS detection request from the browser, the DNS detection request including a second domain name; acquiring the second domain name in a DNS authoritative server of the second domain name and the DNS recursive server And parsing the record set; comparing the second domain name with the parsing record set of the DNS domain server of the second domain name and the DNS recursive server to obtain effective result information; and sending the effective result information to the browser.
- Comparing the second domain name with the parsing record set of the DNS domain server of the second domain name and the DNS recursive server, and obtaining the effective result information includes: determining whether the second parsing record set is included in the a first parsing record set; when the second parsing record set is included in the first parsing record set, determining that the second parsing record set is all valid; and when the second parsing record set is not included in the first When parsing the record set, determining whether the second parsed record set is partially included in the first parsed record set; and when the second parsing record set part is included in the first parsed record set, determining the The part of the second parsing record set included in the first parsing record set is valid, and the part not included in the first parsing record set is not valid; when the second parsing record set is not included in the first parsing When the set is recorded, it is determined that the second set of parsed records is not in effect.
- the second parsing record set and the effective result information include a time to live (TTL) of each parsed record.
- TTL time to live
- the method further includes: obtaining a DNS recursive server of the at least one preset node; and obtaining the parsing record set of the DNS authoritative server and the DNS recursive server of the second domain name in the second domain name, including: The DNS authoritative server of the second domain name sends a detection request; determines whether the first resolution record set of the DNS authority server of the second domain name is received; and when the first resolution record set of the DNS authority server of the second domain name is received Sending the detection request to the DNS recursive server and the DNS recursive server of the at least one preset node; receiving the second parsed record set of the second domain name returned by the DNS recursive server and the at least one At least one third parsing record set of the second domain name returned by the DNS recursive server of the preset node; the parsing record of the second domain name in the DNS authoritative server of the second domain name and the DNS recursive server
- the collection is compared, and obtaining the effective result information includes: determining the second analytical record
- the sending the detection request to the DNS recursive server and the DNS recursive server of the at least one preset node comprises: a DNS recursive server concurrently to the DNS recursive server and the at least one preset node by a scheduler Describe the request.
- the second parsing record set, the third parsing record set, and the effective result information include a survival time of each parsed record.
- the receiving the first domain name from the browser comprises: receiving a URL address of the random host of the first domain name from the browser.
- the present application further discloses a method for detecting domain name resolution effective, comprising: receiving a DNS detection instruction, where the DNS detection instruction includes a second domain name; sending the first domain name to the server and the DNS recursive server, And causing the server to obtain the DNS recursive server that queries the first domain name from a DNS authoritative server of the first domain name; send a DNS detection request of the second domain name to the server; and display the service
- the effective result information returned by the terminal, the effective result information is obtained by comparing, by the server, the second domain name between the DNS authoritative server of the second domain name and the parsing record set of the DNS recursive server.
- the sending the first domain name to the server and the DNS recursive server comprises: sending a URL address of the random host of the first domain name to the server and the DNS recursive server.
- the displaying the effective result information returned by the server includes: displaying the second domain name a first parsing record set of the DNS authoritative server and a second parsing record set of the DNS recursive server; when the second parsing record set is included in the first parsing record set, in the second parsing record set The parsing record is all valid; when the second parsing record set is partially included in the first parsing record set, the parsing record included in the first parsing record set in the second parsing record set is valid, and is not included in The parsing record of the first parsing record set is not valid; when all the second parsing record sets are not included in the first parsing record set, all parsing records in the second parsing record set are not valid.
- the displaying the effective result information returned by the server further includes: displaying a third parsing record set of the DNS recursive server from the at least one preset node of the server; and when the third parsing record set is included in the When parsing the record set, the parsing records in the third parsed record set are all valid; when the third parsing record set part is included in the first parsed record set, the third parsed record set is included in The parsing record of the first parsing record set is valid, and the parsing record not included in the first parsing record set is not valid; when all the third parsing record set are not included in the first parsing record set, All of the parsed records in the third parsed record set are not valid.
- the effective result information also includes the survival time of each parsed record.
- the present application further discloses a detection server that is effective for domain name resolution, comprising: a first receiving module, configured to receive a first domain name from a browser; and a first acquiring module, configured to a DNS authoritative server of the first domain name obtains a DNS recursive server that queries the first domain name; a second receiving module is configured to receive a DNS detection request from the browser, where the DNS detection request includes a second domain name; a second obtaining module, configured to acquire a parsing record set of the second domain name in the DNS authoritative server of the second domain name and the DNS recursive server, and a comparison module, configured to: use the second domain name in the second The DNS authoritative server of the domain name is compared with the parsing record set of the DNS recursive server to obtain the effective result information.
- the first sending module is configured to send the effective result information to the browser.
- the second obtaining module includes: a first sending submodule, configured to send a detection request to the DNS authoritative server of the second domain name; and a first determining submodule, configured to determine whether the DNS authority of the second domain name is received a first parsing record set returned by the server, where the second sending submodule is configured to: when receiving the first parsing record set returned by the DNS authoritative server of the second domain name, The DNS recursive server sends the detection request; the first receiving submodule is configured to receive the second parsing record set of the second domain name returned by the DNS recursive server.
- the comparison module includes: a second determining sub-module, configured to determine whether the second parsing record set is included in the first parsing record set; and a first determining sub-module, configured to: when the second parsing record set includes Determining, when the first parsing record set is set, the second parsing record set is all valid; the third determining submodule, configured to determine, when the second parsing record set is not included in the first parsing record set, Whether the second parsing record set is partially included in the first parsing record set; and the second determining submodule is configured to determine, when the second parsing record set part is included in the first parsing record set The portion of the second parsed record set that is included in the first parsed record set is valid, and the portion that is not included in the first parsed record set is not valid; the third determining submodule is configured to be when the second parsing record set When all are not included in the first set of parsed records, it is determined that all of the second parsed
- the second parsing record set and the effective result information include a time to live (TTL) of each parsed record.
- TTL time to live
- the server further includes: a third obtaining module, configured to obtain a DNS recursive server of the at least one preset node;
- the second obtaining module includes: a first sending submodule, configured to provide a DNS authority to the second domain name The server sends a detection request;
- the first determining sub-module is configured to determine whether the first parsing record set of the DNS authoritative server of the second domain name is received;
- the third sending sub-module is configured to receive the second domain name And sending, by the DNS recursive server and the DNS recursive server of the at least one preset node, the detection request;
- the second receiving submodule configured to receive the DNS recursive server Returning the second parsing record set of the second domain name and the at least one third parsing record set of the second domain name returned by the DNS recursive server of the at least one preset node;
- the comparing module includes: fourth determining a submodule, configured to determine whether the second parsing record set and the at
- the third sending submodule includes: a scheduling unit, configured to concurrently send the detection request to the DNS recursive server and the DNS recursive server of the at least one preset node by using a scheduler.
- the second parsing record set, the third parsing record set, and the effective result information include a survival time of each parsed record.
- the first receiving module includes: a third receiving submodule, configured to receive a URL address of a random host of the first domain name from a browser.
- the present application further discloses a detection browser for validating domain name resolution, comprising: a third receiving module, configured to receive a DNS detection instruction, where the DNS detection instruction includes a second domain name; and the second sending module And sending the first domain name to the server and the DNS recursive server, so that the server obtains the DNS recursive server that queries the first domain name from the DNS authoritative server of the first domain name; and the third sending module, a DNS detection request for sending the second domain name to the server; a display module, configured to display the effective result information returned by the server, where the effective result information is determined by the server The second domain name is obtained after comparing the DNS authoritative server of the second domain name with the parsing record set of the DNS recursive server.
- the second sending module includes: a fourth sending submodule, configured to send a URL address of the random host of the first domain name to the server and the DNS recursive server.
- the presentation module includes: a first presentation submodule, a first parsing record set of the DNS authoritative server of the second domain name and a second parsing record set of the DNS recursive server; and the second parsing record
- the parsed records in the second parsed record set are all valid; when the second parsed record set is partially included in the When the first parsing record set is described, the parsing record included in the first parsing record set in the second parsing record set is valid, and the parsing record not included in the first parsing record set is not valid; When all of the two parsed record sets are not included in the first parsed record set, all of the parsed records in the second parsed record set are not valid.
- the display module further includes: a second presentation sub-module, configured to display a third parsing record set of the DNS recursive server from the at least one preset node of the server; and when the third parsing record set is included in the When parsing the record set, the parsing records in the third parsed record set are all valid; when the third parsing record set part is included in the first parsed record set, the third parsed record set is included in The parsing record of the first parsing record set is valid, and the parsing record not included in the first parsing record set is not valid; when all the third parsing record set are not included in the first parsing record set, All of the parsed records in the third parsed record set are not valid.
- a second presentation sub-module configured to display a third parsing record set of the DNS recursive server from the at least one preset node of the server; and when the third parsing record set is included in the When parsing the record set, the parsing records
- the effective result information also includes the survival time of each parsed record.
- the present application further discloses a detection system for validating domain name resolution, comprising: a browser and a server; and when the browser receives the DNS detection instruction including the second domain name, sending the first domain name to the service And the DNS recursive server, the server obtains, by the server from the DNS authoritative server of the first domain name, the DNS recursive server that queries the first domain name; the browser sends the DNS detection of the second domain name Requesting, to the server, the server obtains a set of parsing records of the second domain name in the DNS authoritative server of the second domain name and the DNS recursive server, and the second domain name is in the second Comparing the DNS authoritative server of the domain name with the parsing record set of the DNS recursive server to obtain the effective result information; the server sends the effective result information to the browser, and the browser displays the effective result information .
- the effective result information also includes the validity of the DNS recursive server of the domain name in other preset nodes, and the user can understand that the domain name resolution of the domain name is effective in the whole country or other regions of the world. happening.
- the survival time of each parsing record is also included, so that the user knows the effective time of each parsing record and the update time of the unresolved record.
- the browser sends the URL of the random host of the first domain name to the DNS recursive server and the server, which can prevent the server from obtaining the DNS recursive server of the browser.
- FIG. 1 is a schematic flowchart of a method for detecting domain name resolution effective according to an embodiment of the present application
- FIG. 2 is a schematic flowchart of a method for detecting domain name resolution effective according to an embodiment of the present application
- FIG. 3 is a schematic flowchart of obtaining valid result information provided by an embodiment of the present application.
- FIG. 5 is a schematic structural diagram of a detection server that takes effect on domain name resolution according to an embodiment of the present application
- FIG. 6 is a schematic structural diagram of a detection browser for validating domain name resolution according to an embodiment of the present application.
- FIG. 7 is a schematic structural diagram of a detection system for validating domain name resolution according to an embodiment of the present application.
- FIG. 1 is a method for detecting domain name resolution effective according to an embodiment of the present application, which is applicable to a browser, and the method includes the following steps.
- step S10 a DNS detection command is received, and the DNS detection command includes a second domain name.
- the DNS detection command is from a user input, and includes a second domain name input by the user, and the second domain name is a domain name that the user wants to perform DNS resolution validation detection.
- step S11 the first domain name is sent to the server and the DNS recursive server, so that the server obtains the DNS recursive server that queries the first domain name from the DNS authoritative server of the first domain name.
- the browser is pre-configured with the first domain name.
- the first domain name is simultaneously sent to the server and the DNS recursive server.
- the DNS recursive server performs a DNS resolution query according to the first domain name, and sends a resolution request to the DNS authoritative server of the first domain name to obtain a resolution record of the first domain name (that is, an IP address corresponding to the first domain name).
- the DNS authoritative server of the first domain name stores the query time and IP address of the DNS recursive server.
- the browser sends the first domain name to the server, so that the server can send a query request to the DNS authoritative server of the first domain name according to the first domain name to obtain a DNS recursive server that queries the DNS authoritative server of the first domain name for the first domain name. IP address.
- step S12 a DNS detection request of the second domain name is sent to the server.
- step S13 the effective result information returned by the server is displayed, and the effective result information is obtained by the server comparing the second domain name between the DNS authoritative server of the second domain name and the parsing record set of the DNS recursive server. acquired.
- the browser displays the effective result information returned by the server for the user to view the resolution of the second domain name.
- the effective result information includes a first parsing record set of the DNS authoritative server of the second domain name in the second domain name and a second parsing record set in the DNS recursive server.
- the parsed records in the second parsed record set are all valid; when the second parsed record set part is included in the first parsed record set, the second parsing record The parsing record included in the first parsing record set is valid, and the parsing record not included in the first parsing record set is not valid; when the second parsing record set is not included in the first parsing record set, the second parsing record The parsing records in the collection are not in effect.
- the first parsing record set includes three parsing records of 1.1.1.1, 2.2.2.2, and 3.3.3.3
- the second parsing record set includes two parsing records of 1.1.1.1 and 2.2.2.2
- the second parsing record set is included in the first A parsing record set
- the two parsed records in the second parsed record set all take effect. If the second parsing record set includes two parsing records of 1.1.1.1 and 4.4.4.4, the second parsing record set part is included in the first parsing record set, and the parsing record 1.1.1.1 in the second parsing record set is valid, parsing Record 4.4.4.4 is not in force. If the second parsed record set includes 4.4.4.4 and 5.5.5.5, the second parsed record set is not included in the first parsed record set, and all of the two parsed records in the second parsed record set are not valid.
- the step S13 shows that the effective result information further includes: displaying a third set of parsing records from the DNS recursive server of the at least one preset node of the server.
- the server detects the parsing record of the second domain name from the DNS recursive server of the browser, and detects the parsing record of the second domain name by using the at least one preset node to obtain the second domain name in each of the at least one preset node.
- the valid result information received by the browser further includes the third parsed record set, and the parsed record effective condition in the third parsed record set is determined in the same manner as the second parsed record set.
- the validation result information also includes a time to live (TTL) for each parsed record.
- TTL time to live
- the DNS recursive server queries the DNS authoritative server for the resolution record of the domain name, the resolution record of the domain name is cached locally, and the longest time that the cached resolution record exists in the DNS recursive server is the survival time of the parsing record. Parse the TTL value of the record).
- the server detects the parsing record of the second domain name from the DNS recursive server, it also obtains the survival time of each parsing record in the DNS recursive server and saves it in the effective result information.
- the time to live for each parsed record can be browsed at the same time, so that the time for the DNS recursive server to update each parsed record can be estimated, and the parsed record that is not currently valid can be estimated. How long will the parsing record that is not currently in effect still exist in the DNS recursive server.
- the first domain name is sent to the server and the DNS recursive service in step S11.
- Server After the first domain name is sent to the DNS recursive server, if the browser needs to perform DNS detection again, when the first domain name is sent to the DNS recursive server, the DNS recursive server may cache the resolution record of the first domain name, the DNS recursive server. The DNS authoritative server of the first domain name is not queried for the resolution record, so that the server cannot obtain the DNS recursive server from the DNS authoritative server of the first domain name through the first domain name. Therefore, step S11 can be further set to send the URL address of the random host of the first domain name to the server and the DNS recursive service.
- the server and the DNS recursive server Add a randomly changed host name string before the first domain name, and send the URL address of a host under the first domain name to the server and the DNS recursive server, so that the browser sends the URL of the random host of the first domain name each time.
- the addresses are different, so that the server does not query the DNS recursive server.
- the first domain name is “A.com”
- a randomly changed host name string “random” is added in front of it to form a random host URL address “random.A.com” of the first domain name, where “random”
- the URL of the random host for each first domain name is different.
- FIG. 2 is a method for detecting domain name resolution effective according to an embodiment of the present application, which is applicable to a server device, and the method includes the following steps.
- step S20 the first domain name from the browser is received.
- the first domain name is sent by the browser to the server and the DNS recursive server after receiving the DNS detection command, so that the server can query the DNS recursive server currently used by the browser.
- step S21 a DNS recursive server that queries the first domain name is obtained from the DNS authoritative server of the first domain name.
- the DNS recursive server After receiving the first domain name, the DNS recursive server queries the DNS authoritative server of the first domain name for the parsing record of the first domain name. The server obtains, from the DNS authoritative server of the first domain name, a DNS recursive server that queries the first domain name according to the first domain name.
- step S22 a DNS detection request from the browser is received, and the DNS detection request includes the second domain name.
- the second domain name is a domain name that the user performs DNS detection through a browser.
- step S23 the DNS authoritative server and the DNS delivery of the second domain name in the second domain name are obtained.
- the server obtains the parsed record set of the second domain name from the DNS authoritative server of the second domain name and the DNS recursive server obtained in step S21 according to the second domain name.
- step S24 the second domain name is compared with the parsing record set of the DNS authoritative server of the second domain name and the DNS recursive server, and the effective result information is obtained.
- the parsing record that exists in the parsing record set of the DNS authoritative server of the second domain name and the DNS recursive server is determined to be valid, and the effective result information is generated.
- step S25 the effective result information is transmitted to the browser.
- the browser displays the effective result information to the user, so that the user knows that the second domain name is validated by the DNS recursive server.
- the step S23 further includes the following steps.
- step S230 a detection request is sent to the DNS authoritative server of the second domain name.
- the first parsed record set of the DNS authoritative server of the second domain name is obtained.
- step S232 it is determined whether the first parsed record set returned by the DNS authoritative server of the second domain name is received. That is, it is determined whether the second domain name has been resolved in its DNS authoritative server.
- step S234 is performed; when the first parsing record set returned by the DNS authoritative server of the second domain name is not received, the second domain name is considered to be in the The resolution of the DNS authoritative server has not taken effect, and the process ends.
- step S234 a detection request is sent to the DNS recursive server.
- the second domain name is successfully parsed by the DNS authoritative server, and the detection request including the second domain name is further sent to the DNS recursive server acquired in step S21. .
- step S236 a second parsed record set of the second domain name returned by the DNS recursive server is received.
- the server receives the second resolved record set of the second domain name returned by the DNS recursive server at the DNS recursive server.
- step S24 the following steps are further included.
- step S240 it is determined whether the second parsed record set is included in the first parsed record set.
- step S242 is performed; and when the second parsed record set is not included in the first parsed record set, step S244 is performed.
- step S242 it is determined that the second parsed record set is all valid.
- step S244 it is determined whether the second parsed record set is partially included in the first parsed record set.
- step S246 is performed; when the second parsing record set is not included in the first parsing record set, step S248 is performed.
- step S246 it is determined that the portion included in the first parsed record set in the second parsed record set is valid, and the portion not included in the first parsed record set is not valid.
- step S248 it is determined that all of the second parsed record sets are not valid.
- the first parsing record set includes three parsing records of 1.1.1.1, 2.2.2.2, and 3.3.3.3
- the second parsing record set includes two parsing records of 1.1.1.1 and 2.2.2.2
- the second parsing record set is included in the first A parsing record set
- the two parsed records in the second parsed record set all take effect. If the second parsing record set includes two parsing records of 1.1.1.1 and 4.4.4.4, the second parsing record set part is included in the first parsing record set, and the parsing record 1.1.1.1 in the second parsing record set is valid, parsing Record 4.4.4.4 is not in force. If the second parsed record set includes 4.4.4.4 and 5.5.5.5, the second parsed record set is not included in the first parsed record set, and all of the two parsed records in the second parsed record set are not valid.
- the detecting method for validating the domain name further includes the following steps: acquiring a DNS recursive server of at least one preset node.
- the server serves as a control node and has at least one preset node as the controlled node.
- the at least one preset node sends a DNS resolution request to the server, and feeds back the DNS recursive server address of the returned DNS resolution record to the server, and the server records the DNS recursive server corresponding to each preset node.
- the at least one preset node may be set in various cities in the country or in the world to obtain a DNS recursive server provided by each city network operator. As shown in FIG. 4, the following steps are further included in step S23.
- step S231 sending a detection request to the DNS authoritative server of the second domain name
- step S233 it is determined whether the first parsed record set returned by the DNS authoritative server of the second domain name is received. That is, it is determined whether the second domain name has been resolved in its DNS authoritative server.
- the step is executed.
- Step S235 When the first parsing record set returned by the DNS authoritative server of the second domain name is not received, the parsing of the second domain name in the DNS authoritative server is considered to be invalid, and the process ends.
- step S235 a detection request is sent to the DNS recursive server and the DNS recursive server of the at least one preset node.
- the server sends a detection request to the DNS recursive server corresponding to the step S21 and the DNS recursive server corresponding to the at least one preset node to obtain the parsed record set of the second domain name.
- step S237 the second parsing record set of the second domain name returned by the DNS recursive server and the at least one third parsing record set of the second domain name returned by the DNS recursive server of the at least one preset node are received.
- the third parsing record set is from the DNS recursive server of the preset node, and includes all parsing records of the DNS recursive server of the second domain name in a preset node.
- step S24 further includes the following steps.
- step S241 it is determined whether the second analysis record set and the at least one third analysis record set are respectively included in the first analysis record set.
- step S243 is performed; when the second parsing record set and the at least one third parsing record set are not included in the first parsing record respectively
- step S245 is performed.
- step S243 it is determined that the second parsed record set and the at least one third parsed record set are all valid.
- step S245 it is determined whether the second parsed record set and the at least one third parsed record set are partially included in the first parsed record set, respectively.
- step S247 is performed; when the second parsing record set and the at least one third parsing record set are respectively not included in the first
- step S249 is performed.
- step S247 it is determined that the portion included in the first parsed record set in the second parsed record set and the third parsed record set is valid, and the portion not included in the first parsed record set is not valid.
- step S249 it is determined that all of the second parsed record set and the third parsed record set are not valid.
- step S235 when the detection request is sent to the DNS recursive server of the DNS recursive server and the at least one preset node, the detection request may be concurrently sent to the DNS recursive server and the DNS recursive server of the at least one preset node by the scheduler.
- the efficiency of the DNS detection by the server reduces the time for the user to wait for the effective result information.
- the receiving the first domain name from the browser in step S20 comprises: receiving the URL address of the random host of the first domain name from the browser.
- the DNS recursive server may cache the resolution record of the first domain name, the DNS The recursive server does not query the DNS authoritative server of the first domain name for the resolution record, so that the server cannot obtain the DNS recursive server from the DNS authoritative server of the first domain name through the first domain name.
- the browser adds a randomly changed host name string in front of the first domain name, and sends the URL address of a host under the first domain name to the server and the DNS recursive server, so that the browser sends a random host of the first domain name each time.
- the URL addresses are different, so that the server does not query the DNS recursive server.
- the second parsing record set, the third parsing record set, and the effective result information in the foregoing embodiments further include a lifetime of each parsed record, so that the user can browse the effective time of each parsed record, and the parsed record that is not valid. The time it takes to get updates so that users can expect domain name resolution to take effect.
- FIG. 5 is a detection server for validating domain name resolution according to an embodiment of the present disclosure, including:
- the first receiving module 50 is configured to receive the first domain name from the browser
- the first obtaining module 51 is configured to obtain, from the DNS authoritative server of the first domain name, a DNS recursive server that queries the first domain name;
- a second receiving module 52 configured to receive a DNS detection request from a browser, where the DNS detection request includes a second domain name
- the second obtaining module 53 is configured to obtain a parsing record set of the DNS authoritative server and the DNS recursive server of the second domain name in the second domain name;
- the comparison module 54 is configured to compare the second domain name with the parsing record set of the DNS authoritative server of the second domain name and the DNS recursive server, to obtain the effective result information;
- the first sending module 55 is configured to send the effective result information to the browser.
- the second obtaining module 53 includes:
- a first sending submodule configured to send a detection request to a DNS authoritative server of the second domain name
- a first determining sub-module configured to determine whether the first parsing record set returned by the DNS authoritative server of the second domain name is received
- a second sending submodule configured to send a detection request to the DNS recursive server when receiving the first parsing record set returned by the DNS authoritative server of the second domain name
- the first receiving submodule is configured to receive a second parsed record set of the second domain name returned by the DNS recursive server.
- the comparison module 54 includes:
- a second determining sub-module configured to determine whether the second parsing record set is included in the first parsing record set
- a first determining submodule configured to: when the second parsing record set is included in the first parsing record set, determine that the second parsing record set is all valid;
- a third determining sub-module configured to determine, when the second parsing record set is not included in the first parsing record set, whether the second parsing record set is partially included in the first parsing record set;
- a second determining submodule configured to: when the second parsing record set part is included in the first parsing record set, determine that the part of the second parsing record set included in the first parsing record set is valid, not included in the first parsing record set Part does not take effect;
- the third determining submodule is configured to determine that all the second parsed record sets are not valid when all the second parsing record sets are not included in the first parsing record set.
- the second set of parsing records and the effective result information include the lifetime of each parsed record.
- the server further includes:
- a third obtaining module configured to acquire a DNS recursive server of at least one preset node
- the second obtaining module 53 includes:
- a first sending submodule configured to send a detection request to a DNS authoritative server of the second domain name
- a first determining submodule configured to determine whether the first parsing record set of the DNS authoritative server of the second domain name is received
- a third sending submodule configured to send a detection request to the DNS recursive server and the DNS recursive server of the at least one preset node when receiving the first parsing record set of the DNS authoritative server of the second domain name;
- a second receiving submodule configured to receive a second parsing record set of the second domain name returned by the DNS recursive server and at least one third parsing record set of the second domain name returned by the DNS recursive server of the at least one preset node;
- the comparison module 54 includes:
- a fourth determining sub-module configured to determine whether the second parsing record set and the at least one third parsing record set are respectively included in the first parsing record set
- a fourth determining submodule configured to determine, when the second parsing record set and the at least one third parsing record set are respectively included in the first parsing record set, that the second parsing record set and the at least one third parsing record set are all valid;
- a fifth determining sub-module configured to determine, when the second parsing record set and the at least one third parsing record set are not included in the first parsing record set, respectively, whether the second parsing record set and the at least one third parsing record set are respectively respectively Included in the first set of analytical records;
- a fifth determining submodule configured to: when the second parsing record set and the at least one third parsing record set are respectively partially included in the first parsing record set, determining that the second parsing record set and the third parsing record set are included in the first The part of parsing the record set takes effect, and the part not included in the first set of parsed records is not valid;
- the sixth determining submodule is configured to determine that the second parsing record set and the third parsing record set are all inactive when the second parsing record set and the at least one third parsing record set are all not included in the first parsing record set, respectively.
- the third sending submodule includes:
- a scheduling unit configured to concurrently detect the request by the scheduler to the DNS recursive server and the DNS recursive server of the at least one preset node.
- the second parsing record set, the third parsing record set, and the effective result information include a survival time of each parsed record.
- the first receiving module 50 includes:
- the third receiving submodule is configured to receive a URL address of the random host of the first domain name from the browser.
- FIG. 6 is a detection browser for validating domain name resolution provided by an embodiment of the present application, including:
- the third receiving module 60 is configured to receive a DNS detection instruction, where the DNS detection instruction includes a second domain name;
- the second sending module 61 is configured to send the first domain name to the server and the DNS recursive server, so that the server obtains the DNS recursive server that queries the first domain name from the DNS authoritative server of the first domain name;
- the third sending module 62 is configured to send a DNS detection request of the second domain name to the server;
- the display module 63 is configured to display the effective result information returned by the server, and the effective result information is obtained by comparing, by the server, the second domain name in the parsing record set of the DNS authoritative server of the second domain name and the DNS recursive server.
- the second sending module 61 includes:
- the fourth sending submodule is configured to send the URL address of the random host of the first domain name to the server and the DNS recursive server.
- the display module 63 includes:
- a first presentation submodule configured to display a first parsing record set of a DNS authoritative server of the second domain name and a second parsing record set of the DNS recursive server;
- the parsed records in the second parsed record set are all valid
- the parsing record included in the first parsing record set in the second parsing record set is valid, and the parsing record not included in the first parsing record set is not valid;
- the second parsed record set When the second parsed record set is not included in the first parsed record set, the second parsed record The parsing records in the collection are not in effect.
- the display module 63 further includes:
- a second display submodule configured to display a third parsed record set of the DNS recursive server from the at least one preset node of the server;
- the parsed records in the third parsed record set are all valid
- the parsing record included in the first parsing record set in the third parsing record set is valid, and the parsing record not included in the first parsing record set is not valid;
- the validation result information in each of the above embodiments further includes the survival time of each parsing record.
- Figure 7 is a detection system for validating domain name resolution provided by an embodiment of the present application, including: a browser 70 and a server 71;
- the browser 70 When receiving the DNS detection command including the second domain name, the browser 70 sends the first domain name to the server 71 and the DNS recursive server 72, and the server 71 obtains the query for the first domain name from the DNS authority server 73 of the first domain name. DNS recursive server 72.
- the browser 70 sends a DNS detection request of the second domain name to the server 71; the server 71 acquires the parsing record set of the second domain name in the DNS authoritative server 74 and the DNS recursive server 72 of the second domain name, and the second domain name is in the second
- the DNS authoritative server 74 of the domain name and the parsing record set of the DNS recursive server 72 are compared to obtain the effective result information; the server 71 sends the effective result information to the browser 70, and the effective result information is displayed by the browser 70.
- a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
- processors CPUs
- input/output interfaces network interfaces
- memory volatile and non-volatile memory
- the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
- RAM random access memory
- ROM read only memory
- Memory is an example of a computer readable medium.
- Computer readable media including both permanent and non-permanent, removable and non-removable media may be Any method or technique to implement information storage.
- the information can be computer readable instructions, data structures, modules of programs, or other data.
- Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
- computer readable media does not include non-transitory computer readable media, such as modulated data signals and carrier waves.
- first device if a first device is coupled to a second device, the first device can be directly electrically coupled to the second device, or electrically coupled indirectly through other devices or coupling means. Connected to the second device.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种域名解析生效的检测方法,包括:接收到来自浏览器的第一域名;从所述第一域名的DNS权威服务器,获取到查询所述第一域名的DNS递归服务器;接收到来自所述浏览器的DNS检测请求,所述DNS检测请求包括第二域名;获取所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合;将所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合进行对比,获得生效结果信息;发送所述生效结果信息至所述浏览器。将域名在DNS权威服务器和DNS递归服务器的解析记录集合进行比对分析,将生效结果信息并向用户展示,使用用户直观的了解到每条解析记录是否生效的情况。
Description
本发明属于互联网领域,具体地说,涉及一种域名解析生效的检测方法、浏览器、服务端和系统。
DNS(Domain Name System,域名系统)是因特网的一项核心服务,它作为可以将域名和IP地址相互映射的一个分布式数据库,能够使人们更方便的访问互联网,而不必去记住能够被机器直接读取的IP地址。
权威服务器是经过上一级授权对域名进行解析的服务器。递归服务器负责接受用户对任意域名查询,并返回解析结果给用户。在现有的检测方法中,部署检测节点,从检测节点对本地递归服务器发起对指定域名解析的查询,收集到本地递归服务器中查询域名的的缓存数据,对缓存的数据进行展示。这种检测方法只是将缓存的DNS解析记录直接进行展示,没有对解析记录的分析结论,使用户难以理解检测结果。
发明内容
有鉴于此,本申请提供了一种域名解析生效的检测方法、浏览器、服务端和系统,解决了对DNS解析记录检测结果进行分析的技术问题。
为了解决上述技术问题,本申请公开了一种域名解析生效的检测方法,包括:接收到来自浏览器的第一域名;从所述第一域名的DNS权威服务器,获取到查询所述第一域名的DNS递归服务器;接收到来自所述浏览器的DNS检测请求,所述DNS检测请求包括第二域名;获取所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合;将所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合进行对比,获得生效结果信息;发送所述生效结果信息至所述浏览器。
所述获取所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合包括:向所述第二域名的DNS权威服务器发送检测请求;判断是否接收到所述第二域名的DNS权威服务器返回的第一解析记录集合;当接收到所述第二域名的DNS权威服务器返回的第一解析记录集合时,向所述DNS递归服务器发送所述检测请求;接收到所述DNS递归服务器返回的所述第二域名的第二解析记录集合。
所述将所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合进行对比,获得生效结果信息包括:判断所述第二解析记录集合是否包含于所述第一解析记录集合;当所述第二解析记录集合包含于所述第一解析记录集合时,确定所述第二解析记录集合全部生效;当所述第二解析记录集合未包含于所述第一解析记录集合时,判断所述第二解析记录集合是否部分包含于所述第一解析记录集合;当所述第二解析记录集合部分包含于所述第一解析记录集合时,确定所述第二解析记录集合中包含于所述第一解析记录集合的部分生效,未包含于所述第一解析记录集合的部分未生效;当所述第二解析记录集合全部未包含于所述第一解析记录集合时,确定所述第二解析记录集合全部未生效。
所述第二解析记录集合和生效结果信息包括每条解析记录的生存时间(TTL)。
所述方法还包括:获取至少一个预设节点的DNS递归服务器;所述获取所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合包括:向所述第二域名的DNS权威服务器发送检测请求;判断是否接收到所述第二域名的DNS权威服务器的第一解析记录集合;当接收到所述第二域名的DNS权威服务器的第一解析记录集合时,向所述DNS递归服务器和所述至少一个预设节点的DNS递归服务器发送所述检测请求;接收到所述DNS递归服务器返回的所述第二域名的第二解析记录集合和所述至少一个预设节点的DNS递归服务器返回的所述第二域名的至少一个第三解析记录集合;所述将所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合进行对比,获得生效结果信息包括:判断所述第二解析记录集合和所述至少一个第三解析记录集合是否分别包
含于所述第一解析记录集合;当所述第二解析记录集合和所述至少一个第三解析记录集合分别包含于所述第一解析记录集合时,确定所述第二解析记录集合和所述至少一个第三解析记录集合全部生效;当所述第二解析记录集合和所述至少一个第三解析记录集合分别未包含于所述第一解析记录集合时,判断所述第二解析记录集合和所述至少一个第三解析记录集合是否分别部分包含于所述第一解析记录集合;当所述第二解析记录集合和所述至少一个第三解析记录集合分别部分包含于所述第一解析记录集合时,确定所述第二解析记录集合和所述第三解析记录集合中包含于所述第一解析记录集合的部分生效,未包含于所述第一解析记录集合的部分未生效;当所述第二解析记录集合和所述至少一个第三解析记录集合分别全部未包含于所述第一解析记录集合时,确定所述第二解析记录集合和所述第三解析记录集合全部未生效。
所述向所述DNS递归服务器和所述至少一个预设节点的DNS递归服务器发送所述检测请求包括:通过调度器向所述DNS递归服务器和所述至少一个预设节点的DNS递归服务器并发所述检测请求。
所述第二解析记录集合,第三解析记录集合和生效结果信息包括每条解析记录的生存时间。
所述接收到来自浏览器的第一域名包括:接收到来自浏览器的所述第一域名的随机主机的URL地址。
为了解决上述技术问题,本申请还公开了一种域名解析生效的检测方法,包括:接收到DNS检测指令,所述DNS检测指令包括第二域名;发送第一域名至服务端和DNS递归服务器,使所述服务端从所述第一域名的DNS权威服务器获取到查询所述第一域名的所述DNS递归服务器;发送所述第二域名的DNS检测请求至所述服务端;展示所述服务端返回的生效结果信息,所述生效结果信息,是由所述服务端将所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合进行对比后获得的。
所述发送第一域名至服务端和DNS递归服务器包括:发送所述第一域名的随机主机的URL地址至所述服务端和DNS递归服务器。
所述展示所述服务端返回的生效结果信息包括:展示所述第二域名的
DNS权威服务器的第一解析记录集合和所述DNS递归服务器的第二解析记录集合;当所述第二解析记录集合包含于所述第一解析记录集合时,所述第二解析记录集合中的解析记录全部生效;当所述第二解析记录集合部分包含于所述第一解析记录集合时,所述第二解析记录集合中包含于所述第一解析记录集合的解析记录生效,未包含于所述第一解析记录集合的解析记录未生效;当所述第二解析记录集合全部未包含于所述第一解析记录集合时,所述第二解析记录集合中的解析记录全部未生效。
所述展示所述服务端返回的生效结果信息还包括:展示来自所述服务端至少一个预设节点的DNS递归服务器的第三解析记录集合;当所述第三解析记录集合包含于所述第一解析记录集合时,所述第三解析记录集合中的解析记录全部生效;当所述第三解析记录集合部分包含于所述第一解析记录集合时,所述第三解析记录集合中包含于所述第一解析记录集合的解析记录生效,未包含于所述第一解析记录集合的解析记录未生效;当所述第三解析记录集合全部未包含于所述第一解析记录集合时,所述第三解析记录集合中的解析记录全部未生效。
所述生效结果信息还包括每条解析记录的生存时间。
为了解决上述技术问题,本申请还公开了一种域名解析生效的检测服务端,包括:第一接收模块,用于接收到来自浏览器的第一域名;第一获取模块,用于从所述第一域名的DNS权威服务器,获取到查询所述第一域名的DNS递归服务器;第二接收模块,用于接收到来自所述浏览器的DNS检测请求,所述DNS检测请求包括第二域名;第二获取模块,用于获取所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合;对比模块,用于将所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合进行对比,获得生效结果信息;第一发送模块,用于发送所述生效结果信息至所述浏览器。
所述第二获取模块包括:第一发送子模块,用于向所述第二域名的DNS权威服务器发送检测请求;第一判断子模块,用于判断是否接收到所述第二域名的DNS权威服务器返回的第一解析记录集合;第二发送子模块,用于当接收到所述第二域名的DNS权威服务器返回的第一解析记录集合时,向
所述DNS递归服务器发送所述检测请求;第一接收子模块,用于接收到所述DNS递归服务器返回的所述第二域名的第二解析记录集合。
所述对比模块包括:第二判断子模块,用于判断所述第二解析记录集合是否包含于所述第一解析记录集合;第一确定子模块,用于当所述第二解析记录集合包含于所述第一解析记录集合时,确定所述第二解析记录集合全部生效;第三判断子模块,用于当所述第二解析记录集合未包含于所述第一解析记录集合时,判断所述第二解析记录集合是否部分包含于所述第一解析记录集合;第二确定子模块,用于当所述第二解析记录集合部分包含于所述第一解析记录集合时,确定所述第二解析记录集合中包含于所述第一解析记录集合的部分生效,未包含于所述第一解析记录集合的部分未生效;第三确定子模块,用于当所述第二解析记录集合全部未包含于所述第一解析记录集合时,确定所述第二解析记录集合全部未生效。
所述第二解析记录集合和生效结果信息包括每条解析记录的生存时间(TTL)。
所述服务端还包括:第三获取模块,用于获取至少一个预设节点的DNS递归服务器;所述第二获取模块包括:第一发送子模块,用于向所述第二域名的DNS权威服务器发送检测请求;第一判断子模块,用于判断是否接收到所述第二域名的DNS权威服务器的第一解析记录集合;第三发送子模块,用于当接收到所述第二域名的DNS权威服务器的第一解析记录集合时,向所述DNS递归服务器和所述至少一个预设节点的DNS递归服务器发送所述检测请求;第二接收子模块,用于接收到所述DNS递归服务器返回的所述第二域名的第二解析记录集合和所述至少一个预设节点的DNS递归服务器返回的所述第二域名的至少一个第三解析记录集合;所述对比模块包括:第四判断子模块,用于判断所述第二解析记录集合和所述至少一个第三解析记录集合是否分别包含于所述第一解析记录集合;第四确定子模块,用于当所述第二解析记录集合和所述至少一个第三解析记录集合分别包含于所述第一解析记录集合时,确定所述第二解析记录集合和所述至少一个第三解析记录集合全部生效;第五判断子模块,用于当所述第二解析记录集合和所述至少一个第三解析记录集合分别未包含于所述第一解析记录集合时,判断所述
第二解析记录集合和所述至少一个第三解析记录集合是否分别部分包含于所述第一解析记录集合;第五确定子模块,用于当所述第二解析记录集合和所述至少一个第三解析记录集合分别部分包含于所述第一解析记录集合时,确定所述第二解析记录集合和所述第三解析记录集合中包含于所述第一解析记录集合的部分生效,未包含于所述第一解析记录集合的部分未生效;第六确定子模块,用于当所述第二解析记录集合和所述至少一个第三解析记录集合分别全部未包含于所述第一解析记录集合时,确定所述第二解析记录集合和所述第三解析记录集合全部未生效。
所述第三发送子模块包括:调度单元,用于通过调度器向所述DNS递归服务器和所述至少一个预设节点的DNS递归服务器并发所述检测请求。
所述第二解析记录集合,第三解析记录集合和生效结果信息包括每条解析记录的生存时间。
所述第一接收模块包括:第三接收子模块,用于接收到来自浏览器的所述第一域名的随机主机的URL地址。
为了解决上述技术问题,本申请还公开了一种域名解析生效的检测浏览器,包括:第三接收模块,用于接收到DNS检测指令,所述DNS检测指令包括第二域名;第二发送模块,用于发送第一域名至服务端和DNS递归服务器,使所述服务端从所述第一域名的DNS权威服务器获取到查询所述第一域名的所述DNS递归服务器;第三发送模块,用于发送所述第二域名的DNS检测请求至所述服务端;展示模块,用于展示所述服务端返回的生效结果信息,所述生效结果信息,是由所述服务端将所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合进行对比后获得的。
所述第二发送模块包括:第四发送子模块,用于发送所述第一域名的随机主机的URL地址至所述服务端和DNS递归服务器。
所述展示模块包括:第一展示子模块,用于展示所述第二域名的DNS权威服务器的第一解析记录集合和所述DNS递归服务器的第二解析记录集合;当所述第二解析记录集合包含于所述第一解析记录集合时,所述第二解析记录集合中的解析记录全部生效;当所述第二解析记录集合部分包含于所
述第一解析记录集合时,所述第二解析记录集合中包含于所述第一解析记录集合的解析记录生效,未包含于所述第一解析记录集合的解析记录未生效;当所述第二解析记录集合全部未包含于所述第一解析记录集合时,所述第二解析记录集合中的解析记录全部未生效。
所述展示模块还包括:第二展示子模块,用于展示来自所述服务端至少一个预设节点的DNS递归服务器的第三解析记录集合;当所述第三解析记录集合包含于所述第一解析记录集合时,所述第三解析记录集合中的解析记录全部生效;当所述第三解析记录集合部分包含于所述第一解析记录集合时,所述第三解析记录集合中包含于所述第一解析记录集合的解析记录生效,未包含于所述第一解析记录集合的解析记录未生效;当所述第三解析记录集合全部未包含于所述第一解析记录集合时,所述第三解析记录集合中的解析记录全部未生效。
所述生效结果信息还包括每条解析记录的生存时间。
为了解决上述技术问题,本申请还公开了一种域名解析生效的检测系统,包括:浏览器和服务端;所述浏览器接收到包括第二域名的DNS检测指令时,发送第一域名至服务端和DNS递归服务器,由所述服务端向从所述第一域名的DNS权威服务器获取到查询所述第一域名的所述DNS递归服务器;所述浏览器发送所述第二域名的DNS检测请求至所述服务端;所述服务端获取所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合,并将所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合进行对比,获得生效结果信息;所述服务端发送所述生效结果信息至所述浏览器,由所述浏览器展示所述生效结果信息。
与现有技术相比,本申请可以获得包括以下技术效果:
1)将域名在DNS权威服务器和DNS递归服务器的解析记录集合进行比对分析,将生效结果信息并向用户展示,使用用户直观的了解到每条解析记录是否生效的情况。
2)在生效结果信息还包括域名在其他预设节点的DNS递归服务器的生效情况,是用户能够了解到该域名在全国或者全球其他地区的域名解析生效
情况。
3)在生效结果信息中还包括每条解析记录的生存时间,使用户了解到每条解析记录的生效时间,以及未生效解析记录的更新时间。
4)浏览器发送第一域名的随机主机的URL至DNS递归服务器和服务端,可避免服务端无法获取浏览器的DNS递归服务器的情况出现。
当然,实施本申请的任一产品必不一定需要同时达到以上所述的所有技术效果。
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1是本申请实施例提供的一种域名解析生效的检测方法的流程示意图;
图2是本申请实施例提供的一种域名解析生效的检测方法的流程示意图;
图3是本申请实施例提供的获得生效结果信息的流程示意图;
图4是本申请实施例提供的获得生效结果信息的流程示意图;
图5是本申请实施例提供的一种域名解析生效的检测服务端的结构示意图;
图6是本申请实施例提供的一种域名解析生效的检测浏览器的结构示意图;
图7是本申请实施例提供的一种域名解析生效的检测系统的结构示意图。
以下将配合附图及实施例来详细说明本发明的实施方式,藉此对本发明
如何应用技术手段来解决技术问题并达成技术功效的实现过程能充分理解并据以实施。
图1是本申请实施例提供的一种域名解析生效的检测方法,适用于浏览器,该方法包括以下步骤。
在步骤S10中,接收到DNS检测指令,DNS检测指令包括第二域名。
该DNS检测指令来自于用户输入,其中包括用户输入的第二域名,该第二域名是用户想要进行DNS解析生效检测的域名。
在步骤S11中,发送第一域名至服务端和DNS递归服务器,使服务端从第一域名的DNS权威服务器获取到查询第一域名的DNS递归服务器。
浏览器预设有第一域名,在接收到DNS检测指令时,该第一域名被同时发送到服务端和DNS递归服务器。该DNS递归服务器根据该第一域名进行DNS解析查询,会向该第一域名的DNS权威服务器发送解析请求,以获取该第一域名的解析记录(即该第一域名对应的IP地址)。此时,第一域名的DNS权威服务器保存有该DNS递归服务器的查询时间和IP地址。浏览器将第一域名发送到服务端,使服务端能够根据该第一域名向第一域名的DNS权威服务器发送查询请求,以获取向第一域名的DNS权威服务器查询第一域名的DNS递归服务器的IP地址。
在步骤S12中,发送第二域名的DNS检测请求至服务端。
在步骤S13中,展示服务端返回的生效结果信息,该生效结果信息,是由服务端将第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合进行对比后获得的。
服务端获取解析记录集合并进行对比的获得生效结果信息过程将在下文服务端的实施例中进行详细说明。
浏览器展示服务端返回的生效结果信息,供用户浏览该第二域名的解析生效情况。该生效结果信息包括该第二域名在第二域名的DNS权威服务器的第一解析记录集合和在DNS递归服务器的第二解析记录集合。当第二解析记录集合包含于第一解析记录集合时,第二解析记录集合中的解析记录全部生效;当第二解析记录集合部分包含于第一解析记录集合时,第二解析记
录集合中包含于第一解析记录集合的解析记录生效,未包含于第一解析记录集合的解析记录未生效;当第二解析记录集合全部未包含于第一解析记录集合时,第二解析记录集合中的解析记录全部未生效。
例如,第一解析记录集合包括1.1.1.1、2.2.2.2和3.3.3.3三条解析记录,第二解析记录集合包括1.1.1.1和2.2.2.2两条解析记录,则第二解析记录集合包含于第一解析记录集合,该第二解析记录集合中的两条解析记录全部生效。如果第二解析记录集合包括1.1.1.1和4.4.4.4两条解析记录,则第二解析记录集合部分包含于第一解析记录集合,该第二解析记录集合中的解析记录1.1.1.1生效,解析记录4.4.4.4未生效。如果第二解析记录集合包括4.4.4.4和5.5.5.5,则第二解析记录集合全部未包含于第一解析记录集合,该第二解析记录集合中的两条解析记录全部未生效。
在一个实施例中,该步骤S13展示生效结果信息还包括:展示来自服务端至少一个预设节点的DNS递归服务器的第三解析记录集合。该服务端向该浏览器的DNS递归服务器检测第二域名的解析记录之外,通过其他至少一个预设节点向对应的DNS递归服务器检测第二域名的解析记录,并分别获得第二域名在每个预设节点对应的DNS递归服务器的第三解析记录集合。浏览器接收到的生效结果信息还包括该第三解析记录集合,该第三解析记录集合中的解析记录生效情况与第二解析记录集合的确定方式相同。
在一个实施例中,该生效结果信息还包括每条解析记录的生存时间(TTL)。DNS递归服务器向DNS权威服务器查询到域名的解析记录后,会在本地缓存该域名的解析记录,所缓存的解析记录在DNS递归服务器中存在的最长时间即为该解析记录的生存时间(该解析记录的TTL值)。服务端向DNS递归服务器检测第二域名的解析记录时,同时获取到每条解析记录在DNS递归服务器的生存时间并保存在生效结果信息中。用户通过浏览器展示的生效结果信息时,能够同时浏览到每条解析记录的生存时间,从而能够估算出DNS递归服务器对每条解析记录进行更新的时间,对于当前未生效的解析记录,能够估算出该当前未生效的解析记录在DNS递归服务器中还会存在多长时间。
在一个实施例中,在步骤S11中发送第一域名至服务端和DNS递归服
务器。当第一域名发送DNS递归服务器后,如果浏览器需要再次进行DNS检测,那么再发送第一域名至DNS递归服务器时,DNS递归服务器可能会缓存有该第一域名的解析记录,该DNS递归服务器不会向第一域名的DNS权威服务器查询解析记录,使服务端无法通过第一域名从第一域名的DNS权威服务器获取到DNS递归服务器。因此,可以将步骤S11进一步设置为发送第一域名的随机主机的URL地址至服务端和DNS递归服务。在该第一域名前添加随机变化的主机名称字符串,作为第一域名下的一个主机的URL地址发送至服务端和DNS递归服务器,使浏览器每次发出的第一域名的随机主机的URL地址都不相同,从而避免服务端查询不到DNS递归服务器的情况出现。例如,该第一域名为“A.com”,在其前面添加随机变化的主机名称字符串“random”,形成第一域名的随机主机的URL地址“random.A.com”,其中“random”为可随机变化的字符串,使每次第一域名的随机主机的URL地址都不相同。
图2是本申请实施例提供的一种域名解析生效的检测方法,适用于服务端设备,该方法包括以下步骤。
在步骤S20中,接收到来自浏览器的第一域名。
该第一域名是由浏览器在接收到DNS检测指令后同时发送到服务端和DNS递归服务器的,使服务端能够查询该浏览器当前使用的DNS递归服务器。
在步骤S21中,从第一域名的DNS权威服务器,获取到查询第一域名的DNS递归服务器。
DNS递归服务器接收到第一域名后,会向该第一域名的DNS权威服务器查询该第一域名的解析记录。服务端根据该第一域名,从第一域名的DNS权威服务器获取到查询该第一域名的DNS递归服务器。
在步骤S22中,接收到来自浏览器的DNS检测请求,DNS检测请求包括第二域名。
该第二域名是用户通过浏览器进行DNS检测的域名。
在步骤S23中,获取第二域名在第二域名的DNS权威服务器和DNS递
归服务器的解析记录集合。
服务端根据该第二域名,向第二域名的DNS权威服务器和步骤S21中获取到的DNS递归服务器获取该第二域名的解析记录集合。
在步骤S24中,将第二域名在第二域名的DNS权威服务器和DNS递归服务器的解析记录集合进行对比,获得生效结果信息。
例如,在第二域名的DNS权威服务器和DNS递归服务器的解析记录集合中同时存在的解析记录确定为生效,生成生效结果信息。
在步骤S25中,发送生效结果信息至浏览器。由浏览器将生效结果信息展示给用户,使用户了解到第二域名在DNS递归服务器的解析生效情况。
在一个实施例中,如图3所示,该步骤S23进一步包括以下步骤。
在步骤S230中,向第二域名的DNS权威服务器发送检测请求。以获取该第二域名在第二域名的DNS权威服务器的第一解析记录集合。
在步骤S232中,判断是否接收到第二域名的DNS权威服务器返回的第一解析记录集合。即判断该第二域名在其DNS权威服务器是否已解析生效。当接收到第二域名的DNS权威服务器返回的第一解析记录集合时,执行步骤S234;当没有接收到第二域名的DNS权威服务器返回的第一解析记录集合时,认为该第二域名在其DNS权威服务器的解析未生效,本流程结束。
在步骤S234中,向DNS递归服务器发送检测请求。
接收到第二域名的DNS权威服务器返回的第一解析记录集合时,说明该第二域名在其DNS权威服务器已解析成功,进一步向步骤S21中获取的DNS递归服务器发送包括第二域名的检测请求。
在步骤S236中,接收到DNS递归服务器返回的第二域名的第二解析记录集合。
服务端接收到DNS递归服务器返回的第二域名在该DNS递归服务器的第二解析记录集合。
如图3所示在步骤S24中,进一步包括以下步骤。
在步骤S240中,判断第二解析记录集合是否包含于第一解析记录集合。
当第二解析记录集合包含于第一解析记录集合时,执行步骤S242;当第二解析记录集合未包含于第一解析记录集合时,执行步骤S244。
在步骤S242中,确定第二解析记录集合全部生效。
在步骤S244中,判断第二解析记录集合是否部分包含于第一解析记录集合。当第二解析记录集合部分包含于第一解析记录集合时,执行步骤S246;当第二解析记录集合全部未包含于第一解析记录集合时,执行步骤S248。
在步骤S246中,确定第二解析记录集合中包含于第一解析记录集合的部分生效,未包含于第一解析记录集合的部分未生效。
在步骤S248中,确定第二解析记录集合全部未生效。
例如,第一解析记录集合包括1.1.1.1、2.2.2.2和3.3.3.3三条解析记录,第二解析记录集合包括1.1.1.1和2.2.2.2两条解析记录,则第二解析记录集合包含于第一解析记录集合,该第二解析记录集合中的两条解析记录全部生效。如果第二解析记录集合包括1.1.1.1和4.4.4.4两条解析记录,则第二解析记录集合部分包含于第一解析记录集合,该第二解析记录集合中的解析记录1.1.1.1生效,解析记录4.4.4.4未生效。如果第二解析记录集合包括4.4.4.4和5.5.5.5,则第二解析记录集合全部未包含于第一解析记录集合,该第二解析记录集合中的两条解析记录全部未生效。
在一个实施例中,该域名解析生效的检测方法进一步包括以下步骤:获取至少一个预设节点的DNS递归服务器。服务端作为控制节点,设有至少一个预设节点作为被控节点。该至少一个预设节点对外发送DNS解析请求,并将返回的DNS解析记录的DNS递归服务器地址反馈给服务端,由该服务端记录每个预设节点所对应的DNS递归服务器。该至少一个预设节点可设置在全国或全球各个城市,以获取每个城市网络运营商提供的DNS递归服务器。如图4所示,在步骤S23中进一步包括以下步骤。
在步骤S231中,向第二域名的DNS权威服务器发送检测请求;
在步骤S233中,判断是否接收到第二域名的DNS权威服务器返回的第一解析记录集合。即判断该第二域名在其DNS权威服务器是否已解析生效。当接收到第二域名的DNS权威服务器返回的第一解析记录集合时,执行步
骤S235;当没有接收到第二域名的DNS权威服务器返回的第一解析记录集合时,认为该第二域名在其DNS权威服务器的解析未生效,本流程结束。
在步骤S235中,向DNS递归服务器和至少一个预设节点的DNS递归服务器发送检测请求。
服务端向步骤S21中获取的DNS递归服务器和至少一个预设节点所对应的DNS递归服务器发送检测请求,以获取第二域名的解析记录集合。
在步骤S237中,接收到DNS递归服务器返回的第二域名的第二解析记录集合和至少一个预设节点的DNS递归服务器返回的第二域名的至少一个第三解析记录集合。
该第三解析记录集合来自预设节点的DNS递归服务器,包括第二域名在一个预设节点的DNS递归服务器的全部解析记录。
如图4所示,步骤S24进一步包括以下步骤。
在步骤S241中,判断第二解析记录集合和至少一个第三解析记录集合是否分别包含于第一解析记录集合。当第二解析记录集合和至少一个第三解析记录集合分别包含于第一解析记录集合时,执行步骤S243;当第二解析记录集合和至少一个第三解析记录集合分别未包含于第一解析记录集合时,执行步骤S245。
在步骤S243中,确定第二解析记录集合和至少一个第三解析记录集合全部生效。
在步骤S245中,判断第二解析记录集合和至少一个第三解析记录集合是否分别部分包含于第一解析记录集合。当第二解析记录集合和至少一个第三解析记录集合分别部分包含于第一解析记录集合时,执行步骤S247;当第二解析记录集合和至少一个第三解析记录集合分别全部未包含于第一解析记录集合时,执行步骤S249。
在步骤S247中,确定第二解析记录集合和第三解析记录集合中包含于第一解析记录集合的部分生效,未包含于第一解析记录集合的部分未生效。
在步骤S249中,确定第二解析记录集合和第三解析记录集合全部未生效。
第三解析记录集合是否包含于第一解析记录集合的判别方法与第二解析记录集合相同,在此不再举例说明。其中在步骤S235中,向DNS递归服务器和至少一个预设节点的DNS递归服务器发送检测请求时,可通过通过调度器向DNS递归服务器和至少一个预设节点的DNS递归服务器并发检测请求,以提高服务端进行DNS检测的效率,减少用户等待生效结果信息的时间。
在一个实施例中,步骤S20接收到来自浏览器的第一域名包括:接收到来自浏览器的第一域名的随机主机的URL地址。当第一域名被发送到DNS递归服务器后,如果浏览器需要再次进行DNS检测,那么再发送第一域名至DNS递归服务器时,DNS递归服务器可能会缓存有该第一域名的解析记录,该DNS递归服务器不会向第一域名的DNS权威服务器查询解析记录,使服务端无法通过第一域名从第一域名的DNS权威服务器获取到DNS递归服务器。浏览器在该第一域名前添加随机变化的主机名称字符串,作为第一域名下的一个主机的URL地址发送至服务端和DNS递归服务器,使浏览器每次发出的第一域名的随机主机的URL地址都不相同,从而避免服务端查询不到DNS递归服务器的情况出现。
上述各实施例中的第二解析记录集合,第三解析记录集合以及生效结果信息中还包括每条解析记录的生存时间,使用户能够浏览每条解析记录的生效时间,以及未生效的解析记录能够得到更新的时间,使用户能够预期域名解析生效的时间。
图5是本公开实施例提供的一种域名解析生效的检测服务端,包括:
第一接收模块50,用于接收到来自浏览器的第一域名;
第一获取模块51,用于从第一域名的DNS权威服务器,获取到查询第一域名的DNS递归服务器;
第二接收模块52,用于接收到来自浏览器的DNS检测请求,DNS检测请求包括第二域名;
第二获取模块53,用于获取第二域名在第二域名的DNS权威服务器和DNS递归服务器的解析记录集合;
对比模块54,用于将第二域名在第二域名的DNS权威服务器和DNS递归服务器的解析记录集合进行对比,获得生效结果信息;
第一发送模块55,用于发送生效结果信息至浏览器。
在一个实施例中,该第二获取模块53包括:
第一发送子模块,用于向第二域名的DNS权威服务器发送检测请求;
第一判断子模块,用于判断是否接收到第二域名的DNS权威服务器返回的第一解析记录集合;
第二发送子模块,用于当接收到第二域名的DNS权威服务器返回的第一解析记录集合时,向DNS递归服务器发送检测请求;
第一接收子模块,用于接收到DNS递归服务器返回的第二域名的第二解析记录集合。
该对比模块54包括:
第二判断子模块,用于判断第二解析记录集合是否包含于第一解析记录集合;
第一确定子模块,用于当第二解析记录集合包含于第一解析记录集合时,确定第二解析记录集合全部生效;
第三判断子模块,用于当第二解析记录集合未包含于第一解析记录集合时,判断第二解析记录集合是否部分包含于第一解析记录集合;
第二确定子模块,用于当第二解析记录集合部分包含于第一解析记录集合时,确定第二解析记录集合中包含于第一解析记录集合的部分生效,未包含于第一解析记录集合的部分未生效;
第三确定子模块,用于当第二解析记录集合全部未包含于第一解析记录集合时,确定第二解析记录集合全部未生效。
该第二解析记录集合和生效结果信息包括每条解析记录的生存时间。
在一个实施例中,该服务端还包括:
第三获取模块,用于获取至少一个预设节点的DNS递归服务器;
该第二获取模块53包括:
第一发送子模块,用于向第二域名的DNS权威服务器发送检测请求;
第一判断子模块,用于判断是否接收到第二域名的DNS权威服务器的第一解析记录集合;
第三发送子模块,用于当接收到第二域名的DNS权威服务器的第一解析记录集合时,向DNS递归服务器和至少一个预设节点的DNS递归服务器发送检测请求;
第二接收子模块,用于接收到DNS递归服务器返回的第二域名的第二解析记录集合和至少一个预设节点的DNS递归服务器返回的第二域名的至少一个第三解析记录集合;
该对比模块54包括:
第四判断子模块,用于判断第二解析记录集合和至少一个第三解析记录集合是否分别包含于第一解析记录集合;
第四确定子模块,用于当第二解析记录集合和至少一个第三解析记录集合分别包含于第一解析记录集合时,确定第二解析记录集合和至少一个第三解析记录集合全部生效;
第五判断子模块,用于当第二解析记录集合和至少一个第三解析记录集合分别未包含于第一解析记录集合时,判断第二解析记录集合和至少一个第三解析记录集合是否分别部分包含于第一解析记录集合;
第五确定子模块,用于当第二解析记录集合和至少一个第三解析记录集合分别部分包含于第一解析记录集合时,确定第二解析记录集合和第三解析记录集合中包含于第一解析记录集合的部分生效,未包含于第一解析记录集合的部分未生效;
第六确定子模块,用于当第二解析记录集合和至少一个第三解析记录集合分别全部未包含于第一解析记录集合时,确定第二解析记录集合和第三解析记录集合全部未生效。
其中,该第三发送子模块包括:
调度单元,用于通过调度器向DNS递归服务器和至少一个预设节点的DNS递归服务器并发检测请求。
该第二解析记录集合,第三解析记录集合和生效结果信息包括每条解析记录的生存时间。
在一个实施例中,该第一接收模块50包括:
第三接收子模块,用于接收到来自浏览器的第一域名的随机主机的URL地址。
图6是本申请实施例提供的一种域名解析生效的检测浏览器,包括:
第三接收模块60,用于接收到DNS检测指令,DNS检测指令包括第二域名;
第二发送模块61,用于发送第一域名至服务端和DNS递归服务器,使服务端从第一域名的DNS权威服务器获取到查询第一域名的DNS递归服务器;
第三发送模块62,用于发送第二域名的DNS检测请求至服务端;
展示模块63,用于展示服务端返回的生效结果信息,生效结果信息,是由服务端将第二域名在第二域名的DNS权威服务器和DNS递归服务器的解析记录集合进行对比后获得的。
在一个实施例中,该第二发送模块61包括:
第四发送子模块,用于发送第一域名的随机主机的URL地址至服务端和DNS递归服务器。
在一个实施例中,该展示模块63包括:
第一展示子模块,用于展示第二域名的DNS权威服务器的第一解析记录集合和DNS递归服务器的第二解析记录集合;
当第二解析记录集合包含于第一解析记录集合时,第二解析记录集合中的解析记录全部生效;
当第二解析记录集合部分包含于第一解析记录集合时,第二解析记录集合中包含于第一解析记录集合的解析记录生效,未包含于第一解析记录集合的解析记录未生效;
当第二解析记录集合全部未包含于第一解析记录集合时,第二解析记录
集合中的解析记录全部未生效。
在一个实施例中,该展示模块63还包括:
第二展示子模块,用于展示来自服务端至少一个预设节点的DNS递归服务器的第三解析记录集合;
当第三解析记录集合包含于第一解析记录集合时,第三解析记录集合中的解析记录全部生效;
当第三解析记录集合部分包含于第一解析记录集合时,第三解析记录集合中包含于第一解析记录集合的解析记录生效,未包含于第一解析记录集合的解析记录未生效;
当第三解析记录集合全部未包含于第一解析记录集合时,第三解析记录集合中的解析记录全部未生效。
上述各实施例中的生效结果信息还包括每条解析记录的生存时间。
图7是本申请实施例提供的一种域名解析生效的检测系统,包括:浏览器70和服务端71;
浏览器70接收到包括第二域名的DNS检测指令时,发送第一域名至服务端71和DNS递归服务器72,由服务端71向从第一域名的DNS权威服务器73获取到查询第一域名的DNS递归服务器72。浏览器70发送第二域名的DNS检测请求至服务端71;服务端71获取第二域名在第二域名的DNS权威服务器74和DNS递归服务器72的解析记录集合,并将第二域名在第二域名的DNS权威服务器74和DNS递归服务器72的解析记录集合进行对比,获得生效结果信息;服务端71发送生效结果信息至浏览器70,由浏览器70展示所述生效结果信息。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由
任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
如在说明书及权利要求当中使用了某些词汇来指称特定组件。本领域技术人员应可理解,硬件制造商可能会用不同名词来称呼同一个组件。本说明书及权利要求并不以名称的差异来作为区分组件的方式,而是以组件在功能上的差异来作为区分的准则。如在通篇说明书及权利要求当中所提及的“包含”为一开放式用语,故应解释成“包含但不限定于”。“大致”是指在可接收的误差范围内,本领域技术人员能够在一定误差范围内解决所述技术问题,基本达到所述技术效果。此外,“耦接”一词在此包含任何直接及间接的电性耦接手段。因此,若文中描述一第一装置耦接于一第二装置,则代表所述第一装置可直接电性耦接于所述第二装置,或通过其他装置或耦接手段间接地电性耦接至所述第二装置。说明书后续描述为实施本发明的较佳实施方式,然所述描述乃以说明本发明的一般原则为目的,并非用以限定本发明的范围。本发明的保护范围当视所附权利要求所界定者为准。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的商品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种商品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的商品或者系统中还存在另外的相同要素。
上述说明示出并描述了本发明的若干优选实施例,但如前所述,应当理解本发明并非局限于本文所披露的形式,不应看作是对其他实施例的排除,
而可用于各种其他组合、修改和环境,并能够在本文所述发明构想范围内,通过上述教导或相关领域的技术或知识进行改动。而本领域人员所进行的改动和变化不脱离本发明的精神和范围,则都应在本发明所附权利要求的保护范围内。
Claims (27)
- 一种域名解析生效的检测方法,其特征在于,包括:接收到来自浏览器的第一域名;从所述第一域名的DNS权威服务器,获取到查询所述第一域名的DNS递归服务器;接收到来自所述浏览器的DNS检测请求,所述DNS检测请求包括第二域名;获取所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合;将所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合进行对比,获得生效结果信息;发送所述生效结果信息至所述浏览器。
- 如权利要求1所述的方法,其特征在于,所述获取所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合包括:向所述第二域名的DNS权威服务器发送检测请求;判断是否接收到所述第二域名的DNS权威服务器返回的第一解析记录集合;当接收到所述第二域名的DNS权威服务器返回的第一解析记录集合时,向所述DNS递归服务器发送所述检测请求;接收到所述DNS递归服务器返回的所述第二域名的第二解析记录集合。
- 如权利要求2所述的方法,其特征在于,所述将所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合进行对比,获得生效结果信息包括:判断所述第二解析记录集合是否包含于所述第一解析记录集合;当所述第二解析记录集合包含于所述第一解析记录集合时,确定所述第二解析记录集合全部生效;当所述第二解析记录集合未包含于所述第一解析记录集合时,判断所述第二解析记录集合是否部分包含于所述第一解析记录集合;当所述第二解析记录集合部分包含于所述第一解析记录集合时,确定所述第二解析记录集合中包含于所述第一解析记录集合的部分生效,未包含于所述第一解析记录集合的部分未生效;当所述第二解析记录集合全部未包含于所述第一解析记录集合时,确定所述第二解析记录集合全部未生效。
- 如权利要求2或3所述的方法,其特征在于,所述第二解析记录集合和生效结果信息包括每条解析记录的生存时间(TTL)。
- 如权利要求1所述的方法,其特征在于,所述方法还包括:获取至少一个预设节点的DNS递归服务器;所述获取所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合包括:向所述第二域名的DNS权威服务器发送检测请求;判断是否接收到所述第二域名的DNS权威服务器的第一解析记录集合;当接收到所述第二域名的DNS权威服务器的第一解析记录集合时,向所述DNS递归服务器和所述至少一个预设节点的DNS递归服务器发送所述检测请求;接收到所述DNS递归服务器返回的所述第二域名的第二解析记录集合和所述至少一个预设节点的DNS递归服务器返回的所述第二域名的至少一个第三解析记录集合;所述将所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合进行对比,获得生效结果信息包括:判断所述第二解析记录集合和所述至少一个第三解析记录集合是否分别包含于所述第一解析记录集合;当所述第二解析记录集合和所述至少一个第三解析记录集合分别包含于所述第一解析记录集合时,确定所述第二解析记录集合和所述至少一个第 三解析记录集合全部生效;当所述第二解析记录集合和所述至少一个第三解析记录集合分别未包含于所述第一解析记录集合时,判断所述第二解析记录集合和所述至少一个第三解析记录集合是否分别部分包含于所述第一解析记录集合;当所述第二解析记录集合和所述至少一个第三解析记录集合分别部分包含于所述第一解析记录集合时,确定所述第二解析记录集合和所述第三解析记录集合中包含于所述第一解析记录集合的部分生效,未包含于所述第一解析记录集合的部分未生效;当所述第二解析记录集合和所述至少一个第三解析记录集合分别全部未包含于所述第一解析记录集合时,确定所述第二解析记录集合和所述第三解析记录集合全部未生效。
- 如权利要求5所述的方法,其特征在于,所述向所述DNS递归服务器和所述至少一个预设节点的DNS递归服务器发送所述检测请求包括:通过调度器向所述DNS递归服务器和所述至少一个预设节点的DNS递归服务器并发所述检测请求。
- 如权利要求5或6所述的方法,其特征在于,所述第二解析记录集合,第三解析记录集合和生效结果信息包括每条解析记录的生存时间。
- 如权利要求1所述的方法,其特征在于,所述接收到来自浏览器的第一域名包括:接收到来自浏览器的所述第一域名的随机主机的URL地址。
- 一种域名解析生效的检测方法,其特征在于,包括:接收到DNS检测指令,所述DNS检测指令包括第二域名;发送第一域名至服务端和DNS递归服务器,使所述服务端从所述第一域名的DNS权威服务器获取到查询所述第一域名的所述DNS递归服务器;发送所述第二域名的DNS检测请求至所述服务端;展示所述服务端返回的生效结果信息,所述生效结果信息,是由所述服务端将所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服 务器的解析记录集合进行对比后获得的。
- 如权利要求9所述的方法,其特征在于,所述发送第一域名至服务端和DNS递归服务器包括:发送所述第一域名的随机主机的URL地址至所述服务端和DNS递归服务器。
- 如权利要求9所述的方法,其特征在于,所述展示所述服务端返回的生效结果信息包括:展示所述第二域名的DNS权威服务器的第一解析记录集合和所述DNS递归服务器的第二解析记录集合;当所述第二解析记录集合包含于所述第一解析记录集合时,所述第二解析记录集合中的解析记录全部生效;当所述第二解析记录集合部分包含于所述第一解析记录集合时,所述第二解析记录集合中包含于所述第一解析记录集合的解析记录生效,未包含于所述第一解析记录集合的解析记录未生效;当所述第二解析记录集合全部未包含于所述第一解析记录集合时,所述第二解析记录集合中的解析记录全部未生效。
- 如权利要求11所述的方法,其特征在于,所述展示所述服务端返回的生效结果信息还包括:展示来自所述服务端至少一个预设节点的DNS递归服务器的第三解析记录集合;当所述第三解析记录集合包含于所述第一解析记录集合时,所述第三解析记录集合中的解析记录全部生效;当所述第三解析记录集合部分包含于所述第一解析记录集合时,所述第三解析记录集合中包含于所述第一解析记录集合的解析记录生效,未包含于所述第一解析记录集合的解析记录未生效;当所述第三解析记录集合全部未包含于所述第一解析记录集合时,所述第三解析记录集合中的解析记录全部未生效。
- 如权利要求11或12所述的方法,其特征在于,所述生效结果信息还包括每条解析记录的生存时间。
- 一种域名解析生效的检测服务端,其特征在于,包括:第一接收模块,用于接收到来自浏览器的第一域名;第一获取模块,用于从所述第一域名的DNS权威服务器,获取到查询所述第一域名的DNS递归服务器;第二接收模块,用于接收到来自所述浏览器的DNS检测请求,所述DNS检测请求包括第二域名;第二获取模块,用于获取所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合;对比模块,用于将所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合进行对比,获得生效结果信息;第一发送模块,用于发送所述生效结果信息至所述浏览器。
- 如权利要求14所述的服务端,其特征在于,所述第二获取模块包括:第一发送子模块,用于向所述第二域名的DNS权威服务器发送检测请求;第一判断子模块,用于判断是否接收到所述第二域名的DNS权威服务器返回的第一解析记录集合;第二发送子模块,用于当接收到所述第二域名的DNS权威服务器返回的第一解析记录集合时,向所述DNS递归服务器发送所述检测请求;第一接收子模块,用于接收到所述DNS递归服务器返回的所述第二域名的第二解析记录集合。
- 如权利要求15所述的服务端,其特征在于,所述对比模块包括:第二判断子模块,用于判断所述第二解析记录集合是否包含于所述第一解析记录集合;第一确定子模块,用于当所述第二解析记录集合包含于所述第一解析记 录集合时,确定所述第二解析记录集合全部生效;第三判断子模块,用于当所述第二解析记录集合未包含于所述第一解析记录集合时,判断所述第二解析记录集合是否部分包含于所述第一解析记录集合;第二确定子模块,用于当所述第二解析记录集合部分包含于所述第一解析记录集合时,确定所述第二解析记录集合中包含于所述第一解析记录集合的部分生效,未包含于所述第一解析记录集合的部分未生效;第三确定子模块,用于当所述第二解析记录集合全部未包含于所述第一解析记录集合时,确定所述第二解析记录集合全部未生效。
- 如权利要求15或16所述的服务端,其特征在于,所述第二解析记录集合和生效结果信息包括每条解析记录的生存时间(TTL)。
- 如权利要求14所述的服务端,其特征在于,所述服务端还包括:第三获取模块,用于获取至少一个预设节点的DNS递归服务器;所述第二获取模块包括:第一发送子模块,用于向所述第二域名的DNS权威服务器发送检测请求;第一判断子模块,用于判断是否接收到所述第二域名的DNS权威服务器的第一解析记录集合;第三发送子模块,用于当接收到所述第二域名的DNS权威服务器的第一解析记录集合时,向所述DNS递归服务器和所述至少一个预设节点的DNS递归服务器发送所述检测请求;第二接收子模块,用于接收到所述DNS递归服务器返回的所述第二域名的第二解析记录集合和所述至少一个预设节点的DNS递归服务器返回的所述第二域名的至少一个第三解析记录集合;所述对比模块包括:第四判断子模块,用于判断所述第二解析记录集合和所述至少一个第三解析记录集合是否分别包含于所述第一解析记录集合;第四确定子模块,用于当所述第二解析记录集合和所述至少一个第三解析记录集合分别包含于所述第一解析记录集合时,确定所述第二解析记录集合和所述至少一个第三解析记录集合全部生效;第五判断子模块,用于当所述第二解析记录集合和所述至少一个第三解析记录集合分别未包含于所述第一解析记录集合时,判断所述第二解析记录集合和所述至少一个第三解析记录集合是否分别部分包含于所述第一解析记录集合;第五确定子模块,用于当所述第二解析记录集合和所述至少一个第三解析记录集合分别部分包含于所述第一解析记录集合时,确定所述第二解析记录集合和所述第三解析记录集合中包含于所述第一解析记录集合的部分生效,未包含于所述第一解析记录集合的部分未生效;第六确定子模块,用于当所述第二解析记录集合和所述至少一个第三解析记录集合分别全部未包含于所述第一解析记录集合时,确定所述第二解析记录集合和所述第三解析记录集合全部未生效。
- 如权利要求18所述的服务端,其特征在于,所述第三发送子模块包括:调度单元,用于通过调度器向所述DNS递归服务器和所述至少一个预设节点的DNS递归服务器并发所述检测请求。
- 如权利要求18或19所述的服务端,其特征在于,所述第二解析记录集合,第三解析记录集合和生效结果信息包括每条解析记录的生存时间。
- 如权利要求14所述的服务端,其特征在于,所述第一接收模块包括:第三接收子模块,用于接收到来自浏览器的所述第一域名的随机主机的URL地址。
- 一种域名解析生效的检测浏览器,其特征在于,包括:第三接收模块,用于接收到DNS检测指令,所述DNS检测指令包括第二域名;第二发送模块,用于发送第一域名至服务端和DNS递归服务器,使所 述服务端从所述第一域名的DNS权威服务器获取到查询所述第一域名的所述DNS递归服务器;第三发送模块,用于发送所述第二域名的DNS检测请求至所述服务端;展示模块,用于展示所述服务端返回的生效结果信息,所述生效结果信息,是由所述服务端将所述第二域名在所述第二域名的DNS权威服务器和所述DNS递归服务器的解析记录集合进行对比后获得的。
- 如权利要求22所述的浏览器,其特征在于,所述第二发送模块包括:第四发送子模块,用于发送所述第一域名的随机主机的URL地址至所述服务端和DNS递归服务器。
- 如权利要求22所述的浏览器,其特征在于,所述展示模块包括:第一展示子模块,用于展示所述第二域名的DNS权威服务器的第一解析记录集合和所述DNS递归服务器的第二解析记录集合;当所述第二解析记录集合包含于所述第一解析记录集合时,所述第二解析记录集合中的解析记录全部生效;当所述第二解析记录集合部分包含于所述第一解析记录集合时,所述第二解析记录集合中包含于所述第一解析记录集合的解析记录生效,未包含于所述第一解析记录集合的解析记录未生效;当所述第二解析记录集合全部未包含于所述第一解析记录集合时,所述第二解析记录集合中的解析记录全部未生效。
- 如权利要求24所述的浏览器,其特征在于,所述展示模块还包括:第二展示子模块,用于展示来自所述服务端至少一个预设节点的DNS递归服务器的第三解析记录集合;当所述第三解析记录集合包含于所述第一解析记录集合时,所述第三解析记录集合中的解析记录全部生效;当所述第三解析记录集合部分包含于所述第一解析记录集合时,所述第三解析记录集合中包含于所述第一解析记录集合的解析记录生效,未包含于 所述第一解析记录集合的解析记录未生效;当所述第三解析记录集合全部未包含于所述第一解析记录集合时,所述第三解析记录集合中的解析记录全部未生效。
- 如权利要求24或25所述的浏览器,其特征在于,所述生效结果信息还包括每条解析记录的生存时间。
- 一种域名解析生效的检测系统,其特征在于,包括:如权利要求22-26中任一项所述的浏览器以及如权利要求14-21中任一项所述的服务端。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510227532.3A CN106209486B (zh) | 2015-05-06 | 2015-05-06 | 域名解析生效的检测方法、浏览器、服务端和系统 |
| CN201510227532.3 | 2015-05-06 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016177282A1 true WO2016177282A1 (zh) | 2016-11-10 |
Family
ID=57218053
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/079815 Ceased WO2016177282A1 (zh) | 2015-05-06 | 2016-04-21 | 域名解析生效的检测方法、浏览器、服务端和系统 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106209486B (zh) |
| WO (1) | WO2016177282A1 (zh) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111245973A (zh) * | 2020-01-20 | 2020-06-05 | 烽火通信科技股份有限公司 | 一种基于域名的报文传输方法、报文转发控制方法及系统 |
| CN111432045A (zh) * | 2020-03-19 | 2020-07-17 | 杭州迪普科技股份有限公司 | 一种域名系统服务器调度算法的测试方法、装置及设备 |
| CN111770104A (zh) * | 2020-07-02 | 2020-10-13 | 浪潮云信息技术股份公司 | web漏洞检测方法、系统、终端、计算机可读存储介质 |
| CN113965392A (zh) * | 2021-10-25 | 2022-01-21 | 杭州安恒信息技术股份有限公司 | 恶意服务器检测方法、系统、可读介质及电子设备 |
| CN119011380A (zh) * | 2024-10-24 | 2024-11-22 | 天翼视联科技有限公司 | 一种dns解析监控方法、装置、电子装置和存储介质 |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109218457B (zh) * | 2017-07-06 | 2021-04-13 | 腾讯科技(深圳)有限公司 | 网络数据处理方法、装置和系统 |
| CN113765731B (zh) * | 2020-06-28 | 2023-09-05 | 北京沃东天骏信息技术有限公司 | 信息处理方法、装置及计算机可读存储介质 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB2413742A (en) * | 2003-11-05 | 2005-11-02 | Internet Comp Bureau Plc | Address resolution in a Domain Name System |
| CN102035809A (zh) * | 2009-09-29 | 2011-04-27 | 成都市华为赛门铁克科技有限公司 | 缓存中毒的防护方法和防护设备及防护系统 |
| CN103428302A (zh) * | 2012-05-15 | 2013-12-04 | 阿里巴巴集团控股有限公司 | 一种域名解析方法、域名解析服务器及域名解析系统 |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101494654B (zh) * | 2009-03-13 | 2012-09-12 | 阿里巴巴集团控股有限公司 | 一种确定服务器可访问性的方法及装置 |
| CN101640679B (zh) * | 2009-04-13 | 2012-07-18 | 山石网科通信技术(北京)有限公司 | 域名解析代理方法和装置 |
| CN102891807B (zh) * | 2012-07-16 | 2015-10-28 | 北京东方网信科技股份有限公司 | 一种基于主动引导的网络流量缓存方法及系统 |
| CN103685599B (zh) * | 2013-12-09 | 2017-04-05 | 中国科学院计算机网络信息中心 | 一种域名递归服务的预判干预方法 |
| CN104113447B (zh) * | 2014-07-10 | 2017-11-10 | 北京蓝汛通信技术有限责任公司 | 监测域名解析污染的方法、装置及系统 |
-
2015
- 2015-05-06 CN CN201510227532.3A patent/CN106209486B/zh active Active
-
2016
- 2016-04-21 WO PCT/CN2016/079815 patent/WO2016177282A1/zh not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB2413742A (en) * | 2003-11-05 | 2005-11-02 | Internet Comp Bureau Plc | Address resolution in a Domain Name System |
| CN102035809A (zh) * | 2009-09-29 | 2011-04-27 | 成都市华为赛门铁克科技有限公司 | 缓存中毒的防护方法和防护设备及防护系统 |
| CN103428302A (zh) * | 2012-05-15 | 2013-12-04 | 阿里巴巴集团控股有限公司 | 一种域名解析方法、域名解析服务器及域名解析系统 |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111245973A (zh) * | 2020-01-20 | 2020-06-05 | 烽火通信科技股份有限公司 | 一种基于域名的报文传输方法、报文转发控制方法及系统 |
| CN111245973B (zh) * | 2020-01-20 | 2022-06-03 | 烽火通信科技股份有限公司 | 一种基于域名的报文传输方法、报文转发控制方法及系统 |
| CN111432045A (zh) * | 2020-03-19 | 2020-07-17 | 杭州迪普科技股份有限公司 | 一种域名系统服务器调度算法的测试方法、装置及设备 |
| CN111432045B (zh) * | 2020-03-19 | 2022-05-31 | 杭州迪普科技股份有限公司 | 一种域名系统服务器调度算法的测试方法、装置及设备 |
| CN111770104A (zh) * | 2020-07-02 | 2020-10-13 | 浪潮云信息技术股份公司 | web漏洞检测方法、系统、终端、计算机可读存储介质 |
| CN113965392A (zh) * | 2021-10-25 | 2022-01-21 | 杭州安恒信息技术股份有限公司 | 恶意服务器检测方法、系统、可读介质及电子设备 |
| CN113965392B (zh) * | 2021-10-25 | 2024-05-28 | 杭州安恒信息技术股份有限公司 | 恶意服务器检测方法、系统、可读介质及电子设备 |
| CN119011380A (zh) * | 2024-10-24 | 2024-11-22 | 天翼视联科技有限公司 | 一种dns解析监控方法、装置、电子装置和存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106209486A (zh) | 2016-12-07 |
| CN106209486B (zh) | 2019-08-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2016177282A1 (zh) | 域名解析生效的检测方法、浏览器、服务端和系统 | |
| US11632353B2 (en) | Delegating DNS records to additional providers | |
| US9883002B2 (en) | Method and system for accessing website | |
| US10225231B2 (en) | Method and server of remote information query | |
| US9141669B2 (en) | Configuring an origin server content delivery using a pulled data list | |
| US20100146132A1 (en) | Methods, Systems, And Computer Program Products For Accessing A Resource Having A Network Address Associated With A Location On A Map | |
| CN104113447B (zh) | 监测域名解析污染的方法、装置及系统 | |
| US8725835B2 (en) | Method and web server for implementing web access | |
| US20170277622A1 (en) | Web Page Automated Testing Method and Apparatus | |
| WO2017166524A1 (zh) | 域名解析方法及装置 | |
| JP2015070615A (ja) | Nxdクエリの監視方法 | |
| JP2016506655A (ja) | Dnsサービス提供方法及び装置 | |
| WO2014089872A1 (zh) | 支持域名组dns解析的方法和系统 | |
| CN109327559A (zh) | 一种基于混合云平台的域名解析方法和装置 | |
| CN103024098B (zh) | 一种域名解析方法、系统及装置 | |
| JP4903118B2 (ja) | センシングデータを収集するためのwebサーバおよびプログラム | |
| US20140280335A1 (en) | System and method to allow a domain name server to process a natural language query and determine context | |
| CN111221781B (zh) | 一种数据查找方法、装置、电子设备及系统 | |
| WO2018081963A1 (zh) | 一种dns解析方法、装置及网络系统 | |
| CN107071091A (zh) | 一种优化dns域名解析的实现方法 | |
| US20100250591A1 (en) | Methods, Systems, And Computer Program Products For Providing Access To Metadata For An Identified Resource | |
| CN113315849A (zh) | 数据处理方法、装置、设备和存储介质 | |
| CN116055449A (zh) | 一种dns分组转发方法及装置 | |
| CN111240750B (zh) | 一种目标应用程序的唤醒方法及装置 | |
| CN115706722B (zh) | 域名请求方法、装置、存储介质及电子设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16789276 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: 16789276 Country of ref document: EP Kind code of ref document: A1 |