WO2019028683A1 - Method and system for acquiring and collecting client local dns server - Google Patents

Method and system for acquiring and collecting client local dns server Download PDF

Info

Publication number
WO2019028683A1
WO2019028683A1 PCT/CN2017/096485 CN2017096485W WO2019028683A1 WO 2019028683 A1 WO2019028683 A1 WO 2019028683A1 CN 2017096485 W CN2017096485 W CN 2017096485W WO 2019028683 A1 WO2019028683 A1 WO 2019028683A1
Authority
WO
WIPO (PCT)
Prior art keywords
domain name
server
address
request
module
Prior art date
Application number
PCT/CN2017/096485
Other languages
French (fr)
Chinese (zh)
Inventor
代明
Original Assignee
深圳前海达闼云端智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳前海达闼云端智能科技有限公司 filed Critical 深圳前海达闼云端智能科技有限公司
Priority to PCT/CN2017/096485 priority Critical patent/WO2019028683A1/en
Priority to CN201780003255.5A priority patent/CN108702397B/en
Publication of WO2019028683A1 publication Critical patent/WO2019028683A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Definitions

  • the present application relates to the field of network domain name resolution, and specifically relates to a method and system for acquiring and collecting a client local DNS server.
  • the Application Delivery Network leverages the appropriate network optimization/acceleration equipment to ensure that business applications are delivered to internal employees and external service groups quickly, securely and reliably.
  • the Content Delivery Network avoids bottlenecks and links on the Internet that may affect the speed and stability of data transmission, making content transmission faster and more stable.
  • the content distribution network system can real-time according to the network traffic and the connection of each node, the load status and the distance to the user.
  • Comprehensive information such as response time directs the user's request to the service node closest to the user.
  • the local domain name server receives the domain name resolution request of the local network client, recursively queries the upper-level domain name server, and finally resolves the domain name into an IP address from the authoritative server of the domain name being queried.
  • the authoritative server determines the network location of the client by sending the address of the local domain name server of the domain name resolution request, and returns to the content distribution network or the application delivery network that is closest to the client.
  • the content distribution network or the IP address of the delivery network node is used as a response to the name resolution request query; the authoritative server here is also called GSLB (Global Service Load Balancer) in the content distribution network and the application delivery network.
  • GSLB Global Service Load Balancer
  • the local domain name server IP address library in the authoritative server needs to be constantly updated, but always encounters the non-existent or even the wrong local domain name server IP address, at which time the client is directed to A non-optimal access node makes the service performance of the content distribution network or application delivery network node worse.
  • the network client can view the local domain name server IP address of the network configuration of the client, but because of the complexity of the networking, the IP address may be the intranet IP, and the authoritative server of the content distribution network or the application delivery network needs to be based on The local domain name server with the public IP address closest to the client determines the location of the client. For the complex networking mode, it is difficult for the prior art to accurately determine the public IP address of the user.
  • the embodiment of the present application provides a method for obtaining and collecting a local DNS server of a client, including the following steps: redirecting to a preset application when receiving an analysis request for detecting a domain name at an authoritative server At the application server, when receiving the HTTP request for detecting the domain name, redirecting the HTTP access request to the second domain name; the second domain name includes detecting the domain name and the IP address of the requesting end sending the HTTP request; And, when receiving the parsing request for the second domain name, establishing a correspondence between the requesting end IP address included in the second domain name and the local domain name server IP address that sends the second domain name resolution request.
  • the embodiment of the present application provides a system for acquiring and collecting a local DNS server of a client, including a first module and a second module:
  • the first module is configured to, at the authoritative server, redirect to a preset application server when receiving the parsing request for detecting the domain name;
  • the first module is configured to redirect, at the application server, the HTTP access request to the second domain name when receiving the HTTP request for detecting the domain name;
  • the second domain name includes detecting the domain name and the IP address of the requesting end sending the HTTP request ;
  • the first module is further configured to: at the authoritative server, when receiving the parsing request for the second domain name, establishing a requesting end IP address included in the second domain name and a local domain name server IP address sending the second domain name resolution request Correspondence between the two.
  • the embodiment of the present application further provides a server cluster, including an authoritative server, an application server, and a storage server;
  • the authoritative server is configured to redirect to a preset application server when receiving the parsing request for detecting the domain name
  • the application server is configured to: when receiving an HTTP request for detecting a domain name, the HTTP access Redirecting to the second domain name; the second domain name includes the probe domain name and the IP address of the requesting end that sends the HTTP request;
  • the authoritative server is further configured to: when receiving the parsing request for the second domain name, establish a correspondence between the requesting end IP address included in the second domain name and the local domain name server IP address that sends the second domain name resolution request.
  • the embodiment of the present application further provides a server cluster, including a requesting end, a local domain name server, an authoritative server, an application server, and a storage server.
  • Each of the authoritative servers, application servers, and storage servers includes:
  • At least one processor and,
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to establish a data channel through the communication component to enable the at least one processor to perform the method as described above.
  • the embodiment of the present application further provides a non-transitory computer readable storage medium, where the computer-readable storage medium is stored, where the computer-executable instructions are used to cause a computer to execute the above The method described.
  • the method and system for obtaining and collecting a client local DNS server provided by the embodiment of the present application are to detect the domain name and the second domain name as media, and the redirection method is simple and fast.
  • the application cooperates with the customized authoritative server and the application server to obtain the public network IP address of the public network exit of the client and the local domain name server, stores the correspondence between the client IP address and the local domain name server, and establishes a database for the authoritative server to query and use.
  • the IP address can be returned to the requesting system and displayed to the client.
  • FIG. 1 is a flowchart of obtaining an IP address of a requesting end of a method for acquiring and collecting a local DNS server of a client according to an embodiment of the present application;
  • FIG. 2 is a flowchart of obtaining an IP address of a local domain name server of a method for acquiring and collecting a local DNS server of a client according to an embodiment of the present application;
  • FIG. 3 is a block diagram of a system for obtaining and collecting a client local DNS server according to an embodiment of the present application
  • FIG. 4 is a main flowchart of a method for acquiring and collecting a local DNS server of a client according to an embodiment of the present application
  • FIG. 5 is a flowchart of first address extraction, confirmation, and verification of a method for acquiring and collecting a client local DNS server according to an embodiment of the present application
  • FIG. 6 is a verification flowchart of a method for establishing a correspondence relationship between a method for acquiring and collecting a local DNS server of a client according to an embodiment of the present application;
  • FIG. 7 is a hardware framework diagram of each server node device for implementing a method for acquiring and collecting a client local DNS server according to an embodiment of the present application.
  • the system for obtaining and collecting the client local DNS server includes a requesting end 50, a local domain name server 60, an authoritative server 70, an application server 80, and a storage server 90.
  • the requester 50 recursively resolves to the authoritative server 70 via the local domain name server 60.
  • the application server 80 and the authoritative server 70 are connected to the storage server 90.
  • the system for acquiring and collecting the client local DNS server includes the first module A, the second module B, and the third module C. From the hardware correspondence, the first module A is disposed on the authoritative server 70, the second module B is disposed on the application server 80, and the third module C is disposed on the storage server 90.
  • the first module A is used at the authoritative server, when receiving the parsing request for detecting the domain name, Redirect to the default application server;
  • the second module B is configured to redirect, at the application server, the HTTP access request to the second domain name when receiving the HTTP request for detecting the domain name;
  • the second domain name includes detecting the domain name and the IP of the requesting end sending the HTTP request address;
  • the first module A is further configured to: at the authoritative server, when receiving the parsing request for the second domain name, establishing a requesting end IP address included in the second domain name and a local domain name server IP address sending the second domain name resolution request Correspondence between them.
  • the third module C is configured to store, at the storage server, a correspondence relationship library formed by the confirmed correspondence relationship; and the first module A is further configured to provide the requesting end with effective information at the authoritative server based on the correspondence relationship library The IP address of the local domain name server.
  • the embodiment of the present invention provides a customized authority server 70, an application server 80, and a storage server 90, based on the access mechanism of the probe domain name and the second domain name, and is quickly and easily obtained through the redirection method.
  • the IP address of the requesting end 50 and the associated local domain name server 60 is collected.
  • the authoritative server 70, the application server 80, and the storage server 90 take special treatment for the parsing request for detecting the domain name and its second domain name to enhance the accuracy rate of the authoritative server in parsing the user request.
  • the database function of the storage server 90 may be set on the authoritative server 70 or may be set on the application server 80.
  • the following embodiments are exemplified by a separately provided storage server 90.
  • the deployment of the system for acquiring and collecting the client local DNS server in the content distribution network or the application delivery network is as follows.
  • the HTTP protocol HyperText Transfer Protocol, HTTP
  • the response of the server 80 to the requester 50 is in HTML (HyperText Markup Language, HTML) format.
  • HTML HyperText Markup Language
  • other protocols may be used as the protocol for communication between the requesting terminal 50 and the application server 80.
  • the response of the application server 80 to the requesting end 50 can also use other formats, such as the JSON format.
  • the requesting end 50 in the following embodiment has an IP address, and the IP address in the embodiment refers to a public network address, and the public network address refers to an outgoing public IP address of the client, which is also called an LDNS address. If the requesting end 50 is in the internal network, the IP address of the requesting end in the example refers to the IP address of the public network egress.
  • the authoritative server 70 redirects to the preset application server 80; when receiving the HTTP request for detecting the domain name, the application server 80 redirects the HTTP access request to the second domain name.
  • the second domain name includes a probe domain name and an IP address of the requester that sends the HTTP request.
  • the authoritative server 70 When receiving the parsing request for the second domain name, the authoritative server 70 establishes a correspondence between the IP address of the requesting end 50 included in the second domain name and the IP address of the local domain name server 60 that sends the second domain name resolution request. .
  • the application server 80 When the application server 80 receives the HTTP request for detecting the domain name from the requesting end 50, the application server 80 acquires the IP address of the requesting end 50 and saves it to the storage server 90, and the application server 80 redirects the requesting end 50 to the second. domain name.
  • the requesting end 50 initiates a resolution request to the authoritative server 70 for the redirected second domain name.
  • the authoritative server 70 obtains the IP address of the requesting terminal 50 and the local domain name server 60 to which it is connected.
  • the IP address in this embodiment refers to the public network address.
  • the public network address refers to the public IP address of the egress of the client, which is also called the LDNS (Local Domain Name System, LDNS) address.
  • LDNS Local Domain Name System
  • the authoritative server 70 verifies the IP address of the requesting terminal 50 and queries the storage server 90 whether the IP address has just initiated a request to the application server 80, and if so, the verification passes.
  • the authoritative server 70 establishes a correspondence between the requesting end IP address and the local domain name server IP address and saves it to the storage server 90.
  • the authoritative server 70 redirects the requester 50 to the IP address of the application server 80.
  • the requesting end 50 then initiates an HTTP request to the application server 80 for the second domain name, and the application server 80 confirms the correspondence and returns the confirmed IP address of the local domain name server 60.
  • a number of confirmed correspondences form a correspondence library.
  • the storage server 90 stores each piece of data of the confirmed correspondence and forms a correspondence library.
  • the authoritative server 70 can read and query the corresponding relational library, and provide an associated valid local domain name server IP address for any requesting end based on the corresponding relational library.
  • the authoritative server 70 configures the probe domain name and the second domain name as media for communication.
  • the authoritative server 70 and the application server 80 perform domain name resolution optimization processing when receiving the request for parsing the domain name and the second domain name.
  • the requesting end 50 detects the domain name and uses the local domain name service.
  • the server 60 and the authoritative server 70 obtain the IP address of the application server 80; the requester 50 is redirected by the application server 80 to the second domain name.
  • the requesting end 50 completes the operation of extracting, verifying, and obtaining the address of the IP address of the requesting terminal 50 and the IP address of the local domain name server 60 between the systems through the second domain name.
  • the system for obtaining and collecting the local DNS server of the client implements collection and delivery of information by configuring the probed domain name and the redirected second domain name.
  • the probe domain name is as follows: www.example.com.
  • the second domain name is exemplified by: c.c.c.c.www.example.com, where c.c.c.c represents the IP address of the requesting terminal 50.
  • the local domain name server 60 includes a recursive parsing module 61.
  • the requesting end 50 resolves to the authoritative server 70 via the recursive parsing module 61 based on the probed domain name.
  • the authoritative server includes a pre-stored module 71 and a second extraction module 72.
  • the pre-stored module 71 is configured to provide the IP address of the application server 80 to the requesting end 50, so that the requesting end 50 obtains the IP address of the application server 80, and accesses the application server 80 through the probed domain name.
  • the application server 80 includes a first extraction module 81, a verification module 82, and a redirection module 83.
  • the first extraction module 81 is configured to extract the IP address of the requesting end 50 and save it to the storage server 90.
  • the redirection module 83 is configured to redirect the requesting end 50 to the second domain name.
  • the storage server 90 includes a correspondence relationship library 91, a marking module 92, and a screening module 93. It can be understood that the correspondence library 91, the marking module 92, and the screening module 93 can also be a software module disposed on the authoritative server 70 or a software module disposed on the application server 80.
  • the authoritative server 70 when the authoritative server 70 receives the parsing request for the probe domain name, it returns the IP address (bbbb) of the application server working with the authoritative server 70 to the requesting terminal 50.
  • the IP address is also For the LDNS address.
  • an HTTP request is sent to the application server 80, and the probe carries the probe domain name www.example.com.
  • the application server 80 extracts the source IP address of the requesting end 50 from the data packet.
  • the client IP address and the timestamp when the request was received are saved to the storage server 90.
  • the application server 80 then sends a redirect response to the second domain name to the requesting end 50.
  • the redirected destination domain name is: the requesting IP address + the probed domain name, and the middle is divided by ".” to form a second domain name.
  • the requester 50 resolves to the authoritative server 70 via the recursive parsing module 61 of the local domain name server 60 based on the redirected second domain name c.c.c.c.www.example.com.
  • the second extraction module 72 of the authoritative server 70 extracts the IP address (a.a.a.a) of the local domain name server 60 and obtains the IP address of the requesting end (c.c.c.c) from the second domain name.
  • the authoritative server 70 checks whether the accessed second domain name is a subdomain of the original probe domain name, and completes the address extraction, confirmation, and verification process.
  • the authoritative server 70 extracts the IP address of the local domain name server 60 from the data message in the domain name resolution request of the second domain name.
  • the authoritative server 70 establishes a correspondence between the requesting end IP address and the local domain name server IP address and saves it to the storage server 90.
  • the marking module 92 of the storage server 90 marks the correspondence as to be confirmed.
  • the requesting end 50 After receiving the redirect response of the second domain name, the requesting end 50 initiates a domain name resolution request to the authoritative server 70 again.
  • the authoritative server 70 After receiving the parsing request, the authoritative server 70 detects whether the second domain name is a subdomain name of the probe domain name, and if so, After removing the suffix detection domain name from the second domain name, the IP address (cccc) of the requesting end is obtained, and the authoritative server 70 queries the storage server whether the IP address has just initiated a request to the application server 80, and if so, the verification passes.
  • the IP address (aaaa) of the local domain name server 60 is extracted from the domain name resolution request data packet of the second domain name, and then the client IP address and the local domain name server IP address are stored together in the corresponding relationship database of the storage server 90. . After the storage operation is completed, the IP address (b.b.b.b) of the application server 80 is returned to the requesting terminal 50 as a domain name response again. If the validity check fails, the domain name resolution request is not responded.
  • the requesting end 50 initiates an HTTP request to the application server 80 for the second domain name.
  • the application server 80 extracts an IP address from the second domain name, and the verification module 82 obtains the IP address and the requester IP address extracted from the HTTP request data packet according to the suffix detection domain name in the second domain name.
  • the address is verified and the check is passed, the corresponding relationship is modified to be confirmed and recorded in the corresponding relationship database; when the check fails, the request is not responded to.
  • the requesting end 50 initiates an HTTP request to the application server 80 for the second domain name.
  • the first extraction module 81 of the application server 80 obtains the IP address of the requesting end 50, and the verification module 82 according to the corresponding The relationship library 91 performs address verification.
  • the redirection module 83 is further configured to redirect the requester 50 to the local domain name server 60 by detecting the domain name.
  • the specific process is: after receiving the domain name resolution result of the authoritative server 70, the requesting end 50 initiates an HTTP request to the application server 80 again, and the second domain name is used as the requested domain name in the request, and the application server 80 finds the request after receiving the HTTP request.
  • the domain name is the second domain name
  • the application server 80 is from the second domain.
  • the IP address of the port is extracted from the name
  • the IP address of the requesting end is extracted from the HTTP data packet, and the two IP addresses are checked for consistency.
  • the client IP is queried from the corresponding relational library 91 of the storage server 90.
  • the IP address of the local domain name server 60 corresponding to the address is returned to the requesting terminal 50 as a response content.
  • the storage server 90 further includes a screening module 93 for combing all the correspondences to be confirmed, and deleting the unconfirmed correspondences after storing the set time.
  • a method for obtaining and collecting a local DNS server of a client is provided.
  • the method mainly includes the following steps:
  • Step 101 At the authoritative server, when receiving the parsing request for detecting the domain name, redirecting to the preset application server;
  • Step 102 At the application server, when receiving the HTTP request for detecting the domain name, redirecting the HTTP access request to the second domain name; the second domain name includes detecting the domain name and the IP address of the requesting end sending the HTTP request;
  • Step 103 At the authoritative server, when receiving the parsing request for the second domain name, establishing a correspondence between the requesting end IP address included in the second domain name and the local domain name server IP address sending the second domain name resolution request .
  • the method also includes the following steps:
  • the confirmed correspondence is stored in the corresponding relationship library
  • the requesting end is provided with a valid IP address.
  • FIG. 5 details the method of obtaining and collecting the client local DNS server.
  • the method for obtaining and collecting the client local DNS server obtains and collects the requesting end by using the customized authoritative server 70, the application server 90, and the storage server 90, based on the access mechanism for detecting the domain name and the second domain name, by using the redirecting method. 50 and the IP address of the associated local domain name server 60.
  • the customized authoritative server 70, the application server 90, and the storage server 90 start domain name resolution optimization processing.
  • the method for obtaining and collecting the local DNS server of the client is configured to detect the domain name and the second domain name as a medium for optimizing communication.
  • An example of the probe domain name is www.example.com.
  • the second domain name is exemplified by: c.c.c.c.www.example.com, where c.c.c.c represents the IP address of the requesting terminal 50.
  • Step 201 The authoritative server is redirected to the preset application server when receiving the request for parsing the domain name by the requesting end;
  • Step 202 The requesting end accesses the application server by using the probed domain name, including:
  • the requesting end initiates a domain name resolution request to the local domain name server, requesting to parse www.example.com;
  • the local domain name resolution server initiates a domain name resolution request to the authoritative domain name resolution server of www.example.com;
  • the authoritative domain name resolution server of www.example.com returns the IP address of the application server to the local domain name server;
  • the local domain name server returns the IP address of the application server to the requesting end;
  • the requesting end accesses the application server through the probe domain name, and initiates a request to the application server;
  • Step 203 When receiving the HTTP request for detecting the domain name, the application server extracts and saves the IP address of the requesting end, and redirects the requesting end to the second domain name, including:
  • the application server receives the request and finds that it is a request for www.example.com, extracts the IP address of the requesting end (c.c.c.c) and stores it in the storage server;
  • the application server sends a redirect response to the client, redirecting to the second domain name: c.c.c.c.www.example.com;
  • Step 204 The requester recursively to the authoritative server by using the local domain name server for the second domain name, including:
  • the requesting end initiates a domain name resolution request to the local domain name server, requesting to parse c.c.c.c.www.example.com;
  • the local domain name resolution server initiates a domain name resolution request to the authoritative domain name resolution server of c.c.c.c.www.example.com;
  • Step 205 The authoritative server obtains the IP address of the requesting end and the IP address of the local domain name server by using the second domain name.
  • Step 206 After verifying the IP address of the requesting end, the authoritative server establishes a correspondence between the IP address of the requesting end and the IP address of the local domain name server, and saves the corresponding relationship to be confirmed.
  • the authoritative server extracts the IP address (aaaa) of the local domain name server, extracts the IP address of the requesting end through the second domain name, and verifies the IP address extracted from the second domain name. After the verification is passed, the IP address of the requesting end is established.
  • the mapping between the IP address of the local domain name server is saved and includes:
  • the suffix detection domain name is removed from the second domain name to obtain the IP address of the requesting end (c.c.c.c);
  • the authoritative domain name resolution server of c.c.c.c.www.example.com saves the correspondence between c.c.c.c. and a.a.a.a to the storage server;
  • the authoritative domain name resolution server of c.c.c.c.www.example.com marks the correspondence between the stored c.c.c.c. and a.a.a.a as the status to be confirmed;
  • the authoritative domain name resolution server of c.c.c.c.www.example.com returns the IP address of the application server to the local domain name server;
  • the local domain name server returns the IP address of the application server to the requesting end;
  • Step 207 The requesting end initiates an HTTP request to the application server by using the second domain name.
  • the requester initiates a request to the application server, and the requested domain name is c.c.c.c.www.example.com.
  • Step 208 When the application server receives the HTTP request for the second domain name, the IP address is extracted from the second domain name and the address verification is performed with the parsed requester IP address. When the verification is successful, the associated data is modified and confirmed. Belonged to the associated database, including:
  • the application server receives the request and finds that it is a request for c.c.c.c.www.example.com, and extracts the IP address of the requester (c.c.c.c);
  • the extracted IP address and the real IP address are verified to prevent malicious access
  • the correspondence relationship between the IP address (c.c.c.c) and the IP address (a.a.a.a) is changed to the confirmation status;
  • the storage server returns the local domain name server IP address of the requesting end (a.a.a.a);
  • the application server returns the requester IP address (c.c.c.c) and the requesting local domain name server IP address (a.a.a.a) to the requesting end;
  • Step 209 When the verification fails, the request of the requesting end is not responded;
  • Step 210 Screening all the correspondences to be confirmed, the unconfirmed correspondence is deleted after the storage set time, and the method for obtaining and collecting the local DNS server of the client further includes screening all the waiting The correspondence relationship confirmed, the unconfirmed correspondence is deleted after the storage set time.
  • the method for obtaining and collecting the local DNS server of the client in this embodiment in addition to the first address extraction, confirmation, and verification, requires the domain name resolution and the second domain name to complete the domain name resolution optimization operation, and after the correspondence library is established, any request terminal also Local DNS server optimization and verification operations can be performed by detecting the domain name and redirecting to the second domain name.
  • the verification process after the correspondence library is established includes:
  • Step 301 The requesting end initiates an HTTP request to the application server by using the second domain name.
  • Step 302 The application server extracts the IP address of the requesting end and performs address verification according to the corresponding relational library.
  • Step 303 Determine whether an erroneous access is found.
  • Step 304 Determine whether the IP address extraction fails.
  • Step 305 When the judgment is that the error is accessed or the IP address extraction fails, the request end is redirected to the local domain name server by detecting the domain name.
  • the method and system for obtaining and collecting a client local DNS server are used to detect a domain name and a second domain name as a medium, and the IP address of the requesting end and the associated local domain name server are obtained and collected simply and quickly by the redirecting method.
  • the authoritative server is connected to the storage server, which acquires and collects the IP address of the requesting end and the associated local domain name server, and continuously updates and updates the correspondence database of the IP address used by the authoritative server in combination with data analysis and merging to provide the user with
  • the optimal network access node, as well as providing efficient and more accurate domain name resolution services, can return the IP address to the requesting system and display it to the client.
  • the server cluster includes a requesting end, a local domain name server, Authoritative server, application server, and storage server,
  • Each of the authoritative servers, the application server, and the storage server includes: at least one or more processors 610, a memory 620, and a communication component 650.
  • One processor 610 is exemplified in FIG.
  • the memory 620 stores instructions executable by the at least one processor 610, the instructions being executed by the at least one processor, establishing a data channel through the communication component 650 to enable the at least one processor to perform the acquisition and collect the client The method of the local DNS server.
  • the processor 610, the memory 620, and the communication component 650 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
  • the memory 620 is used as a non-volatile computer readable storage medium for storing non-volatile software programs, non-volatile computer executable programs, and modules, such as obtaining and collecting client local DNS in the embodiment of the present application.
  • the program instruction/module corresponding to the method of the server for example, the pre-stored module 71, the second extraction module 72 shown by the authoritative server of FIG. 3, the first extraction module 81, the redirection module 82, and the verification module 82 shown by the application server
  • the correspondence relationship library 91, the marking module 92, and the screening module 93) shown in the storage server are stored.
  • the processor 610 executes various functional applications and data processing of the server by running non-volatile software programs, instructions, and modules stored in the memory 620, that is, obtaining and collecting the client local DNS server in the foregoing method embodiment. Methods.
  • the memory 620 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to the use of the domain name resolution system, and the like.
  • memory 620 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • memory 620 can optionally include memory remotely located relative to processor 610, which can be connected to the robotic interactive electronic device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the one or more modules are stored in the memory 620, and when executed by the one or more processors 610, perform the method of obtaining and collecting a client local DNS server in any of the above method embodiments, for example, Performing the method steps 101 to 103 of FIG. 4 described above, performing the method steps 201 to 210 of FIG. 5 described above and performing the method steps 301 to 305 of FIG. 6 described above; implementing the authority of FIG.
  • the pre-stored module 71, the second extraction module 72, and the first extraction module 81, the redirection module 82, the verification module 82, and the corresponding relationship library 91, the labeling module 92 and the screen shown by the server are shown by the server. Check the function of module 93 and so on.
  • Embodiments of the present application provide a non-transitory computer readable storage medium storing computer-executable instructions that are executed by one or more processors Executing, for example, performing the method steps 101 to 103 of FIG. 4 described above, performing the method steps 201 to 210 of FIG. 5 described above, and performing the method steps 301 to 305 of FIG. 6 described above; 3 is a pre-stored module 71, a second extraction module 72, and a first extraction module 81, a redirection module 82, a verification module 82, and a corresponding relationship library 91 shown by the application server.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • the embodiments can be implemented by means of software plus a general hardware platform, and of course, by hardware.
  • a person skilled in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

