CN106385469B - WHOIS querying method and device based on concurrent processing - Google Patents

WHOIS querying method and device based on concurrent processing Download PDF

Info

Publication number
CN106385469B
CN106385469B CN201610723340.6A CN201610723340A CN106385469B CN 106385469 B CN106385469 B CN 106385469B CN 201610723340 A CN201610723340 A CN 201610723340A CN 106385469 B CN106385469 B CN 106385469B
Authority
CN
China
Prior art keywords
whois
service
level
information
query
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610723340.6A
Other languages
Chinese (zh)
Other versions
CN106385469A (en
Inventor
金小刚
李枫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Renamed Polytron Technologies Inc
Original Assignee
Xiamen Renamed Polytron Technologies Inc
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 Xiamen Renamed Polytron Technologies Inc filed Critical Xiamen Renamed Polytron Technologies Inc
Priority to CN201610723340.6A priority Critical patent/CN106385469B/en
Publication of CN106385469A publication Critical patent/CN106385469A/en
Application granted granted Critical
Publication of CN106385469B publication Critical patent/CN106385469B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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
    • 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]

Abstract

The invention discloses a kind of WHOIS querying method based on concurrent processing, wherein method includes: to receive user data query request, obtains nslookup;According to nslookup suffix, level-one service provider address is obtained;The corresponding service node queue in level-one service provider address is found from default queue pond according to the level-one service provider address of acquisition;Service node is obtained from team's head of service node queue;Level-one service provider is sent by query service device by nslookup according to the information of service node and carries out WHOIS inquiry;Receive and parse through the level-one WHOIS information that the level-one service provider returns;Query result is returned to user, or goes secondary service quotient to inquire according to the level-one WHOIS information and returns to query result to user.The WHOIS querying method of kind of the invention based on concurrent processing realizes and provides the target that a unified inquiry entrance supports a variety of domain suffix to inquire and high concurrent is supported to handle.

Description

WHOIS querying method and device based on concurrent processing
Technical field
The present invention relates to field of computer technology, in particular to a kind of WHOIS querying method and dress based on concurrent processing It sets.
Background technique
With the rapid development of internet industry and the development of network economy mode, domain name system (DNS service) conduct One of important infrastructure of internet, DNS play more and more important function in information-intensive society.
WHOIS system is component part indispensable in current domain name system.Crucial duty as registration management mechanism One of can, WHOIS provides the inquiry in relation to domain name, domain name service quotient and host information towards all internet users.With Internet incorporates people's lives comprehensively, and the commercial value of domain name is gradually understood by people, the internet product as enterprise, mechanism One of board, product of online trademark protection indispensability, the protection of domain name is increasingly paid attention to, to the query demand cumulative year after year of domain name.
Currently, every kind of domain suffix is all there are many different domain name service quotient, these service providers respectively safeguard oneself WHOIS data provide WHOIS query interface, therefore cause the WHOIS query interface disunity of same suffix, WHOIS data It is dispersed in the status of each domain name service quotient.In addition, the query interface that each domain name service quotient provides usually all can be by the source ip Limitation enquiry frequency (such as one can only look into 50 times for ip mono- minute), to limit high concurrent inquiry.Therefore, it is concurrently looked into client In the case that inquiry amount is big, query result, or even inquiry failure are obtained when user needs to wait longer, data entire in this way are handed over Mutual flow path efficiency is too low, causes user experience poor.
Summary of the invention
It is an object of the invention to overcome the deficiencies in the prior art, propose that one kind overcomes the above problem or at least partly A kind of WHOIS querying method and device based on concurrent processing to solve the above problems realizes and provides a unified inquiry Entrance supports a variety of domain suffix to inquire and support the target of high concurrent processing.
The technical solution adopted by the present invention to solve the technical problems is:
A kind of WHOIS querying method based on concurrent processing, comprising:
User data query request is received, nslookup is obtained;
According to the nslookup suffix, level-one service provider address is obtained;
The corresponding service in level-one service provider address is found from default queue pond according to the level-one service provider address of acquisition Node queue;The queue pond is the Associate array being made of several key-value pairs, and level-one service provider address is the association The key of array, the service node queue are the value of the Associate array;
Service node is obtained from team's head of the service node queue;The service node includes one and query service device The RPC connection of foundation belongs to the IP for WHOIS inquiry of the query service device with one;
The level-one service is sent by query service device by the nslookup according to the information of the service node Quotient carries out WHOIS inquiry;
Receive and parse through the level-one WHOIS information that the level-one service provider returns;
Query result is returned to user, or goes secondary service quotient to inquire according to the level-one WHOIS information and returns to inquiry As a result user is given.
Preferably, the information according to the service node sends institute by query service device for the nslookup It states level-one service provider and carries out WHOIS inquiry, comprising:
Corresponding query service device is sent by nslookup by the RPC connection of foundation;
Query service device sends WHOIS inquiry request to level-one service provider using the IP of the inquiry in service node.
Preferably, the return query result goes secondary service quotient to inquire to user, or according to the level-one WHOIS information And query result is returned to user, specific steps are as follows:
Judge that there is no secondary service quotient information in the level-one WHOIS information, return to level-one WHOIS information to user;
Judge that there are secondary service quotient's information in the level-one WHOIS information, obtain two from the level-one WHOIS information Grade service provider address;Query information is sent to inquire to secondary service quotient address;Second level WHOIS information is returned to use Family.
Preferably, the creation method in the default queue pond, comprising:
Configuration file is read, the use of domain suffix list and its corresponding level-one service provider address, query service device is obtained In the IP set for WHOIS inquiry for establishing the address list of PRC connection, query service device;
The address list is traversed, a PRC is established with each query service device and connect;
The IP set is traversed, the service node queue being made of several service nodes is created;Each service node includes The PRC connection of the affiliated query service device of IP and IP in one IP set;
Level-one service provider address is traversed, the queue pond being made of several key-value pairs is created;Each key-value pair includes one The copy of the service node queue of a level-one service provider address and creation, wherein level-one service provider address is as key, The service node queue is as value.
Preferably, the transmission query information is inquired to secondary service quotient address, comprising:
Step 501, corresponding according to secondary service quotient's address search secondary service quotient address of acquisition in default queue pond Service node queue;
Step 502, judge in the default queue pond with the presence or absence of secondary service quotient address and corresponding service node team Column exist and execute step 504;There is no execute step 503;
Step 503, new key-value pair is created in the default queue pond;The key of the new key-value pair is described two Grade service provider address, value are the copy of the service node queue of creation;
Step 504, service node is obtained from team's head of the service node queue;
Step 505, the secondary service quotient is sent by the nslookup according to the information of the service node to carry out WHOIS inquiry;
Step 506, the second level WHOIS information that the secondary service quotient returns is received and parsed through.
Preferably, each query service device includes that the address for being used to establish PRC connection is used for WHOIS with several The IP address of inquiry.
Preferably, the address for establishing PRC connection includes IP and port numbers, the IP address for WHOIS inquiry In include IP for establishing PRC connection.
Preferably, it after the completion of inquiry, deletes the service node of the service node queue heads and is inserted into tail of the queue.
A kind of WHOIS querying method based on concurrent processing of the invention, WHOIS inquiry distribution host receive user data Inquiry request, and then get nslookup;According to the suffix of the nslookup got, level-one service provider address is got; The corresponding service node queue in level-one service provider address is found from default queue pond according to the level-one service provider address of acquisition; Service node is obtained from team's head of the service node queue, the service node includes one and establishes with query service device RPC connection belongs to the IP for WHOIS inquiry of the query service device with one, thus obtains one and arrives service provider Query path;The level-one service is sent by query service device by the nslookup according to the information of the service node Quotient carries out WHOIS inquiry;Receive and parse through the level-one WHOIS information that the level-one service provider returns;Query result is returned to use Family, or go secondary service quotient to inquire according to the level-one WHOIS information and return to query result to user.
According to another aspect of the invention, a kind of WHOIS inquiry unit based on concurrent processing is provided, comprising:
WHOIS inquiry request receiving module obtains nslookup for receiving user data query solicited message;
WHOIS inquiry request processing module, for obtaining level-one service provider address according to nslookup suffix;According to level-one Service provider address obtains corresponding service node queue from default queue pond;One is obtained from team's head of the service node queue Item is connect with the RPC that query service device is established and an IP service for WHOIS inquiry for belonging to the query service device saves Point;
WHOIS inquiry request sending module, for the information according to the service node by the nslookup by looking into It askes server and is sent to the level-one service provider progress WHOIS inquiry;
WHOIS inquiry response module, the level-one WHOIS information returned for receiving and parsing through the level-one service provider;It returns Query result is returned to user, or goes secondary service quotient to inquire according to the level-one WHOIS information and returns to query result to user.
Preferably, the WHOIS inquiry response module, specifically includes:
WHOIS inquiry response receiving unit, for receiving and parsing through the WHOIS of level-one service provider and secondary service quotient return Information;
WHOIS inquiry response judging unit, for judging in the level-one WHOIS information returned with the presence or absence of secondary service quotient Information;There is no secondary service quotient information to be sent to WHOIS inquiry response display module for WHOIS information, and there are secondary services Quotient's information sends information to WHOIS query-response process module;
WHOIS query-response process unit judges the level-one WHOIS returned for WHOIS inquiry response judgment module There are after secondary service quotient's information in information, corresponding service node is obtained from default queue pond according to secondary service quotient address Queue creates the service node queue that new key is secondary service quotient address in default queue pond;From the service Team one RPC established with query service device of head acquisition of node queue is connect and one belongs to being used for for the query service device The IP service node of WHOIS inquiry;
Second level WHOIS inquiry request transmission unit, for being led to the nslookup according to the information of the service node It crosses query service device and is sent to the secondary service quotient progress WHOIS inquiry;
WHOIS inquiry response display unit, the WHOIS information for will inquire return to user.
Technical solution provided by the invention has the benefit that
When initialization, the default queue pond being made of the Associate array that several key-value pairs form, for storage service quotient Location and service node queue;Each service node include one with query service device establish RPC connect and one belong to described in The IP for WHOIS inquiry of query service device;When WHOIS is inquired, query service device is connected to by RPC, according to WHOIS inquiry is sent service provider by the IP of WHOIS inquiry;By using queue pond, an inquiry request can be transmitted multiple Any one in query service device, sends service for inquiry request by one in multiple IP of either query server Quotient, to realize concurrent processing, the use of queue ensure that each inquiry IP is equably used;One unified inquiry is provided Entrance supports various domain names that different service providers is gone to inquire WHOIS information, there are when secondary service quotient, directly passes through queue Chi Zhongyi The inquiry of existing key assignments Dui Qu service provider or the key-value pair for adding secondary service quotient in real time go to service provider to inquire.To sum up, of the invention It realizes and the target that a unified inquiry entrance supports a variety of domain suffix to inquire and high concurrent is supported to handle is provided, improve Search efficiency and user experience.
The above description is only an overview of the technical scheme of the present invention, in order to more clearly understand technology hand of the invention Section, so as to be implemented in accordance with the contents of the specification, and in order to allow above and other objects, features and advantages of the invention It can be more clearly understood, be exemplified below a specific embodiment of the invention.
According to the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will be brighter Above-mentioned and other purposes of the invention, advantages and features.
Detailed description of the invention
Fig. 1 is the integrated stand composition of the WHOIS inquiry of the invention based on concurrent processing;
Fig. 2 is the main flow chart of the method for the present invention;
Fig. 3 is the flow chart of a preferred embodiment of the method for the present invention;
Fig. 4 is the structural schematic diagram of apparatus of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
It should be noted that the executing subject of the method for present embodiment is terminal, the terminal can be mobile phone, plate The equipment such as computer, palm PC PDA, notebook or desktop computer, it is, of course, also possible to be other equipment with identity function, this Embodiment is without restriction.In subsequent description, the executing subject of the method for the present invention is known as WHOIS inquiry distribution host.
The integrated stand composition of WHOIS inquiry to be of the invention based on concurrent processing as shown in Figure 1, entire WHOIS inquiry Including WHOIS client, WHOIS inquiry distribution host, several query service devices and several WHOIS service providers.
It is connected specifically, the WHOIS client establishes HTTP with WHOIS inquiry distribution host, the WHOIS is looked into Distribution host is ask to establish a PRC by port and IP with each query service device and connect, the query service device pass through IP and The WHOIS service provider establishes communication.In the present embodiment, each query service device includes several IP availables, each IP available It can establish and communicate with all WHOIS service providers;WHOIS service provider includes level-one service provider and secondary service quotient.
Further, the WHOIS client issues data inquiry request by WHOIS WEB interface, and the WHOIS is looked into Distribution host receiving data inquiry request is ask, nslookup is obtained;The WHOIS inquiry distribution host is connected by the PRC established It connects and sends corresponding query service device for inquiry request, the query service device is according to preset processing method by inquiry request It is sent to corresponding WHOIS service provider.
Referring to fig. 2, a kind of WHOIS querying method based on concurrent processing of the invention, includes the following steps:
Step 201: receiving user data query request, obtain nslookup.
It will be appreciated that user, which triggers WHOIS inquiry request, to carry out in several ways, and such as: pass through mouse point Hit client interaction triggering element, or on the touchscreen click client interaction triggering element, present embodiment to this not It limits.
Step 202: according to the nslookup suffix, obtaining level-one service provider address.
Step 203: level-one service provider address pair is found from default queue pond according to the level-one service provider address of acquisition The service node queue answered;The queue pond is the Associate array being made of several key-value pairs, and level-one service provider address is The key of the Associate array, the service node queue are the value of the Associate array.
Specifically, the creation method in the default queue pond, comprising: read configuration file, obtain domain suffix list and Its corresponding level-one service provider address, query service device for establishing the address list of PRC connection, query service device is used for The IP set of WHOIS inquiry;The address list is traversed, a PRC is established with each query service device and connect;Traverse the IP Set creates the service node queue being made of several service nodes;Each service node includes in the IP set The PRC connection of the affiliated query service device of IP and IP;Level-one service provider address is traversed, creation is made of several key-value pairs Queue pond;Each key-value pair includes the copy of the service node queue of a level-one service provider address and creation, wherein Level-one service provider address is as key, and the service node queue is as value.
Step 204: obtaining service node from team's head of the service node queue;The service node include one with look into Ask the IP for WHOIS inquiry that the RPC connection that server is established belongs to the query service device with one.
Step 205: being sent the nslookup to by query service device according to the information of the service node described Level-one service provider carries out WHOIS inquiry.
It is taken specifically, WHOIS inquiry distribution host sends corresponding inquiry for nslookup by the RPC connection established Business device;Query service device sends WHOIS inquiry request to level-one service provider using the IP of the inquiry in service node.
Step 206: receiving and parsing through the level-one WHOIS information that the level-one service provider returns.
Specifically, level-one service provider, which returns to the level-one WHOIS information inquired, gives query service device, query service device passes through PRC is sent to WHOIS inquiry distribution host;WHOIS inquiry distribution aster Resolution level-one WHOIS information.
Step 207: returning to query result to user, or secondary service quotient inquiry is gone simultaneously according to the level-one WHOIS information Query result is returned to user.
Specifically, judging that there is no when secondary service quotient information, return to level-one WHOIS letter in the level-one WHOIS information It ceases to user;Judge to obtain from the level-one WHOIS information in the level-one WHOIS information there are when secondary service quotient's information Take secondary service quotient address;Query information is sent to inquire to secondary service quotient address;Second level WHOIS information is returned to give User.
The present invention is based in the embodiment of the WHOIS querying method of concurrent processing, WHOIS inquiry distribution host receives user Data inquiry request, and then get nslookup;According to the suffix of the nslookup got, with getting level-one service provider Location;The corresponding service node team in level-one service provider address is found from default queue pond according to the level-one service provider address of acquisition Column;Service node is obtained from team's head of the service node queue, the service node includes one and establishes with query service device RPC connection and one belong to the query service device for WHOIS inquiry IP, thus obtain one to service provider Query path;The level-one is sent by query service device for the nslookup according to the information of the service node to take Business quotient carries out WHOIS inquiry;Receive and parse through the level-one WHOIS information that the level-one service provider returns;Query result is returned to give User, or go secondary service quotient to inquire according to the level-one WHOIS information and return to query result to user.
It is clearer to illustrate to become apparent from the WHOIS querying method based on concurrent processing of the embodiment of the present invention, now with One specific flow chart is described.Fig. 3 show according to a preferred embodiment of the present invention based on concurrent processing WHOIS querying method flow chart.Referring to Fig. 3, method is included at least:
Step 301: receiving the data inquiry request that user is sent by HTTP, obtain nslookup.
Step 302: according to the nslookup suffix, obtaining level-one service provider address.
Specifically, can be obtained by configuration file.
Step 303: level-one service provider address pair is found from default queue pond according to the level-one service provider address of acquisition The service node queue answered;The queue pond is the Associate array being made of several key-value pairs, and level-one service provider address is The key of the Associate array, the service node queue are the value of the Associate array.
Specifically, the default queue pond is created in program initialization, specific creation method includes: to read configuration text Part obtains the address for being used to establish PRC connection of domain suffix list and its corresponding level-one service provider address, query service device List, query service device for WHOIS inquiry IP set;The address list is traversed, is established with each query service device One PRC connection;The IP set is traversed, the service node queue being made of several service nodes is created;Each service node PRC connection including the affiliated query service device of IP and IP in an IP set;With traversing the level-one service provider Location creates the queue pond being made of several key-value pairs;Each key-value pair includes a level-one service provider address and creation The copy of service node queue, wherein level-one service provider address is as key, the service node queue is as value.
Step 304: obtaining service node from team's head of the service node queue;The service node include one with look into Ask the IP for WHOIS inquiry that the RPC connection that server is established belongs to the query service device with one.
Step 305: being sent the nslookup to by query service device according to the information of the service node described Level-one service provider carries out WHOIS inquiry.
Step 306: receiving and parsing through the level-one WHOIS information that the level-one service provider returns.
Step 307: judging in the level-one WHOIS information returned with the presence or absence of secondary service quotient information.
Specifically, whether there is secondary service quotient information in the result that judgement returns, it is not present, executes step 314, returns Level-one WHOIS information is to user;In the presence of, obtain level-one WHOIS information in secondary service quotient address, execute step 308.
Step 308: corresponding according to secondary service quotient's address search secondary service quotient address of acquisition in default queue pond Service node queue.
Specifically, searching corresponding service node queue in default queue pond using secondary service quotient address as key.
Step 309: judging that the corresponding service node queue in secondary service quotient address whether there is.
Specifically, being executed if the corresponding service node queue in secondary service quotient address is not present in default queue pond Step 310, no to then follow the steps 311.
Step 310: creating new key-value pair in default queue pond.
Specifically, the key of the new key-value pair is secondary service quotient address, when value is default queue creation The copy of the service node queue created.
Step 311, service node is obtained from team's head of the service node queue;
Step 312, the secondary service quotient is sent by the nslookup according to the information of the service node to carry out WHOIS inquiry;
Step 313, the second level WHOIS information that the secondary service quotient returns is received and parsed through.
Specifically, executing step 314, second level WHOIS information is returned to user.
Step 314: the page shows processing result.
Specifically, showing level-one WHOIS information to user if what is returned is level-one WHOIS information;If returned It is second level WHOIS information, then shows second level WHOIS information to user.
Based on the same inventive concept, the embodiments of the present invention also provide a kind of, and the WHOIS based on concurrent processing inquires dress It sets, for supporting the WHOIS querying method based on concurrent processing of above preferred embodiment.Fig. 4 shows according to the present invention one The structural schematic diagram of the WHOIS inquiry unit based on concurrent processing of a embodiment.Referring to fig. 4, the WHOIS inquiry unit packet It includes:
WHOIS inquiry request receiving module 401 obtains nslookup for receiving user data query solicited message;
WHOIS inquiry request processing module 402, for obtaining level-one service provider address according to nslookup suffix;According to Level-one service provider address obtains corresponding service node queue from default queue pond;It is obtained from team's head of the service node queue It takes one to connect with the RPC of query service device foundation and an IP for WHOIS inquiry for belonging to the query service device takes Business node;
WHOIS inquiry request sending module 403, for being passed through the nslookup according to the information of the service node Query service device is sent to the level-one service provider and carries out WHOIS inquiry;
WHOIS inquiry response module 404, the level-one WHOIS information returned for receiving and parsing through the level-one service provider; Query result is returned to user, or goes secondary service quotient to inquire according to the level-one WHOIS information and returns to query result to use Family.
Further, the WHOIS inquiry response module, comprising:
WHOIS inquiry response receiving unit, for receiving and parsing through the WHOIS of level-one service provider and secondary service quotient return Information;
WHOIS inquiry response judging unit, for judging in the level-one WHOIS information returned with the presence or absence of secondary service quotient Information;There is no secondary service quotient information to be sent to WHOIS inquiry response display module for WHOIS information, and there are secondary services Quotient's information sends information to WHOIS query-response process module;
WHOIS query-response process unit judges the level-one WHOIS returned for WHOIS inquiry response judgment module There are after secondary service quotient's information in information, corresponding service node is obtained from default queue pond according to secondary service quotient address Queue creates the service node queue that new key is secondary service quotient address in default queue pond;From the service Team one RPC established with query service device of head acquisition of node queue is connect and one belongs to being used for for the query service device The IP service node of WHOIS inquiry;
Second level WHOIS inquiry request transmission unit, for being led to the nslookup according to the information of the service node It crosses query service device and is sent to the secondary service quotient progress WHOIS inquiry;
WHOIS inquiry response display unit, the WHOIS information for will inquire return to user.
When the present invention initializes, the default queue pond being made of the Associate array that several key-value pairs form, for storing clothes Be engaged in quotient address and service node queue;Each service node include one with query service device establish RPC connect and one belong to In the IP for WHOIS inquiry of the query service device;When WHOIS is inquired, query service device is connected to by RPC, Service provider is sent by WHOIS inquiry according to the IP of WHOIS inquiry;By using queue pond, an inquiry request be can be transmitted Any one in multiple queries server, is sent inquiry request to by one in multiple IP of either query server Service provider, to realize concurrent processing, the use of queue ensure that each inquiry IP is equably used;There is provided one it is unified Inquiry entrance supports various domain names that different service providers is gone to inquire WHOIS information, there are when secondary service quotient, directly passes through queue pond In already present key assignments Dui Qu service provider inquiry or in real time addition secondary service quotient key-value pair go to service provider to inquire.To sum up institute It states, the present invention, which realizes, provides the mesh that a unified inquiry entrance supports a variety of domain suffix to inquire and high concurrent is supported to handle Mark, improves search efficiency and user experience.
The above description is only an overview of the technical scheme of the present invention, in order to more clearly understand technology hand of the invention Section, so as to be implemented in accordance with the contents of the specification, and in order to allow above and other objects, features and advantages of the invention It can be more clearly understood, be exemplified below a specific embodiment of the invention.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (8)