A method for acquiring and collecting a client local DNS server, comprising the following steps: at an authoritative server, when a parsing request for a detected domain name is received, redirecting same to a pre-set application server; at an application server, when an HTTP request for the detected domain name is received, redirecting the HTTP access request to a second domain name, the second domain name including the detected domain name and an IP address of a request end which has sent the HTTP request; and at the authoritative server, when a parsing request for the second domain name is received, establishing a correlation between the IP address of the request end included in the second domain name and the IP address of the local domain name server which has sent the second domain name parsing request.

Description

一种获取并收集客户端本地DNS服务器的方法以及系统Method and system for acquiring and collecting client local DNS server 技术领域Technical field
本申请涉及网络域名解析领域,具体涉及一种获取并收集客户端本地DNS服务器的方法以及系统。The present application relates to the field of network domain name resolution, and specifically relates to a method and system for acquiring and collecting a client local DNS server.
背景技术Background technique
随着网络技术的发展,越来越多的商业业务实现了网络化交易。比如银行、电商平台等。这些网络化业务一般需要交付网络或者内容分发网络的支持。With the development of network technology, more and more commercial businesses have realized networked transactions. Such as banks, e-commerce platforms, etc. These networked services generally require support from a delivery network or a content distribution network.
应用交付网络(Application Delivery Network,ADN),利用相应的网络优化/加速设备,确保用户的业务应用能够快速、安全、可靠地交付给内部员工和外部服务群。内容分发网络(Content Delivery Network,CDN)尽可能避开互联网上有可能影响数据传输速度和稳定性的瓶颈和环节,使内容传输的更快、更稳定。通过在网络各处放置节点服务器所构成的在现有的互联网基础之上的一层智能虚拟网络,内容分发网络系统能够实时地根据网络流量和各节点的连接、负载状况以及到用户的距离和响应时间等综合信息将用户的请求导向离用户最近的服务节点上。依靠部署在各地的边缘服务器,通过中心平台的负载均衡、内容分发、调度等功能模块,使用户就近获取所需内容,降低网络拥塞,提高用户访问响应速度。The Application Delivery Network (ADN) leverages the appropriate network optimization/acceleration equipment to ensure that business applications are delivered to internal employees and external service groups quickly, securely and reliably. The Content Delivery Network (CDN) avoids bottlenecks and links on the Internet that may affect the speed and stability of data transmission, making content transmission faster and more stable. By placing a layer of intelligent virtual network based on the existing Internet on the network, the content distribution network system can real-time according to the network traffic and the connection of each node, the load status and the distance to the user. Comprehensive information such as response time directs the user's request to the service node closest to the user. Relying on the edge servers deployed in various places, through the load balancing, content distribution, scheduling and other functional modules of the central platform, users can obtain the required content nearby, reduce network congestion, and improve user access response speed.
在现有的互联网中,本地域名服务器(Local Domain Name Server,LDNS)接收本地网络客户端的域名解析请求,递归查询上级域名服务器,最终从被查询域名的权威服务器把域名解析为IP地址。在内容分发网络和应用交付网络等一些网络系统中,权威服务器通过发送域名解析请求的本地域名服务器的地址来判断客户端所处网络位置,并返回内容分发网络或应用交付网络中离客户端最近的该内容分发网络或交付网络节点的IP地址,作为名解析请求查询的应答;此处的权威服务器在内容分发网络和应用交付网络中又被叫做GSLB(Global Service Load Balancer)。由于全球的网络环境一直在变化中,权威服务器中的本地域名服务器IP地址库需要不断的更新,但是总是会遇到不存在,甚至错误的本地域名服务器IP地址,此时客户端被引导到一个并非最优的接入节点,使内容分发网络或应用交付网络节点的服务效果变差。 In the existing Internet, the local domain name server (LDNS) receives the domain name resolution request of the local network client, recursively queries the upper-level domain name server, and finally resolves the domain name into an IP address from the authoritative server of the domain name being queried. In some network systems such as a content distribution network and an application delivery network, the authoritative server determines the network location of the client by sending the address of the local domain name server of the domain name resolution request, and returns to the content distribution network or the application delivery network that is closest to the client. The content distribution network or the IP address of the delivery network node is used as a response to the name resolution request query; the authoritative server here is also called GSLB (Global Service Load Balancer) in the content distribution network and the application delivery network. Since the global network environment has been changing, the local domain name server IP address library in the authoritative server needs to be constantly updated, but always encounters the non-existent or even the wrong local domain name server IP address, at which time the client is directed to A non-optimal access node makes the service performance of the content distribution network or application delivery network node worse.
并且,虽然网络客户端可以查看客户端所属网络配置的本地域名服务器IP地址,但是因为组网的复杂性,这个IP地址可能是内网IP,而内容分发网络或者应用交付网络的权威服务器需要根据离客户端最近的具有公网IP地址的本地域名服务器来判断客户端所处的位置。针对复杂的组网方式,现有技术难以准确确定用户的公网IP地址。Moreover, although the network client can view the local domain name server IP address of the network configuration of the client, but because of the complexity of the networking, the IP address may be the intranet IP, and the authoritative server of the content distribution network or the application delivery network needs to be based on The local domain name server with the public IP address closest to the client determines the location of the client. For the complex networking mode, it is difficult for the prior art to accurately determine the public IP address of the user.
因此,现有的内容分发网络或应用交付网络的域名解析技术还有待于改进。Therefore, the domain name resolution technology of the existing content distribution network or application delivery network has yet to be improved.
发明内容Summary of the invention
第一方面,本申请实施例提供了一种获取并收集客户端本地DNS服务器的方法,包括以下步骤:在权威服务器处,在接收到针对探测域名的解析请求时,重定向至预设的应用服务器;在应用服务器处,在接收到针对探测域名的HTTP请求时,将该HTTP访问请求重定向至第二域名;该第二域名包括探测域名以及发送HTTP请求的请求端的IP地址;在权威服务器处,在接收到针对第二域名的解析请求时,建立第二域名中包含的请求端IP地址与发送该第二域名解析请求的本地域名服务器IP地址之间的对应关系。In a first aspect, the embodiment of the present application provides a method for obtaining and collecting a local DNS server of a client, including the following steps: redirecting to a preset application when receiving an analysis request for detecting a domain name at an authoritative server At the application server, when receiving the HTTP request for detecting the domain name, redirecting the HTTP access request to the second domain name; the second domain name includes detecting the domain name and the IP address of the requesting end sending the HTTP request; And, when receiving the parsing request for the second domain name, establishing a correspondence between the requesting end IP address included in the second domain name and the local domain name server IP address that sends the second domain name resolution request.
第二方面,本申请实施例提供了一种获取并收集客户端本地DNS服务器的系统,包括第一模块和第二模块:In a second aspect, the embodiment of the present application provides a system for acquiring and collecting a local DNS server of a client, including a first module and a second module:
该第一模块用于在权威服务器处,在接收到针对探测域名的解析请求时,重定向至预设的应用服务器;The first module is configured to, at the authoritative server, redirect to a preset application server when receiving the parsing request for detecting the domain name;
该第一模块用于在应用服务器处,在接收到针对探测域名的HTTP请求时,将该HTTP访问请求重定向至第二域名;该第二域名包括探测域名以及发送HTTP请求的请求端的IP地址;The first module is configured to redirect, at the application server, the HTTP access request to the second domain name when receiving the HTTP request for detecting the domain name; the second domain name includes detecting the domain name and the IP address of the requesting end sending the HTTP request ;
该第一模块还用于在权威服务器处,在接收到针对第二域名的解析请求时,建立第二域名中包含的请求端IP地址与发送该第二域名解析请求的本地域名服务器IP地址之间的对应关系。The first module is further configured to: at the authoritative server, when receiving the parsing request for the second domain name, establishing a requesting end IP address included in the second domain name and a local domain name server IP address sending the second domain name resolution request Correspondence between the two.
第三方面,本申请实施例还提供了一种服务器集群,包括权威服务器、应用服务器以及存储服务器;In a third aspect, the embodiment of the present application further provides a server cluster, including an authoritative server, an application server, and a storage server;
该权威服务器用于在接收到针对探测域名的解析请求时,重定向至预设的应用服务器;The authoritative server is configured to redirect to a preset application server when receiving the parsing request for detecting the domain name;
该应用服务器用于在接收到针对探测域名的HTTP请求时,将该HTTP访问 请求重定向至第二域名;该第二域名包括探测域名以及发送HTTP请求的请求端的IP地址;The application server is configured to: when receiving an HTTP request for detecting a domain name, the HTTP access Redirecting to the second domain name; the second domain name includes the probe domain name and the IP address of the requesting end that sends the HTTP request;
该权威服务器还用于在接收到针对第二域名的解析请求时,建立第二域名中包含的请求端IP地址与发送该第二域名解析请求的本地域名服务器IP地址之间的对应关系。The authoritative server is further configured to: when receiving the parsing request for the second domain name, establish a correspondence between the requesting end IP address included in the second domain name and the local domain name server IP address that sends the second domain name resolution request.
第四方面,本申请实施例还提供了一种服务器集群,包括请求端、本地域名服务器、权威服务器、应用服务器以及存储服务器,In a fourth aspect, the embodiment of the present application further provides a server cluster, including a requesting end, a local domain name server, an authoritative server, an application server, and a storage server.
其中,每一权威服务器、应用服务器以及存储服务器包括:Each of the authoritative servers, application servers, and storage servers includes:
至少一个处理器;以及,At least one processor; and,
与该至少一个处理器通信连接的存储器以及通信组件;其中,a memory communicatively coupled to the at least one processor and a communication component; wherein
该存储器存储有可被该至少一个处理器执行的指令,该指令被该至少一个处理器执行时,通过通信组件建立数据通道,以使该至少一个处理器能够执行如上所述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to establish a data channel through the communication component to enable the at least one processor to perform the method as described above.
第五方面,本申请实施例还提供了一种非易失性计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行如上所述的方法。In a fifth aspect, the embodiment of the present application further provides a non-transitory computer readable storage medium, where the computer-readable storage medium is stored, where the computer-executable instructions are used to cause a computer to execute the above The method described.
本申请的至少一个实施例的有益效果在于,本申请实施例提供的一种获取并收集客户端本地DNS服务器的方法以及系统,以探测域名和第二域名为媒介,通过重定向方式简单快速地获取并收集请求端以及关联的本地域名服务器的IP地址;在系统中,权威服务器连接存储服务器,该存储服务器获取并收集请求端以及关联的本地域名服务器的IP地址,结合数据分析和合并不断更新优化权威服务器所使用的IP地址对应关系库,为用户提供最优的网路接入节点,以及提供有效并且准确性更高的域名解析服务。本申请通过定制的权威服务器和应用服务器配合工作来获取客户端和本地域名服务器的公网出口的公网IP地址,把客户IP地址和本地域名服务器的对应关系存储并建立数据库供权威服务器查询使用,在准确高效提供域名解析服务的同时可返回IP地址给请求端系统并显示给客户。The method and system for obtaining and collecting a client local DNS server provided by the embodiment of the present application are to detect the domain name and the second domain name as media, and the redirection method is simple and fast. Obtain and collect the IP address of the requesting end and the associated local domain name server; in the system, the authoritative server connects to the storage server, which acquires and collects the IP address of the requesting end and the associated local domain name server, and continuously updates with data analysis and consolidation. Optimize the IP address mapping database used by the authoritative server to provide users with optimal network access nodes and provide efficient and accurate domain name resolution services. The application cooperates with the customized authoritative server and the application server to obtain the public network IP address of the public network exit of the client and the local domain name server, stores the correspondence between the client IP address and the local domain name server, and establishes a database for the authoritative server to query and use. In the accurate and efficient provision of the domain name resolution service, the IP address can be returned to the requesting system and displayed to the client.
附图说明DRAWINGS
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示 例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplarily illustrated by the pictures in the accompanying drawings, these The exemplifications are not intended to limit the embodiments, and the elements in the drawings are denoted by the same reference numerals, and the figures in the drawings are not to be construed as limiting.
图1是本申请实施例提供的获取并收集客户端本地DNS服务器的方法的请求端的IP地址获取流程图;1 is a flowchart of obtaining an IP address of a requesting end of a method for acquiring and collecting a local DNS server of a client according to an embodiment of the present application;
图2是本申请实施例提供的获取并收集客户端本地DNS服务器的方法的本地域名服务器的IP地址获取流程图;2 is a flowchart of obtaining an IP address of a local domain name server of a method for acquiring and collecting a local DNS server of a client according to an embodiment of the present application;
图3是本申请实施例提供的获取并收集客户端本地DNS服务器的系统的模块图;3 is a block diagram of a system for obtaining and collecting a client local DNS server according to an embodiment of the present application;
图4是本申请实施例提供的获取并收集客户端本地DNS服务器的方法的主要流程图;4 is a main flowchart of a method for acquiring and collecting a local DNS server of a client according to an embodiment of the present application;
图5是本申请实施例提供的获取并收集客户端本地DNS服务器的方法的首次地址提取、确认以及校验的流程图;5 is a flowchart of first address extraction, confirmation, and verification of a method for acquiring and collecting a client local DNS server according to an embodiment of the present application;
图6是本申请实施例提供的获取并收集客户端本地DNS服务器的方法的建立对应关系库以后的校验流程图;以及6 is a verification flowchart of a method for establishing a correspondence relationship between a method for acquiring and collecting a local DNS server of a client according to an embodiment of the present application;
图7是本申请实施例提供的为实现获取并收集客户端本地DNS服务器的方法的每个服务器节点设备的硬件框架图。FIG. 7 is a hardware framework diagram of each server node device for implementing a method for acquiring and collecting a client local DNS server according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
请参考图3,本申请实施例提供的获取并收集客户端本地DNS服务器的系统从硬件架构上来讲,包括请求端50、本地域名服务器60、权威服务器70、应用服务器80以及存储服务器90。该请求端50通过本地域名服务器60递归解析至权威服务器70。该应用服务器80和权威服务器70连接至存储服务器90。Referring to FIG. 3, the system for obtaining and collecting the client local DNS server provided by the embodiment of the present application includes a requesting end 50, a local domain name server 60, an authoritative server 70, an application server 80, and a storage server 90. The requester 50 recursively resolves to the authoritative server 70 via the local domain name server 60. The application server 80 and the authoritative server 70 are connected to the storage server 90.
从软件设置上来讲,该获取并收集客户端本地DNS服务器的系统包括第一模块A、第二模块B以及第三模块C。从硬件对应关系上来看,第一模块A设置在权威服务器70上、第二模块B设置在应用服务器80以及该第三模块C设置在存储服务器90上。In terms of software settings, the system for acquiring and collecting the client local DNS server includes the first module A, the second module B, and the third module C. From the hardware correspondence, the first module A is disposed on the authoritative server 70, the second module B is disposed on the application server 80, and the third module C is disposed on the storage server 90.
该第一模块A用于在权威服务器处,在接收到针对探测域名的解析请求时, 重定向至预设的应用服务器;The first module A is used at the authoritative server, when receiving the parsing request for detecting the domain name, Redirect to the default application server;
该第二模块B用于在应用服务器处,在接收到针对探测域名的HTTP请求时,将该HTTP访问请求重定向至第二域名;该第二域名包括探测域名以及发送HTTP请求的请求端的IP地址;The second module B is configured to redirect, at the application server, the HTTP access request to the second domain name when receiving the HTTP request for detecting the domain name; the second domain name includes detecting the domain name and the IP of the requesting end sending the HTTP request address;
该第一模块A还用于在权威服务器处,在接收到针对第二域名的解析请求时,建立第二域名中包含的请求端IP地址与发送该第二域名解析请求的本地域名服务器IP地址之间的对应关系。The first module A is further configured to: at the authoritative server, when receiving the parsing request for the second domain name, establishing a requesting end IP address included in the second domain name and a local domain name server IP address sending the second domain name resolution request Correspondence between them.
该第三模块C用于在存储服务器处,存储确认的对应关系形成的对应关系库;以及该第一模块A还用于在该权威服务器处,基于该对应关系库,为请求端提供有效的本地域名服务器的IP地址。The third module C is configured to store, at the storage server, a correspondence relationship library formed by the confirmed correspondence relationship; and the first module A is further configured to provide the requesting end with effective information at the authoritative server based on the correspondence relationship library The IP address of the local domain name server.
本申请实施例在现有域名解析系统的基础上,通过设置定制的权威服务器70、应用服务器80以及存储服务器90,基于探测域名和第二域名的访问机制,通过重定向方式简单快速地获取并收集请求端50以及关联的本地域名服务器60的IP地址。该权威服务器70、应用服务器80以及存储服务器90针对探测域名及其第二域名的解析请求采取特殊的处理,以增强权威服务器解析用户请求的准确率。On the basis of the existing domain name resolution system, the embodiment of the present invention provides a customized authority server 70, an application server 80, and a storage server 90, based on the access mechanism of the probe domain name and the second domain name, and is quickly and easily obtained through the redirection method. The IP address of the requesting end 50 and the associated local domain name server 60 is collected. The authoritative server 70, the application server 80, and the storage server 90 take special treatment for the parsing request for detecting the domain name and its second domain name to enhance the accuracy rate of the authoritative server in parsing the user request.
需要说明的是,该存储服务器90的数据库功能可以设置该权威服务器70上,也可以设置在该应用服务器80上。为了清楚说明本申请技术方案,以下实施例以单独设置的存储服务器90为例加以阐述。It should be noted that the database function of the storage server 90 may be set on the authoritative server 70 or may be set on the application server 80. In order to clearly illustrate the technical solution of the present application, the following embodiments are exemplified by a separately provided storage server 90.
在内容分发网络或应用交付网络中该获取并收集客户端本地DNS服务器的系统的部署如下,本实施例中请求端50和应用服务器80之间使用HTTP协议(HyperText Transfer Protocol,HTTP)通信,应用服务器80给请求端50的应答采用HTML(HyperText Markup Language,HTML)格式。可以理解的是,也可以使用其它协议作为请求端50和应用服务器80之间通信的协议。应用服务器80给请求端50的应答也可以使用其它格式,比如JSON格式。为简化本申请技术方案的描述,以下实施例中的请求端50具有IP地址,本实施例IP地址指公网地址,该公网地址指客户端的出口公网IP地址,又称为LDNS地址,如果请求端50在内网中,则例子中请求端的IP地址指的是其公网出口的IP地址。 The deployment of the system for acquiring and collecting the client local DNS server in the content distribution network or the application delivery network is as follows. In this embodiment, the HTTP protocol (HyperText Transfer Protocol, HTTP) communication is used between the requesting end 50 and the application server 80. The response of the server 80 to the requester 50 is in HTML (HyperText Markup Language, HTML) format. It will be appreciated that other protocols may be used as the protocol for communication between the requesting terminal 50 and the application server 80. The response of the application server 80 to the requesting end 50 can also use other formats, such as the JSON format. To simplify the description of the technical solution of the present application, the requesting end 50 in the following embodiment has an IP address, and the IP address in the embodiment refers to a public network address, and the public network address refers to an outgoing public IP address of the client, which is also called an LDNS address. If the requesting end 50 is in the internal network, the IP address of the requesting end in the example refers to the IP address of the public network egress.
实施例1Example 1
请进一步参考图1,在本实施例提供的获取并收集客户端本地DNS服务器的系统中,每一对应关系的建立过程如下:With reference to FIG. 1, in the system for obtaining and collecting the local DNS server of the client provided in this embodiment, the process of establishing each correspondence is as follows:
该权威服务器70在接收到针对探测域名的解析请求时,重定向至预设的应用服务器80;该应用服务器80在接收到针对探测域名的HTTP请求时,将该HTTP访问请求重定向至第二域名。When receiving the parsing request for detecting the domain name, the authoritative server 70 redirects to the preset application server 80; when receiving the HTTP request for detecting the domain name, the application server 80 redirects the HTTP access request to the second domain name.
其中,该第二域名包括探测域名以及发送HTTP请求的请求端的IP地址。The second domain name includes a probe domain name and an IP address of the requester that sends the HTTP request.
该权威服务器70在接收到针对第二域名的解析请求时,建立第二域名中包含的请求端50的IP地址与发送该第二域名解析请求的本地域名服务器60的IP地址之间的对应关系。When receiving the parsing request for the second domain name, the authoritative server 70 establishes a correspondence between the IP address of the requesting end 50 included in the second domain name and the IP address of the local domain name server 60 that sends the second domain name resolution request. .
该应用服务器80在收到请求端50针对探测域名的HTTP请求时,该应用服务器80获取请求端50的IP地址并保存至该存储服务器90,该应用服务器80重定向该请求端50至第二域名。请求端50针对该重定向的第二域名向权威服务器70发起解析请求,该权威服务器70获取该请求端50以及其连接的本地域名服务器60的IP地址,本实施例IP地址指公网地址,该公网地址指客户端的出口公网IP地址,又称为LDNS(Local Domain Name System,LDNS)地址。When the application server 80 receives the HTTP request for detecting the domain name from the requesting end 50, the application server 80 acquires the IP address of the requesting end 50 and saves it to the storage server 90, and the application server 80 redirects the requesting end 50 to the second. domain name. The requesting end 50 initiates a resolution request to the authoritative server 70 for the redirected second domain name. The authoritative server 70 obtains the IP address of the requesting terminal 50 and the local domain name server 60 to which it is connected. The IP address in this embodiment refers to the public network address. The public network address refers to the public IP address of the egress of the client, which is also called the LDNS (Local Domain Name System, LDNS) address.
该权威服务器70验证请求端50的IP地址,向存储服务器90查询此IP地址是否刚刚向应用服务器80发起过请求,如果有,则校验通过。The authoritative server 70 verifies the IP address of the requesting terminal 50 and queries the storage server 90 whether the IP address has just initiated a request to the application server 80, and if so, the verification passes.
验证通过后,该权威服务器70建立该请求端IP地址和该本地域名服务器IP地址的对应关系并保存至该存储服务器90。After the verification is passed, the authoritative server 70 establishes a correspondence between the requesting end IP address and the local domain name server IP address and saves it to the storage server 90.
同时,该权威服务器70将请求端50重定向至应用服务器80的IP地址。该请求端50再针对第二域名向应用服务器80发起HTTP请求,该应用服务器80确认该对应关系,同时返回经确认的该本地域名服务器60的IP地址。At the same time, the authoritative server 70 redirects the requester 50 to the IP address of the application server 80. The requesting end 50 then initiates an HTTP request to the application server 80 for the second domain name, and the application server 80 confirms the correspondence and returns the confirmed IP address of the local domain name server 60.
若干经过确认的对应关系形成对应关系库。A number of confirmed correspondences form a correspondence library.
该存储服务器90存储确认的对应关系的每笔数据并形成对应关系库。该权威服务器70可读取和查询该对应关系库,并基于该对应关系库,为任何请求端提供关联的有效的本地域名服务器IP地址。The storage server 90 stores each piece of data of the confirmed correspondence and forms a correspondence library. The authoritative server 70 can read and query the corresponding relational library, and provide an associated valid local domain name server IP address for any requesting end based on the corresponding relational library.
本实施例中,该权威服务器70通过配置探测域名和第二域名作为通信的媒介。该权威服务器70、应用服务器80收到该探测域名及其第二域名的解析请求时进行域名解析优化处理。其中,该请求端50通过探测域名,通过本地域名服 务器60以及权威服务器70获取应用服务器80的IP地址;该请求端50被应用服务器80重定向至第二域名。之后该请求端50通过第二域名在系统间完成该请求端50的IP地址以及该本地域名服务器60的IP地址的提取,校验、确认以及获取地址的操作。本实施例中的获取并收集客户端本地DNS服务器的系统通过配置探测域名以及重定向的第二域名实现信息的收集和传递。In this embodiment, the authoritative server 70 configures the probe domain name and the second domain name as media for communication. The authoritative server 70 and the application server 80 perform domain name resolution optimization processing when receiving the request for parsing the domain name and the second domain name. The requesting end 50 detects the domain name and uses the local domain name service. The server 60 and the authoritative server 70 obtain the IP address of the application server 80; the requester 50 is redirected by the application server 80 to the second domain name. Then, the requesting end 50 completes the operation of extracting, verifying, and obtaining the address of the IP address of the requesting terminal 50 and the IP address of the local domain name server 60 between the systems through the second domain name. The system for obtaining and collecting the local DNS server of the client in this embodiment implements collection and delivery of information by configuring the probed domain name and the redirected second domain name.
本实施例中,该探测域名举例为:www.example.com。该第二域名举例为:c.c.c.c.www.example.com,其中,c.c.c.c代表请求端50的IP地址。In this embodiment, the probe domain name is as follows: www.example.com. The second domain name is exemplified by: c.c.c.c.www.example.com, where c.c.c.c represents the IP address of the requesting terminal 50.
请一并参考图3,其中,该本地域名服务器60包括递归解析模块61。该请求端50基于探测域名通过该递归解析模块61解析至权威服务器70。Please refer to FIG. 3 together, wherein the local domain name server 60 includes a recursive parsing module 61. The requesting end 50 resolves to the authoritative server 70 via the recursive parsing module 61 based on the probed domain name.
该权威服务器包括预存模块71以及第二提取模块72。所述预存模块71用于向请求端50提供该应用服务器80的IP地址,使得该请求端50获得应用服务器80的IP地址后,通过该探测域名访问该应用服务器80。The authoritative server includes a pre-stored module 71 and a second extraction module 72. The pre-stored module 71 is configured to provide the IP address of the application server 80 to the requesting end 50, so that the requesting end 50 obtains the IP address of the application server 80, and accesses the application server 80 through the probed domain name.
该应用服务器80包括第一提取模块81、校验模块82以及重定向模块83。该第一提取模块81用于提取该请求端50的IP地址并保存至该存储服务器90,该重定向模块83用于使该请求端50重定向至第二域名。The application server 80 includes a first extraction module 81, a verification module 82, and a redirection module 83. The first extraction module 81 is configured to extract the IP address of the requesting end 50 and save it to the storage server 90. The redirection module 83 is configured to redirect the requesting end 50 to the second domain name.
该存储服务器90包括对应关系库91、标记模块92以及筛查模块93。可以理解的是,该对应关系库91、标记模块92以及筛查模块93也可以是设置在权威服务器70上的软件模块也可以是设置在应用服务器80上的软件模块。The storage server 90 includes a correspondence relationship library 91, a marking module 92, and a screening module 93. It can be understood that the correspondence library 91, the marking module 92, and the screening module 93 can also be a software module disposed on the authoritative server 70 or a software module disposed on the application server 80.
请参考图1,当权威服务器70收到针对探测域名的解析请求时,向请求端50返回与权威服务器70配合工作的应用服务器的IP地址(b.b.b.b),为了简化说明技术方案,该IP地址也为LDNS地址。然后基于探测域名请求端50向应用服务器80发送HTTP请求,请求中携带该探测域名www.example.com。应用服务器80接收到HTTP请求后,从数据报文中提取出此请求端50的源IP地址。将客户端IP地址和收到请求时的时间戳保存到存储服务器90中。然后应用服务器80向请求端50发送一个第二域名的重定向应答,重定向的目的域名为:请求端IP地址+探测域名,中间用“.”分割,从而形成第二域名。Referring to FIG. 1, when the authoritative server 70 receives the parsing request for the probe domain name, it returns the IP address (bbbb) of the application server working with the authoritative server 70 to the requesting terminal 50. To simplify the description of the technical solution, the IP address is also For the LDNS address. Then, based on the probe domain name requesting end 50, an HTTP request is sent to the application server 80, and the probe carries the probe domain name www.example.com. After receiving the HTTP request, the application server 80 extracts the source IP address of the requesting end 50 from the data packet. The client IP address and the timestamp when the request was received are saved to the storage server 90. The application server 80 then sends a redirect response to the second domain name to the requesting end 50. The redirected destination domain name is: the requesting IP address + the probed domain name, and the middle is divided by "." to form a second domain name.
请一并参考图2,接着,该请求端50基于该重定向的第二域名c.c.c.c.www.example.com,通过本地域名服务器60的递归解析模块61解析至权威服务器70。该权威服务器70的第二提取模块72提取该本地域名服务器60的IP地址(a.a.a.a)并从第二域名中获取请求端的IP地址(c.c.c.c)。同时, 该权威服务器70检验访问的第二域名是否是原探测域名的子域名,完成地址提取、确认以及校验过程。验证通过后,该权威服务器70从第二域名的域名解析请求中数据报文中提取出该本地域名服务器60的IP地址。该权威服务器70建立该请求端IP地址和该本地域名服务器IP地址的对应关系并保存至该存储服务器90,该存储服务器90的标记模块92标记该对应关系为待确认。Referring to FIG. 2 together, the requester 50 then resolves to the authoritative server 70 via the recursive parsing module 61 of the local domain name server 60 based on the redirected second domain name c.c.c.c.www.example.com. The second extraction module 72 of the authoritative server 70 extracts the IP address (a.a.a.a) of the local domain name server 60 and obtains the IP address of the requesting end (c.c.c.c) from the second domain name. Simultaneously, The authoritative server 70 checks whether the accessed second domain name is a subdomain of the original probe domain name, and completes the address extraction, confirmation, and verification process. After the verification is passed, the authoritative server 70 extracts the IP address of the local domain name server 60 from the data message in the domain name resolution request of the second domain name. The authoritative server 70 establishes a correspondence between the requesting end IP address and the local domain name server IP address and saves it to the storage server 90. The marking module 92 of the storage server 90 marks the correspondence as to be confirmed.
首次地址提取、确认以及校验的过程如下:The process of first address extraction, confirmation, and verification is as follows:
请求端50收到第二域名的重定向应答后,再次向权威服务器70发起域名解析请求,权威服务器70收到此解析请求后,检测第二域名是否是探测域名的子域名,如果是,则从第二域名中去掉后缀探测域名后得到请求端的IP地址(c.c.c.c),权威服务器70向存储服务器查询此IP地址是否刚刚向应用服务器80发起过请求,如果有,则校验通过。从对第二域名的域名解析请求数据报文中提取出该本地域名服务器60的IP地址(a.a.a.a),然后把客户端IP地址和本地域名服务器IP地址一起存储到存储服务器90的对应关系库中。完成存储动作后,再次把应用服务器80的IP地址(b.b.b.b)作为域名应答返回给请求端50。如果合法性校验失败,不响应域名解析请求。After receiving the redirect response of the second domain name, the requesting end 50 initiates a domain name resolution request to the authoritative server 70 again. After receiving the parsing request, the authoritative server 70 detects whether the second domain name is a subdomain name of the probe domain name, and if so, After removing the suffix detection domain name from the second domain name, the IP address (cccc) of the requesting end is obtained, and the authoritative server 70 queries the storage server whether the IP address has just initiated a request to the application server 80, and if so, the verification passes. The IP address (aaaa) of the local domain name server 60 is extracted from the domain name resolution request data packet of the second domain name, and then the client IP address and the local domain name server IP address are stored together in the corresponding relationship database of the storage server 90. . After the storage operation is completed, the IP address (b.b.b.b) of the application server 80 is returned to the requesting terminal 50 as a domain name response again. If the validity check fails, the domain name resolution request is not responded.
首次地址提取的确认过程如下:The confirmation process for the first address extraction is as follows:
请求端50针对该第二域名向该应用服务器80发起HTTP请求。收到请求后,该应用服务器80从该第二域名提取IP地址,该校验模块82根据第二域名中去掉后缀探测域名后得到IP地址与从HTTP请求数据报文提取的请求端IP地址进行地址校验,校验合格时,修改该对应关系为已确认并记录归入该对应关系库;校验不合格时,不响应该请求端的请求。The requesting end 50 initiates an HTTP request to the application server 80 for the second domain name. After receiving the request, the application server 80 extracts an IP address from the second domain name, and the verification module 82 obtains the IP address and the requester IP address extracted from the HTTP request data packet according to the suffix detection domain name in the second domain name. When the address is verified and the check is passed, the corresponding relationship is modified to be confirmed and recorded in the corresponding relationship database; when the check fails, the request is not responded to.
建立对应关系库以后的校验过程如下:The verification process after establishing the corresponding relational library is as follows:
请求端50针对该第二域名向该应用服务器80发起HTTP请求,收到HTTP请求后,该应用服务器80的第一提取模块81获取该请求端50的IP地址,该校验模块82根据该对应关系库91进行地址校验,在发现错误访问或者IP地址提取失败时,该重定向模块83还用于通过探测域名将该请求端50重定向至本地域名服务器60。The requesting end 50 initiates an HTTP request to the application server 80 for the second domain name. After receiving the HTTP request, the first extraction module 81 of the application server 80 obtains the IP address of the requesting end 50, and the verification module 82 according to the corresponding The relationship library 91 performs address verification. When the error access is found or the IP address extraction fails, the redirection module 83 is further configured to redirect the requester 50 to the local domain name server 60 by detecting the domain name.
具体过程为:请求端50收到该权威服务器70的域名解析结果后,再次向应用服务器80发起HTTP请求,请求中以第二域名作为被请求域名,应用服务器80接收到HTTP请求后,发现请求域名是第二域名,应用服务器80从第二域 名中提取出携带的IP地址,并从HTTP数据报文中提取出请求端IP地址,校验两个IP地址是否一致,校验通过后,从存储服务器90的对应关系库91中查询客户IP地址对应的本地域名服务器60的IP地址作为应答内容返回给请求端50。The specific process is: after receiving the domain name resolution result of the authoritative server 70, the requesting end 50 initiates an HTTP request to the application server 80 again, and the second domain name is used as the requested domain name in the request, and the application server 80 finds the request after receiving the HTTP request. The domain name is the second domain name, and the application server 80 is from the second domain. The IP address of the port is extracted from the name, and the IP address of the requesting end is extracted from the HTTP data packet, and the two IP addresses are checked for consistency. After the verification is passed, the client IP is queried from the corresponding relational library 91 of the storage server 90. The IP address of the local domain name server 60 corresponding to the address is returned to the requesting terminal 50 as a response content.
该存储服务器90还包括筛查模块93用于梳理所有待确认的对应关系,并对未经确认的对应关系在存储设定时间后进行删除。The storage server 90 further includes a screening module 93 for combing all the correspondences to be confirmed, and deleting the unconfirmed correspondences after storing the set time.
实施例2Example 2
请一并参考图4,在本实施例提供获取并收集客户端本地DNS服务器的方法,该方法主要包括以下步骤:Please refer to FIG. 4 together. In this embodiment, a method for obtaining and collecting a local DNS server of a client is provided. The method mainly includes the following steps:
步骤101:在权威服务器处,在接收到针对探测域名的解析请求时,重定向至预设的应用服务器;Step 101: At the authoritative server, when receiving the parsing request for detecting the domain name, redirecting to the preset application server;
步骤102:在应用服务器处,在接收到针对探测域名的HTTP请求时,将该HTTP访问请求重定向至第二域名;该第二域名包括探测域名以及发送HTTP请求的请求端的IP地址;Step 102: At the application server, when receiving the HTTP request for detecting the domain name, redirecting the HTTP access request to the second domain name; the second domain name includes detecting the domain name and the IP address of the requesting end sending the HTTP request;
步骤103:在权威服务器处,在接收到针对第二域名的解析请求时,建立第二域名中包含的请求端IP地址与发送该第二域名解析请求的本地域名服务器IP地址之间的对应关系。Step 103: At the authoritative server, when receiving the parsing request for the second domain name, establishing a correspondence between the requesting end IP address included in the second domain name and the local domain name server IP address sending the second domain name resolution request .
该方法还包括以下步骤:The method also includes the following steps:
确认的对应关系存储至对应关系库;以及The confirmed correspondence is stored in the corresponding relationship library;
基于该对应关系库,为请求端提供有效的IP地址。Based on the correspondence library, the requesting end is provided with a valid IP address.
请参考图5,以下详细介绍该获取并收集客户端本地DNS服务器的方法。Please refer to FIG. 5, which details the method of obtaining and collecting the client local DNS server.
该获取并收集客户端本地DNS服务器的方法通过设置定制的权威服务器70、应用服务器90以及存储服务器90,基于探测域名和第二域名的访问机制,通过重定向方式简单快速地获取并收集请求端50以及关联的本地域名服务器60的IP地址。在收到探测域名及第二域名的解析请求时,该定制的权威服务器70、应用服务器90以及存储服务器90开始域名解析优化处理。The method for obtaining and collecting the client local DNS server obtains and collects the requesting end by using the customized authoritative server 70, the application server 90, and the storage server 90, based on the access mechanism for detecting the domain name and the second domain name, by using the redirecting method. 50 and the IP address of the associated local domain name server 60. Upon receiving the resolution request for the probe domain name and the second domain name, the customized authoritative server 70, the application server 90, and the storage server 90 start domain name resolution optimization processing.
本实施例中,该获取并收集客户端本地DNS服务器的方法通过配置探测域名及第二域名作为优化通信的媒介。该探测域名举例为:www.example.com。该第二域名举例为:c.c.c.c.www.example.com,其中,c.c.c.c代表请求端50的IP地址。 In this embodiment, the method for obtaining and collecting the local DNS server of the client is configured to detect the domain name and the second domain name as a medium for optimizing communication. An example of the probe domain name is www.example.com. The second domain name is exemplified by: c.c.c.c.www.example.com, where c.c.c.c represents the IP address of the requesting terminal 50.
步骤201:权威服务器处在接收到请求端针对探测域名的解析请求时,重定向至预设的应用服务器;Step 201: The authoritative server is redirected to the preset application server when receiving the request for parsing the domain name by the requesting end;
步骤202:请求端再通过该探测域名访问该应用服务器,包括:Step 202: The requesting end accesses the application server by using the probed domain name, including:
请求端向本地域名服务器发起域名解析请求,请求解析www.example.com;The requesting end initiates a domain name resolution request to the local domain name server, requesting to parse www.example.com;
本地域名解析服务器向www.example.com的权威域名解析服务器发起域名解析请求;The local domain name resolution server initiates a domain name resolution request to the authoritative domain name resolution server of www.example.com;
www.example.com的权威域名解析服务器返回应用服务器的IP地址给本地域名服务器;The authoritative domain name resolution server of www.example.com returns the IP address of the application server to the local domain name server;
本地域名服务器返回应用服务器的IP地址给请求端;The local domain name server returns the IP address of the application server to the requesting end;
请求端再通过该探测域名访问该应用服务器,向应用服务器发起请求;The requesting end accesses the application server through the probe domain name, and initiates a request to the application server;
步骤203:该应用服务器在接收到针对探测域名的HTTP请求时,提取该请求端IP地址并保存,并使该请求端重定向至第二域名,包括:Step 203: When receiving the HTTP request for detecting the domain name, the application server extracts and saves the IP address of the requesting end, and redirects the requesting end to the second domain name, including:
应用服务器接到请求,发现是对www.example.com的请求,提取请求端的IP地址(c.c.c.c)并存储在存储服务器;The application server receives the request and finds that it is a request for www.example.com, extracts the IP address of the requesting end (c.c.c.c) and stores it in the storage server;
应用服务器向客户端发送重定向应答,重定向到第二域名:c.c.c.c.www.example.com;The application server sends a redirect response to the client, redirecting to the second domain name: c.c.c.c.www.example.com;
步骤204:针对该第二域名该请求端通过该本地域名服务器递归至权威服务器,包括:Step 204: The requester recursively to the authoritative server by using the local domain name server for the second domain name, including:
请求端向本地域名服务器发起域名解析请求,请求解析c.c.c.c.www.example.com;The requesting end initiates a domain name resolution request to the local domain name server, requesting to parse c.c.c.c.www.example.com;
本地域名解析服务器向c.c.c.c.www.example.com的权威域名解析服务器发起域名解析请求;The local domain name resolution server initiates a domain name resolution request to the authoritative domain name resolution server of c.c.c.c.www.example.com;
步骤205:权威服务器通过该第二域名,获取该请求端IP地址以及该本地域名服务器的IP地址;Step 205: The authoritative server obtains the IP address of the requesting end and the IP address of the local domain name server by using the second domain name.
步骤206:权威服务器验证该请求端IP地址后,建立该请求端IP地址和该本地域名服务器IP地址的对应关系并保存,标记该对应关系为待确认。该权威服务器提取该本地域名服务器的IP地址(a.a.a.a)并通过该第二域名提取该请求端IP地址,校验从第二域名提取的IP地址,校验合格后,建立该请求端IP地址和该本地域名服务器IP地址的对应关系并保存,包括:Step 206: After verifying the IP address of the requesting end, the authoritative server establishes a correspondence between the IP address of the requesting end and the IP address of the local domain name server, and saves the corresponding relationship to be confirmed. The authoritative server extracts the IP address (aaaa) of the local domain name server, extracts the IP address of the requesting end through the second domain name, and verifies the IP address extracted from the second domain name. After the verification is passed, the IP address of the requesting end is established. The mapping between the IP address of the local domain name server is saved and includes:
检测第二域名c.c.c.c.www.example.com是否是探测域名的子域名; Detecting whether the second domain name c.c.c.c.www.example.com is a subdomain of the probe domain name;
如果是,则从第二域名中去掉后缀探测域名后得到请求端的IP地址(c.c.c.c);If yes, the suffix detection domain name is removed from the second domain name to obtain the IP address of the requesting end (c.c.c.c);
向存储服务器查询此IP地址是否刚刚向应用服务器80发起过请求,如果有,则校验通过;Query to the storage server whether this IP address has just initiated a request to the application server 80, and if so, the verification is passed;
校验通过后,c.c.c.c.www.example.com的权威域名解析服务器把c.c.c.c.和a.a.a.a的对应关系保存到存储服务器;After the verification is passed, the authoritative domain name resolution server of c.c.c.c.www.example.com saves the correspondence between c.c.c.c. and a.a.a.a to the storage server;
标记该对应关系为待确认,包括:Mark the correspondence as to be confirmed, including:
c.c.c.c.www.example.com的权威域名解析服务器把存储的c.c.c.c.和a.a.a.a的对应关系标记为待确认状态;The authoritative domain name resolution server of c.c.c.c.www.example.com marks the correspondence between the stored c.c.c.c. and a.a.a.a as the status to be confirmed;
c.c.c.c.www.example.com的权威域名解析服务器返回应用服务器的IP地址给本地域名服务器;The authoritative domain name resolution server of c.c.c.c.www.example.com returns the IP address of the application server to the local domain name server;
本地域名服务器返回应用服务器的IP地址给请求端;The local domain name server returns the IP address of the application server to the requesting end;
步骤207:请求端通过该第二域名向该应用服务器发起HTTP请求;Step 207: The requesting end initiates an HTTP request to the application server by using the second domain name.
请求端向应用服务器发起请求,被请求域名是c.c.c.c.www.example.com。The requester initiates a request to the application server, and the requested domain name is c.c.c.c.www.example.com.
步骤208:应用服务器收到针对第二域名的HTTP请求时,从该第二域名提取IP地址并与解析的请求端IP地址进行地址校验,校验合格时,修改该关联数据为已确认并归入该关联数据库,包括:Step 208: When the application server receives the HTTP request for the second domain name, the IP address is extracted from the second domain name and the address verification is performed with the parsed requester IP address. When the verification is successful, the associated data is modified and confirmed. Belonged to the associated database, including:
应用服务器接到请求,发现是对c.c.c.c.www.example.com的请求,提取请求端IP地址(c.c.c.c);The application server receives the request and finds that it is a request for c.c.c.c.www.example.com, and extracts the IP address of the requester (c.c.c.c);
与存储服务器存储的IP地址比较,把提取的IP地址和真实IP地址进行校验,防止恶意访问;Compared with the IP address stored by the storage server, the extracted IP address and the real IP address are verified to prevent malicious access;
查询请求端IP地址(c.c.c.c)对应的本地应用服务器IP地址(a.a.a.a);Query the IP address of the local application server corresponding to the IP address of the requester (c.c.c.c) (a.a.a.a);
在存储服务器中把IP地址(c.c.c.c)和IP地址(a.a.a.a)的对应关系对应关系改为确认状态;In the storage server, the correspondence relationship between the IP address (c.c.c.c) and the IP address (a.a.a.a) is changed to the confirmation status;
存储服务器返回请求端的本地域名服务器IP地址(a.a.a.a);The storage server returns the local domain name server IP address of the requesting end (a.a.a.a);
应用服务器把请求端IP地址(c.c.c.c)和请求端本地域名服务器IP地址(a.a.a.a)返回给请求端;The application server returns the requester IP address (c.c.c.c) and the requesting local domain name server IP address (a.a.a.a) to the requesting end;
步骤209:校验不合格时,不响应该请求端的请求;Step 209: When the verification fails, the request of the requesting end is not responded;
步骤210:筛查所有待确认的对应关系,未经确认的对应关系在存储设定时间后进行删除,该获取并收集客户端本地DNS服务器的方法还包括筛查所有待 确认的对应关系,未经确认的对应关系在存储设定时间后进行删除。Step 210: Screening all the correspondences to be confirmed, the unconfirmed correspondence is deleted after the storage set time, and the method for obtaining and collecting the local DNS server of the client further includes screening all the waiting The correspondence relationship confirmed, the unconfirmed correspondence is deleted after the storage set time.
本实施例的获取并收集客户端本地DNS服务器的方法除了首次地址提取、确认以及校验需要借助探测域名和第二域名完成域名解析优化操作之外,在建立对应关系库以后,任何请求端也可通过探测域名和重定向至第二域名的方式进行本地DNS服务器优化和校验操作。The method for obtaining and collecting the local DNS server of the client in this embodiment, in addition to the first address extraction, confirmation, and verification, requires the domain name resolution and the second domain name to complete the domain name resolution optimization operation, and after the correspondence library is established, any request terminal also Local DNS server optimization and verification operations can be performed by detecting the domain name and redirecting to the second domain name.
请参考图6,建立对应关系库以后的校验过程包括:Referring to FIG. 6, the verification process after the correspondence library is established includes:
步骤301:请求端通过该第二域名向应用服务器发起HTTP请求;Step 301: The requesting end initiates an HTTP request to the application server by using the second domain name.
步骤302:应用服务器提取请求端IP地址并根据该对应关系库进行地址校验;Step 302: The application server extracts the IP address of the requesting end and performs address verification according to the corresponding relational library.
步骤303:判断是否发现错误访问;Step 303: Determine whether an erroneous access is found.
步骤304:或者判断是否IP地址提取失败;Step 304: Determine whether the IP address extraction fails.
步骤305:在判断是错误访问或者IP地址提取失败时,通过探测域名将该请求端重定向至本地域名服务器。Step 305: When the judgment is that the error is accessed or the IP address extraction fails, the request end is redirected to the local domain name server by detecting the domain name.
实施例的获取并收集客户端本地DNS服务器的方法以及系统,以探测域名和第二域名为媒介,通过重定向方式简单快速地获取并收集请求端以及关联的本地域名服务器的IP地址。在系统中,权威服务器连接存储服务器,该存储服务器获取并收集请求端以及关联的本地域名服务器的IP地址,结合数据分析和合并不断更新优化权威服务器所使用的IP地址对应关系库,为用户提供最优的网路接入节点,以及提供有效并且准确性更高的域名解析服务,同时可返回IP地址给请求端系统并显示给客户。The method and system for obtaining and collecting a client local DNS server are used to detect a domain name and a second domain name as a medium, and the IP address of the requesting end and the associated local domain name server are obtained and collected simply and quickly by the redirecting method. In the system, the authoritative server is connected to the storage server, which acquires and collects the IP address of the requesting end and the associated local domain name server, and continuously updates and updates the correspondence database of the IP address used by the authoritative server in combination with data analysis and merging to provide the user with The optimal network access node, as well as providing efficient and more accurate domain name resolution services, can return the IP address to the requesting system and display it to the client.
实施例3Example 3
图7是本申请实施例提供的获取并收集客户端本地DNS服务器的方法的每个服务器节点设备600的硬件结构示意图,如图7所示,该种服务器集群,包括请求端、本地域名服务器、权威服务器、应用服务器以及存储服务器,7 is a schematic diagram of a hardware structure of each server node device 600 for obtaining and collecting a client local DNS server according to an embodiment of the present application. As shown in FIG. 7, the server cluster includes a requesting end, a local domain name server, Authoritative server, application server, and storage server,
其中,每一权威服务器、应用服务器以及存储服务器包括:至少一个或多个处理器610、存储器620以及通信组件650,图7中以一个处理器610为例。该存储器620存储有可被该至少一个处理器610执行的指令,该指令被该至少一个处理器执行时,通过通信组件650建立数据通道,以使该至少一个处理器能够执行该获取并收集客户端本地DNS服务器的方法。 Each of the authoritative servers, the application server, and the storage server includes: at least one or more processors 610, a memory 620, and a communication component 650. One processor 610 is exemplified in FIG. The memory 620 stores instructions executable by the at least one processor 610, the instructions being executed by the at least one processor, establishing a data channel through the communication component 650 to enable the at least one processor to perform the acquisition and collect the client The method of the local DNS server.
处理器610、存储器620以及通信组件650可以通过总线或者其他方式连接,图7中以通过总线连接为例。The processor 610, the memory 620, and the communication component 650 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
存储器620作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的获取并收集客户端本地DNS服务器的方法对应的程序指令/模块(例如,附图3权威服务器所示的预存模块71、第二提取模块72,应用服务器所示的第一提取模块81、重定向模块82、校验模块82,存储服务器所示的对应关系库91、标记模块92以及筛查模块93)。处理器610通过运行存储在存储器620中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例中的获取并收集客户端本地DNS服务器的方法。The memory 620 is used as a non-volatile computer readable storage medium for storing non-volatile software programs, non-volatile computer executable programs, and modules, such as obtaining and collecting client local DNS in the embodiment of the present application. The program instruction/module corresponding to the method of the server (for example, the pre-stored module 71, the second extraction module 72 shown by the authoritative server of FIG. 3, the first extraction module 81, the redirection module 82, and the verification module 82 shown by the application server The correspondence relationship library 91, the marking module 92, and the screening module 93) shown in the storage server are stored. The processor 610 executes various functional applications and data processing of the server by running non-volatile software programs, instructions, and modules stored in the memory 620, that is, obtaining and collecting the client local DNS server in the foregoing method embodiment. Methods.
存储器620可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据域名解析系统的使用所创建的数据等。此外,存储器620可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器620可选包括相对于处理器610远程设置的存储器,这些远程存储器可以通过网络连接至机器人交互电子设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 620 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to the use of the domain name resolution system, and the like. Moreover, memory 620 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 620 can optionally include memory remotely located relative to processor 610, which can be connected to the robotic interactive electronic device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
所述一个或者多个模块存储在所述存储器620中,当被所述一个或者多个处理器610执行时,执行上述任意方法实施例中的获取并收集客户端本地DNS服务器的方法,例如,执行以上描述的图4中的方法步骤101至步骤103,执行以上描述的图5中的方法步骤201至步骤210以及执行以上描述的图6中的方法步骤301至步骤305;实现附图3权威服务器所示的预存模块71、第二提取模块72,应用服务器所示的第一提取模块81、重定向模块82、校验模块82,存储服务器所示的对应关系库91、标记模块92以及筛查模块93等的功能。The one or more modules are stored in the memory 620, and when executed by the one or more processors 610, perform the method of obtaining and collecting a client local DNS server in any of the above method embodiments, for example, Performing the method steps 101 to 103 of FIG. 4 described above, performing the method steps 201 to 210 of FIG. 5 described above and performing the method steps 301 to 305 of FIG. 6 described above; implementing the authority of FIG. The pre-stored module 71, the second extraction module 72, and the first extraction module 81, the redirection module 82, the verification module 82, and the corresponding relationship library 91, the labeling module 92 and the screen shown by the server are shown by the server. Check the function of module 93 and so on.
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。The above products can perform the methods provided by the embodiments of the present application, and have the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiments of the present application.
本申请实施例提供了一种非易失性计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个处理器 执行,例如,执行以上描述的图4中的方法步骤101至步骤103,执行以上描述的图5中的方法步骤201至步骤210以及执行以上描述的图6中的方法步骤301至步骤305;实现附图3权威服务器所示的预存模块71、第二提取模块72,应用服务器所示的第一提取模块81、重定向模块82、校验模块82,存储服务器所示的对应关系库91、标记模块92以及筛查模块93等的功能。Embodiments of the present application provide a non-transitory computer readable storage medium storing computer-executable instructions that are executed by one or more processors Executing, for example, performing the method steps 101 to 103 of FIG. 4 described above, performing the method steps 201 to 210 of FIG. 5 described above, and performing the method steps 301 to 305 of FIG. 6 described above; 3 is a pre-stored module 71, a second extraction module 72, and a first extraction module 81, a redirection module 82, a verification module 82, and a corresponding relationship library 91 shown by the application server. The functions of the module 92 and the screening module 93 and the like.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
通过以上的实施方式的描述,本领域普通技术人员可以清楚地了解到各实施方式可通过软件加通用硬件平台的方式来实现,当然也可以通过硬件。本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Through the description of the above embodiments, those skilled in the art can clearly understand that the embodiments can be implemented by means of software plus a general hardware platform, and of course, by hardware. A person skilled in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;在本申请的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本申请的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and are not limited thereto; in the idea of the present application, the technical features in the above embodiments or different embodiments may also be combined. The steps may be carried out in any order, and there are many other variations of the various aspects of the present application as described above, which are not provided in the details for the sake of brevity; although the present application has been described in detail with reference to the foregoing embodiments, The skilled person should understand that the technical solutions described in the foregoing embodiments may be modified, or some of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the embodiments of the present application. The scope of the technical solution.

Claims (20)

  1. 一种获取并收集客户端本地DNS服务器的方法,其特征在于,包括以下步骤:A method for obtaining and collecting a client local DNS server, comprising the steps of:
    在权威服务器处,在接收到针对探测域名的解析请求时,重定向至预设的应用服务器;At the authoritative server, when receiving the parsing request for detecting the domain name, redirecting to the preset application server;
    在应用服务器处,在接收到针对探测域名的HTTP请求时,将所述HTTP访问请求重定向至第二域名;所述第二域名包括探测域名以及发送HTTP请求的请求端的IP地址;At the application server, when receiving the HTTP request for detecting the domain name, redirecting the HTTP access request to the second domain name; the second domain name includes detecting the domain name and the IP address of the requesting end sending the HTTP request;
    在权威服务器处,在接收到针对第二域名的解析请求时,建立第二域名中包含的请求端IP地址与发送所述第二域名解析请求的本地域名服务器IP地址之间的对应关系。And at the authoritative server, when receiving the parsing request for the second domain name, establishing a correspondence between the requesting end IP address included in the second domain name and the local domain name server IP address sending the second domain name resolution request.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    在应用服务器处,在接收到针对探测域名的HTTP请求时,获取请求端的IP地址和时间戳并保存;At the application server, when receiving an HTTP request for detecting a domain name, obtaining an IP address and a timestamp of the requesting end and saving the same;
    在权威服务器处,通过所述第二域名,获取所述请求端IP地址以及所述本地域名服务器的IP地址,验证所述请求端IP地址后,且建立所述请求端IP地址和所述本地域名服务器IP地址的对应关系并保存,标记所述对应关系为待确认;Obtaining, by the second domain name, the requesting end IP address and the IP address of the local domain name server, verifying the requesting end IP address, and establishing the requesting end IP address and the local Corresponding relationship between the IP address of the domain name server is saved, and the corresponding relationship is marked as to be confirmed;
    在应用服务器处,通过所述第二域名确认所述对应关系,以及获取经确认的所述本地域名服务器的IP地址。At the application server, the corresponding relationship is confirmed by the second domain name, and the confirmed IP address of the local domain name server is obtained.
  3. 根据权利要求2所述的获取并收集客户端本地DNS服务器的方法,其特征在于,所述方法还包括:所确认的对应关系存储至对应关系库;以及The method for obtaining and collecting a client local DNS server according to claim 2, wherein the method further comprises: storing the confirmed correspondence relationship to a correspondence relationship library;
    基于所述对应关系库,为请求端提供有效的本地域名服务器IP地址。Providing a valid local domain name server IP address for the requesting end based on the corresponding relational library.
  4. 根据权利要求2所述的获取并收集客户端本地DNS服务器的方法,其特征在于,还包括:The method for obtaining and collecting a client local DNS server according to claim 2, further comprising:
    在应用服务器处,在接收到针对探测域名的HTTP请求时,从所述第二域名提取IP地址并与解析的请求端IP地址进行地址校验,校验合格时,修改所述对应关系为已确认并归入所述对应关系库;校验不合格时,不响应所述请求端的请求。At the application server, when receiving the HTTP request for detecting the domain name, extracting the IP address from the second domain name and performing address verification with the parsed requesting IP address, and verifying that the correspondence is Confirmed and classified into the corresponding relational library; when the verification fails, the request of the requesting end is not responded.
  5. 根据权利要求3所述的获取并收集客户端本地DNS服务器的方法,其特 征在于,还包括:A method for obtaining and collecting a client local DNS server according to claim 3 The levy also includes:
    在应用服务器处,在接收到针对探测域名的HTTP请求时,解析请求端IP地址并根据所述对应关系库进行地址校验,发现错误访问或者IP地址提取失败时,通过探测域名将所述请求端重定向至本地域名服务器。At the application server, when receiving the HTTP request for detecting the domain name, parsing the IP address of the requesting end and performing address verification according to the corresponding relational library, and detecting the domain name by failing to detect the domain name when the error access or IP address extraction fails The endpoint is redirected to the local domain name server.
  6. 根据权利要求2-5任意一项所述的获取并收集客户端本地DNS服务器的方法,其特征在于,还包括:The method for obtaining and collecting a client local DNS server according to any one of claims 2-5, further comprising:
    筛查所有待确认的对应关系,未经确认的对应关系在存储设定时间后进行删除。All correspondences to be confirmed are screened, and the unconfirmed correspondence is deleted after storing the set time.
  7. 一种获取并收集客户端本地DNS服务器的系统,其特征在于,包括第一模块和第二模块:A system for obtaining and collecting a client local DNS server, comprising: a first module and a second module:
    所述第一模块用于在权威服务器处,在接收到针对探测域名的解析请求时,重定向至预设的应用服务器;The first module is configured to, at the authoritative server, redirect to a preset application server when receiving a parsing request for detecting the domain name;
    所述第二模块用于在应用服务器处,在接收到针对探测域名的HTTP请求时,将所述HTTP访问请求重定向至第二域名;所述第二域名包括探测域名以及发送HTTP请求的请求端的IP地址;The second module is configured to, at the application server, redirect the HTTP access request to a second domain name when receiving an HTTP request for detecting a domain name; the second domain name includes a probe domain name and a request for sending an HTTP request End IP address;
    所述第一模块还用于在权威服务器处,在接收到针对第二域名的解析请求时,建立第二域名中包含的请求端IP地址与发送所述第二域名解析请求的本地域名服务器IP地址之间的对应关系。The first module is further configured to: at the authoritative server, when receiving the parsing request for the second domain name, establish a requesting end IP address included in the second domain name and a local domain name server IP that sends the second domain name resolution request The correspondence between addresses.
  8. 根据权利要求7所述的获取并收集客户端本地DNS服务器的系统,其特征在于,A system for obtaining and collecting a client local DNS server according to claim 7, wherein
    所述第二模块还用于在所述应用服务器处,在接收到针对探测域名的HTTP请求时,获取请求端的IP地址和时间戳并保存;The second module is further configured to: at the application server, obtain an IP address and a timestamp of the requesting end and save the HTTP request for detecting the domain name;
    所述第一模块还用于在所述权威服务器处,通过所述第二域名,获取所述请求端IP地址以及所述本地域名服务器的IP地址,验证所述请求端IP地址后,建立所述请求端IP地址和所述本地域名服务器IP地址的对应关系并保存,标记所述对应关系为待确认;The first module is further configured to: at the authoritative server, obtain the IP address of the requesting end and the IP address of the local domain name server by using the second domain name, verify the IP address of the requesting end, and establish a Corresponding relationship between the IP address of the requesting end and the IP address of the local domain name server is saved, and the corresponding relationship is marked as to be confirmed;
    所述第二模块还用于在所述应用服务器处,通过所述第二域名确认所述对应关系,以及获取经确认的所述本地域名服务器的IP地址。The second module is further configured to: at the application server, confirm the corresponding relationship by using the second domain name, and obtain the confirmed IP address of the local domain name server.
  9. 根据权利要求8所述的获取并收集客户端本地DNS服务器的系统,其特征在于,还包括第三模块,所述第三模块用于在存储服务器处,存储确认的对 应关系形成的对应关系库;以及The system for obtaining and collecting a client local DNS server according to claim 8, further comprising a third module, wherein the third module is configured to store the confirmed pair at the storage server Corresponding relationship library formed by relationship; and
    所述第一模块还用于在所述权威服务器处,基于所述对应关系库,为请求端提供有效的本地域名服务器的IP地址。The first module is further configured to provide, at the authoritative server, an IP address of a valid local domain name server for the requesting end based on the corresponding relational library.
  10. 根据权利要求9所述的获取并收集客户端本地DNS服务器的系统,其特征在于,所述应用服务器还包括校验模块,在通过所述第二域名由所述请求端向所述应用服务器发起请求时,所述校验模块用于根据应用服务器从所述第二域名提取的IP地址并与解析的请求端IP地址进行地址校验;校验合格时,所述存储服务器的标记模块还用于修改所述对应关系为已确认。The system for obtaining and collecting a client local DNS server according to claim 9, wherein the application server further comprises a verification module, which is initiated by the requesting end to the application server by using the second domain name. When requested, the verification module is configured to perform address verification according to the IP address extracted by the application server from the second domain name and the parsed requester IP address; when the verification is successful, the marking module of the storage server is further used. The correspondence is modified to be confirmed.
  11. 根据权利要求9所述的获取并收集客户端本地DNS服务器的系统,其特征在于,在通过所述第二域名向所述应用服务器发起请求时,所述应用服务器的第一提取模块用于解析所述请求端的IP地址,所述校验模块还用于根据所述对应关系库进行地址校验,在发现错误访问或者IP地址提取失败时,所述重定向模块还用于通过探测域名将所述请求端重定向至本地域名服务器。The system for obtaining and collecting a client local DNS server according to claim 9, wherein when the request is initiated to the application server by using the second domain name, the first extraction module of the application server is configured to parse The IP address of the requesting end, the verification module is further configured to perform address verification according to the correspondence relationship library, and when the error access is found or the IP address extraction fails, the redirection module is further configured to detect the domain name by using the The requester is redirected to the local domain name server.
  12. 根据权利要求8-11任意一项所述的获取并收集客户端本地DNS服务器的系统,其特征在于,所述存储服务器还包括筛查模块,所述筛查模块用于梳理所有待确认的对应关系,未经确认的对应关系在存储设定时间后进行删除。The system for acquiring and collecting a client local DNS server according to any one of claims 8-11, wherein the storage server further comprises a screening module, and the screening module is configured to comb all the corresponding to be confirmed. Relationships, unconfirmed correspondences are deleted after the set time is stored.
  13. 一种服务器集群,其特征在于,包括权威服务器、应用服务器以及存储服务器;A server cluster, comprising: an authoritative server, an application server, and a storage server;
    所述权威服务器用于在接收到针对探测域名的解析请求时,重定向至预设的应用服务器;The authoritative server is configured to redirect to a preset application server when receiving a parsing request for detecting a domain name;
    所述应用服务器用于在接收到针对探测域名的HTTP请求时,将所述HTTP访问请求重定向至第二域名;所述第二域名包括探测域名以及发送HTTP请求的请求端的IP地址;The application server is configured to redirect the HTTP access request to a second domain name when receiving an HTTP request for detecting a domain name; the second domain name includes a probe domain name and an IP address of a requesting end that sends an HTTP request;
    所述权威服务器还用于在接收到针对第二域名的解析请求时,建立第二域名中包含的请求端IP地址与发送所述第二域名解析请求的本地域名服务器IP地址之间的对应关系。The authoritative server is further configured to: when receiving the parsing request for the second domain name, establish a correspondence between the requesting end IP address included in the second domain name and the local domain name server IP address that sends the second domain name resolution request .
  14. 根据权利要求13所述服务器集群,其特征在于,A server cluster according to claim 13 wherein:
    所述应用服务器还用于在接收到针对探测域名的HTTP请求时,获取请求端的IP地址和时间戳并保存;The application server is further configured to acquire an IP address and a timestamp of the requesting end and save the HTTP request for detecting the domain name;
    所述权威服务器还用于通过所述第二域名,获取所述请求端IP地址以及所 述本地域名服务器的IP地址,验证所述请求端IP地址后,建立所述请求端IP地址和所述本地域名服务器IP地址的对应关系并保存,标记所述对应关系为待确认;The authoritative server is further configured to obtain the IP address of the requesting end and the location by using the second domain name. After the IP address of the local domain name server is verified, the corresponding relationship between the IP address of the requester and the IP address of the local domain name server is established and saved, and the corresponding relationship is marked as to be confirmed;
    所述应用服务器还用于通过所述第二域名确认所述对应关系,以及获取经确认的所述本地域名服务器的IP地址。The application server is further configured to confirm the correspondence by using the second domain name, and obtain the confirmed IP address of the local domain name server.
  15. 根据权利要求14所述的服务器集群,其特征在于,所述存储服务器用于存储确认的对应关系形成的对应关系库;以及The server cluster according to claim 14, wherein the storage server is configured to store a correspondence library formed by the confirmed correspondence relationship;
    所述第一模块还用于在所述权威服务器处,基于所述对应关系库,为请求端提供有效的本地域名服务器的IP地址。The first module is further configured to provide, at the authoritative server, an IP address of a valid local domain name server for the requesting end based on the corresponding relational library.
  16. 根据权利要求15所述的服务器集群,其特征在于,所述应用服务器还包括校验模块,在通过所述第二域名由所述请求端向所述应用服务器发起请求时,所述校验模块用于根据应用服务器从所述第二域名提取的IP地址并与解析的请求端IP地址进行地址校验;校验合格时,所述存储服务器的标记模块还用于修改所述对应关系为已确认。The server cluster according to claim 15, wherein the application server further comprises a verification module, when the request is initiated by the requesting end to the application server by using the second domain name, the verification module And performing, by the application server, an IP address extracted from the second domain name and performing address verification with the parsed requester IP address; when the verification is successful, the marking module of the storage server is further configured to modify the correspondence to be confirm.
  17. 根据权利要求15所述的服务器集群,其特征在于,在通过所述第二域名向所述应用服务器发起请求时,所述应用服务器的第一提取模块用于解析所述请求端的IP地址,所述校验模块还用于根据所述对应关系库进行地址校验,在发现错误访问或者IP地址提取失败时,所述重定向模块还用于通过探测域名将所述请求端重定向至本地域名服务器。The server cluster according to claim 15, wherein the first extraction module of the application server is configured to parse the IP address of the requesting end when the request is initiated by the second domain name to the application server. The verification module is further configured to perform address verification according to the correspondence relationship library. When the error access is found or the IP address extraction fails, the redirection module is further configured to redirect the request end to the local domain name by detecting the domain name. server.
  18. 根据权利要求13-17任意一项所述的服务器集群,其特征在于,所述存储服务器还包括筛查模块,所述筛查模块用于梳理所有待确认的对应关系,未经确认的对应关系在存储设定时间后进行删除。The server cluster according to any one of claims 13-17, wherein the storage server further comprises a screening module, wherein the screening module is configured to comb all correspondences to be confirmed, and the unconfirmed correspondence relationship Delete after storing the set time.
  19. 一种服务器集群,其特征在于,A server cluster, characterized in that
    权威服务器、应用服务器以及存储服务器,Authoritative server, application server, and storage server,
    其中,每一权威服务器、应用服务器以及存储服务器包括:Each of the authoritative servers, application servers, and storage servers includes:
    至少一个处理器、与该至少一个处理器通信连接的存储器以及通信组件,所述存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时,通过通信组件建立数据通道,以使所述至少一个处理器能够执行权利要求1-6任一项所述的方法。At least one processor, a memory communicatively coupled to the at least one processor, and a communication component, the memory storing instructions executable by the at least one processor, the instructions being executed by the at least one processor, by communication The component establishes a data channel to enable the at least one processor to perform the method of any of claims 1-6.
  20. 一种非易失性计算机可读存储介质,其中,所述计算机可读存储介质存 储有计算机可执行指令,所述计算机可执行指令用于使计算机执行权利要求1-6任一项所述的方法。 A non-transitory computer readable storage medium, wherein the computer readable storage medium is stored There is stored computer executable instructions for causing a computer to perform the method of any of claims 1-6.