1. a kind of WHOIS querying method based on concurrent processing characterized by comprising
User data query request is received, nslookup is obtained;
According to the nslookup suffix, level-one service provider address is obtained;
The corresponding service node in level-one service provider address is found from default queue pond according to the level-one service provider address of acquisition Queue;The queue pond is the Associate array being made of several key-value pairs, and level-one service provider address is the Associate array Key, the service node queue be the Associate array value;
Service node is obtained from team's head of the service node queue;The service node includes one and establishes with query service device RPC connection and one belong to the query service device for WHOIS inquiry IP;The query service device includes several It is a;Each query service device includes an address for establishing PRC connection and several IP inquired for WHOIS Location;
According to the information of the service node by the nslookup by query service device be sent to the level-one service provider into Row WHOIS inquiry;
Receive and parse through the level-one WHOIS information that the level-one service provider returns;
Query result is returned to user, or goes secondary service quotient to inquire according to the level-one WHOIS information and returns to query result To user;
After the completion of inquiry, deletes the service node of the service node queue heads and be inserted into tail of the queue.
2. the WHOIS querying method according to claim 1 based on concurrent processing, which is characterized in that described according to The information of service node sends the level-one service provider by query service device for the nslookup and carries out WHOIS inquiry, Include:
Corresponding query service device is sent by nslookup by the RPC connection of foundation;
Query service device sends WHOIS inquiry request to level-one service provider using the IP of the inquiry in service node.
3. the WHOIS querying method according to claim 2 based on concurrent processing, which is characterized in that the return inquiry As a result user is given, or goes secondary service quotient to inquire according to the level-one WHOIS information and returns to query result to user, specific step Suddenly are as follows:
Judge that there is no secondary service quotient information in the level-one WHOIS information, return to level-one WHOIS information to user;
Judge that there are secondary service quotient's information in the level-one WHOIS information, second level clothes are obtained from the level-one WHOIS information Business quotient address;Query information is sent to inquire to secondary service quotient address;Second level WHOIS information is returned to user.
4. the WHOIS querying method according to claim 3 based on concurrent processing, which is characterized in that the default queue The creation method in pond, comprising:
Read configuration file, obtain domain suffix list and its corresponding level-one service provider address, query service device for building The address list of vertical PRC connection, the IP for WHOIS inquiry of query service device gather;
The address list is traversed, a PRC is established with each query service device and connect;
The IP set is traversed, the service node queue being made of several service nodes is created;Each service node includes one The PRC connection of the affiliated query service device of IP and IP in the IP set;
Level-one service provider address is traversed, the queue pond being made of several key-value pairs is created;Each key-value pair includes an institute The copy of the service node queue of level-one service provider address and creation is stated, wherein level-one service provider address is as key, it is described Service node queue is as value.
5. the WHOIS querying method according to claim 4 based on concurrent processing, which is characterized in that the transmission inquiry Information is inquired to secondary service quotient address, comprising:
Step 501, according to the corresponding clothes in secondary service quotient address search secondary service quotient address of acquisition in default queue pond Be engaged in node queue;
Step 502, judge to deposit in the default queue pond with the presence or absence of secondary service quotient address and corresponding service node queue Executing step 504;There is no execute step 503;
Step 503, new key-value pair is created in the default queue pond;The key of the new key-value pair is second level clothes Business quotient address, value are the copy of the service node queue of creation;
Step 504, service node is obtained from team's head of the service node queue;
Step 505, the secondary service quotient is sent for the nslookup according to the information of the service node and carries out WHOIS Inquiry;
Step 506, the second level WHOIS information that the secondary service quotient returns is received and parsed through.
6. the WHOIS querying method according to claim 5 based on concurrent processing, it is characterised in that: described for establishing The address of PRC connection includes IP and port numbers, includes the IP for establishing PRC connection in the IP address for WHOIS inquiry.
7. a kind of WHOIS inquiry unit based on concurrent processing characterized by comprising
WHOIS inquiry request receiving module obtains nslookup for receiving user data query solicited message;
WHOIS inquiry request processing module, for obtaining level-one service provider address according to nslookup suffix;According to level-one service Quotient address obtains corresponding service node queue from default queue pond;From the team of service node queue head obtain one with The RPC connection that query service device is established belongs to the IP service node for WHOIS inquiry of the query service device with one;Institute Stating query service device includes several;Each query service device include one for establish PRC connection address and several IP address for WHOIS inquiry;
WHOIS inquiry request sending module, for the nslookup to be passed through inquiry clothes according to the information of the service node Business device is sent to the level-one service provider and carries out WHOIS inquiry;
WHOIS inquiry response module, the level-one WHOIS information returned for receiving and parsing through the level-one service provider;Return is looked into Result is ask to user, or goes secondary service quotient to inquire according to the level-one WHOIS information and returns to query result to user;
After the completion of inquiry, deletes the service node of the service node queue heads and be inserted into tail of the queue.
8. the WHOIS inquiry unit according to claim 7 based on concurrent processing, which is characterized in that the WHOIS inquiry Respond module, comprising:
WHOIS inquiry response receiving unit, for receiving and parsing through the WHOIS letter of level-one service provider and secondary service quotient return Breath;
WHOIS inquiry response judging unit, for judge return level-one WHOIS information in the presence or absence of secondary service quotient believe Breath;There is no secondary service quotient information to be sent to WHOIS inquiry response display module for WHOIS information, and there are secondary service quotient Information sends information to WHOIS query-response process module;
WHOIS query-response process unit judges the level-one WHOIS information returned for WHOIS inquiry response judgment module In there are after secondary service quotient's information, corresponding service node queue is obtained from default queue pond according to secondary service quotient address Or the service node queue that new key is secondary service quotient address is created in default queue pond;From the service node Team one RPC established with query service device of head acquisition of queue is connect and one belongs to being used for for the query service device The IP service node of WHOIS inquiry;
Second level WHOIS inquiry request transmission unit, for the information according to the service node by the nslookup by looking into It askes server and is sent to the secondary service quotient progress WHOIS inquiry;
WHOIS inquiry response display unit, the WHOIS information for will inquire return to user.
CN201610723340.6A 2016-08-25 2016-08-25 WHOIS querying method and device based on concurrent processing Active CN106385469B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610723340.6A CN106385469B (en) 2016-08-25 2016-08-25 WHOIS querying method and device based on concurrent processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610723340.6A CN106385469B (en) 2016-08-25 2016-08-25 WHOIS querying method and device based on concurrent processing

Publications (2)

Publication Number Publication Date
CN106385469A CN106385469A (en) 2017-02-08
CN106385469B true CN106385469B (en) 2019-08-13

Family

ID=57916947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610723340.6A Active CN106385469B (en) 2016-08-25 2016-08-25 WHOIS querying method and device based on concurrent processing

Country Status (1)

Country Link
CN (1) CN106385469B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737586B (en) * 2017-04-20 2021-09-28 互联网域名系统北京市工程研究中心有限公司 Disaster recovery switching method and device for domain name query service
CN110401686B (en) * 2018-04-25 2022-06-14 北京中域智科国际网络技术有限公司 WHOIS query method, device, equipment and storage medium thereof
CN111813826A (en) * 2020-06-02 2020-10-23 深圳市互联工场科技有限公司 WHOIS query method, system and storage medium
CN113378031B (en) * 2021-06-24 2022-06-28 深圳海域信息技术有限公司 WHOIS query method and system based on global network distributed processing

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924799A (en) * 2009-06-15 2010-12-22 北京华智大为科技有限公司 Method and system for querying information of domain name
CN102340549A (en) * 2010-07-22 2012-02-01 中国移动通信集团公司 Domain name resolution method and device
CN102831156A (en) * 2012-06-29 2012-12-19 浙江大学 Distributed transaction processing method on cloud computing platform
CN105812488A (en) * 2016-05-06 2016-07-27 深圳前海大数点科技有限公司 Cloud computing distributed service cluster system and method of using the system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9015279B2 (en) * 2007-06-15 2015-04-21 Bryte Computer Technologies Methods, systems, and computer program products for tokenized domain name resolution

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924799A (en) * 2009-06-15 2010-12-22 北京华智大为科技有限公司 Method and system for querying information of domain name
CN102340549A (en) * 2010-07-22 2012-02-01 中国移动通信集团公司 Domain name resolution method and device
CN102831156A (en) * 2012-06-29 2012-12-19 浙江大学 Distributed transaction processing method on cloud computing platform
CN105812488A (en) * 2016-05-06 2016-07-27 深圳前海大数点科技有限公司 Cloud computing distributed service cluster system and method of using the system