PCT/CN2017/096485 2017-08-08 2017-08-08 Method and system for acquiring and collecting client local dns server WO2019028683A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/096485 WO2019028683A1 (en) 2017-08-08 2017-08-08 Method and system for acquiring and collecting client local dns server
CN201780003255.5A CN108702397B (en) 2017-08-08 2017-08-08 Method and system for acquiring and collecting local DNS (Domain name Server) server of client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/096485 WO2019028683A1 (en) 2017-08-08 2017-08-08 Method and system for acquiring and collecting client local dns server

Publications (1)

Publication Number Publication Date
WO2019028683A1 true WO2019028683A1 (en) 2019-02-14

Family

ID=63843767

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/096485 WO2019028683A1 (en) 2017-08-08 2017-08-08 Method and system for acquiring and collecting client local dns server

Country Status (2)

Country Link
CN (1) CN108702397B (en)
WO (1) WO2019028683A1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110933664A (en) * 2019-12-01 2020-03-27 杭州云缔盟科技有限公司 Method for accelerating acquisition of terminal public network IP
CN111082977A (en) * 2019-11-29 2020-04-28 北京金山云网络技术有限公司 Method and device for acquiring IP address and terminal equipment
CN111147616A (en) * 2019-12-17 2020-05-12 北京明略软件系统有限公司 Resource acquisition method and device, electronic equipment and storage medium
CN111818194A (en) * 2020-07-01 2020-10-23 中国建设银行股份有限公司 Domain name based access system and method
CN111988443A (en) * 2020-08-14 2020-11-24 杭州视洞科技有限公司 Dynamic DNS optimization scheme based on cloud service configuration and local persistence
CN112532764A (en) * 2020-12-01 2021-03-19 上海哔哩哔哩科技有限公司 Data acquisition method and device
CN112738271A (en) * 2021-01-08 2021-04-30 网宿科技股份有限公司 CDN quality detection method, system and domain name server
CN113315849A (en) * 2020-04-10 2021-08-27 阿里巴巴集团控股有限公司 Data processing method, device, equipment and storage medium
CN113676502A (en) * 2020-05-14 2021-11-19 协鑫集成科技股份有限公司 Application service access method, device and storage medium
CN114584808A (en) * 2022-03-01 2022-06-03 北京字节跳动网络技术有限公司 Video stream acquisition method, device, system, equipment and medium
CN114629911A (en) * 2022-04-18 2022-06-14 北京字节跳动网络技术有限公司 Method, device, equipment, medium and program product for processing domain name resolution request

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109347998B (en) * 2018-12-27 2021-11-16 网宿科技股份有限公司 Method and system for detecting IP address of DNS (Domain name Server) outlet server
CN111953616B (en) * 2019-05-17 2023-01-31 贵州白山云科技股份有限公司 Load balancing scheduling method, device, system, medium and equipment
CN110830606A (en) * 2019-10-31 2020-02-21 瑞斯康达科技发展股份有限公司 Method and device for solving abnormal DNS cache and computer readable storage medium
CN111371914A (en) * 2020-02-25 2020-07-03 网宿科技股份有限公司 IP library generation method, domain name resolution method, electronic device and readable storage medium
CN111447296B (en) * 2020-03-10 2023-03-24 达闼机器人股份有限公司 Domain name resolution method, domain name resolution device, computing equipment and computer storage medium
CN113014687B (en) * 2021-02-20 2023-04-18 牙木科技股份有限公司 DNS iterative query method, DNS server, system and computer readable storage medium
CN112929466A (en) * 2021-04-20 2021-06-08 光载无限(北京)科技有限公司 Method and system for detecting public network gateway IP and local domain name server IP
CN113242329B (en) * 2021-04-30 2022-03-18 平安证券股份有限公司 Mapping relation sending method and device based on fuzzy matching and computer equipment
CN114301872B (en) * 2021-12-27 2023-12-26 奇安信科技集团股份有限公司 Domain name based access method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100042681A1 (en) * 2008-08-13 2010-02-18 Sk Telecom Co., Ltd. Contents delivery system and method using object redirection, and gslb switch thereof
CN104363313A (en) * 2014-12-02 2015-02-18 网宿科技股份有限公司 Method and system for guaranteeing resource utilization rate of website using content distribution network
US20150058403A1 (en) * 2013-08-20 2015-02-26 Alibaba Group Holding Limited Method and system of dispatching requests in a content delivery network
CN104468860A (en) * 2014-12-04 2015-03-25 北京奇虎科技有限公司 Method and device for recognizing risk of domain name resolution server
CN105376344A (en) * 2015-11-26 2016-03-02 中国互联网络信息中心 Method and system for analyzing recursive domain name server related to source address
CN106470251A (en) * 2015-08-19 2017-03-01 互联网域名系统北京市工程研究中心有限公司 Domain name analytic method and virtual DNS authority server
CN106790530A (en) * 2016-12-21 2017-05-31 北京云端智度科技有限公司 The tracking of domain name service and polymerization

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242422B (en) * 2007-02-06 2011-01-26 中国电信股份有限公司 Content distribution network system and method applicable to multi-service fusion
CN105959433B (en) * 2016-07-22 2019-02-19 无锡华云数据技术服务有限公司 A kind of domain name analytic method and its domain name analysis system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100042681A1 (en) * 2008-08-13 2010-02-18 Sk Telecom Co., Ltd. Contents delivery system and method using object redirection, and gslb switch thereof
US20150058403A1 (en) * 2013-08-20 2015-02-26 Alibaba Group Holding Limited Method and system of dispatching requests in a content delivery network
CN104363313A (en) * 2014-12-02 2015-02-18 网宿科技股份有限公司 Method and system for guaranteeing resource utilization rate of website using content distribution network
CN104468860A (en) * 2014-12-04 2015-03-25 北京奇虎科技有限公司 Method and device for recognizing risk of domain name resolution server
CN106470251A (en) * 2015-08-19 2017-03-01 互联网域名系统北京市工程研究中心有限公司 Domain name analytic method and virtual DNS authority server
CN105376344A (en) * 2015-11-26 2016-03-02 中国互联网络信息中心 Method and system for analyzing recursive domain name server related to source address
CN106790530A (en) * 2016-12-21 2017-05-31 北京云端智度科技有限公司 The tracking of domain name service and polymerization

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111082977A (en) * 2019-11-29 2020-04-28 北京金山云网络技术有限公司 Method and device for acquiring IP address and terminal equipment
CN111082977B (en) * 2019-11-29 2023-04-07 北京金山云网络技术有限公司 Method and device for acquiring IP address and terminal equipment
CN110933664B (en) * 2019-12-01 2022-09-20 杭州云缔盟科技有限公司 Method for accelerating acquisition of terminal public network IP
CN110933664A (en) * 2019-12-01 2020-03-27 杭州云缔盟科技有限公司 Method for accelerating acquisition of terminal public network IP
CN111147616A (en) * 2019-12-17 2020-05-12 北京明略软件系统有限公司 Resource acquisition method and device, electronic equipment and storage medium
CN113315849A (en) * 2020-04-10 2021-08-27 阿里巴巴集团控股有限公司 Data processing method, device, equipment and storage medium
CN113676502A (en) * 2020-05-14 2021-11-19 协鑫集成科技股份有限公司 Application service access method, device and storage medium
CN111818194A (en) * 2020-07-01 2020-10-23 中国建设银行股份有限公司 Domain name based access system and method
CN111988443A (en) * 2020-08-14 2020-11-24 杭州视洞科技有限公司 Dynamic DNS optimization scheme based on cloud service configuration and local persistence
CN112532764A (en) * 2020-12-01 2021-03-19 上海哔哩哔哩科技有限公司 Data acquisition method and device
CN112738271A (en) * 2021-01-08 2021-04-30 网宿科技股份有限公司 CDN quality detection method, system and domain name server
CN114584808A (en) * 2022-03-01 2022-06-03 北京字节跳动网络技术有限公司 Video stream acquisition method, device, system, equipment and medium
CN114584808B (en) * 2022-03-01 2023-09-22 抖音视界有限公司 Video stream acquisition method, device, system, equipment and medium
CN114629911A (en) * 2022-04-18 2022-06-14 北京字节跳动网络技术有限公司 Method, device, equipment, medium and program product for processing domain name resolution request

Also Published As

Publication number Publication date
CN108702397A (en) 2018-10-23
CN108702397B (en) 2021-07-06

Similar Documents

Publication Publication Date Title
WO2019028683A1 (en) Method and system for acquiring and collecting client local dns server
US10693734B2 (en) Traffic pattern detection and presentation in container-based cloud computing architecture
CN107528862B (en) Domain name resolution method and device
US9553930B2 (en) DNS overriding-based methods of accelerating content delivery
US9130970B2 (en) Systems for accelerating content delivery via DNS overriding
US9106701B2 (en) Request routing management based on network components
US10009271B2 (en) Routing method and network transmission apparatus
US8745128B2 (en) Optimized content distribution based on metrics derived from the end user
US10681001B2 (en) High precision mapping with intermediary DNS filtering
CN106412063B (en) CDN node detection and resource scheduling system and method in education network
US9042863B2 (en) Service classification of web traffic
US20120054265A1 (en) Optimized Content Distribution Based on Metrics Derived from the End User
KR20120096580A (en) Method and system for preventing dns cache poisoning
EP2149093A2 (en) Unobtrusive methods and systems for collecting information transmitted over a network
CN103873604B (en) Network access method based on analysis of CDN data
CN103220161A (en) Method and device for detecting server status
WO2017096888A1 (en) Method and device for implementing domain name system
WO2017161965A1 (en) Method, device, and system for dynamic domain name system (dns) redirection
CN112261172A (en) Service addressing access method, device, system, equipment and medium
WO2015184799A1 (en) Network access method, network device and management server
CN108418847A (en) A kind of network traffic cache system, method and device
US9729652B2 (en) Dynamically affinitizing users to a version of a website
CN104702617A (en) Data distribution method and device based on CDN (content distribution network)
US11394687B2 (en) Fully qualified domain name (FQDN) determination
CN109818821A (en) A kind of detection method and device of website CDN framework

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 31/03/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17921151

Country of ref document: EP

Kind code of ref document: A1