Also Published As

Publication number Publication date
CN106385469A (en) 2017-02-08

Similar Documents

Publication Publication Date Title
CN106385469B (en) WHOIS querying method and device based on concurrent processing
US8495081B2 (en) Method, system and computer program product for federating tags across multiple systems
US8543653B2 (en) Systems and methods for business network management discovery and consolidation
US20080215589A1 (en) System, Method, and Computer-Readable Medium for Collection and Distribution of User-Supplied Comments Associated with Network and Local Content
KR20100048571A (en) Method, apparatus and system for providing muti user-multi service
US8676880B2 (en) Server apparatus, communication apparatus, and method for generating navigation information
US20190394632A1 (en) Method and system for storing contact information in a network contact database
CN103037029B (en) Binding registration based domain name WHOIS query method and binding registration based domain name WHOIS service system
CN102447734A (en) Cloud service method for taxation cloud computing network billing IM (Instant Messaging) online customer system
CN101924799A (en) Method and system for querying information of domain name
CN108282525A (en) Video resource based on peer-to-peer network manages system and method
CN107992350B (en) Method and device for generating configuration overview page
CN101551813A (en) Network connection apparatus, search equipment and method for collecting search engine data source
CN103412913A (en) Associated search method and associated search system
KR101216689B1 (en) Sns integrated management system and method
US9935989B2 (en) System and apparatus for user communications
CN101377833A (en) User mutual intercommunion method for access internet through browsers
CN103365903B (en) A kind of method, apparatus and system obtaining structural data for search engine
CN112783842B (en) Log collection method and device
JP2007286768A (en) Information providing system, information providing program and server device
CN104052780A (en) Social public security video information retrieval and service system based on convergence of three networks
KR20150132647A (en) Method and system for notifying of online posting
CN102891763A (en) Method and device for acquiring CIM (Common Information Model) resource
CN101924644A (en) Method and system for information interaction through domain name
KR102361405B1 (en) Electronic map based dataset linked web page production system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant