CN112887446B - Domain name processing method, device and domain name server - Google Patents

Domain name processing method, device and domain name server Download PDF

Info

Publication number
CN112887446B
CN112887446B CN202110092876.3A CN202110092876A CN112887446B CN 112887446 B CN112887446 B CN 112887446B CN 202110092876 A CN202110092876 A CN 202110092876A CN 112887446 B CN112887446 B CN 112887446B
Authority
CN
China
Prior art keywords
domain name
processed
processing
settlement
server
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
CN202110092876.3A
Other languages
Chinese (zh)
Other versions
CN112887446A (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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
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 Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202110092876.3A priority Critical patent/CN112887446B/en
Publication of CN112887446A publication Critical patent/CN112887446A/en
Application granted granted Critical
Publication of CN112887446B publication Critical patent/CN112887446B/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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a domain name processing method, a domain name processing device and a domain name server, which are characterized in that firstly, a settlement instruction which is sent by a user and aims at a plurality of domain names to be processed is received, then the settlement instruction is sent to an order server, a settlement interface is provided for the user through the order server, and if the user finishes settlement, a message of finishing settlement is sent to a message queue; finally, processing a plurality of domain names to be processed through the message queue, and returning the processing states of the plurality of domain names to be processed to the user; in the mode, after the user finishes the settlement of the domain names to be processed, the order server sends the message of finishing the settlement of the user to the message queue, the domain names to be processed are processed through the message queue, and the user can acquire the actual processing state of each domain name to be processed in time without waiting for the completion of the processing of the domain names to be processed, so that the waiting time of the user is reduced, and the user experience is improved.

Description

Domain name processing method, device and domain name server
Technical Field
The present invention relates to the field of domain name processing technologies, and in particular, to a domain name processing method, device and domain name server.
Background
In the related art, a user may need to perform batch processing on a plurality of domain names, for example, batch registering a plurality of domain names or batch transferring to a plurality of domain names; taking batch registration of multiple domain names as an example, when a user needs to register multiple domain names through a domain name system server at the same time and the multiple domain names are in a registrable state, the domain name system server can call a domain name registration interface of a domain name provider server to synchronously and serially register the multiple domain names.
Disclosure of Invention
The invention aims to provide a domain name processing method, a domain name processing device and a domain name server, so that waiting time for a user to acquire processing results for processing a plurality of domain names is shortened, and user experience is improved.
The invention provides a domain name processing method, which is applied to a domain name server; the domain name server is in communication connection with the order server; the method comprises the following steps: receiving a settlement instruction which is sent by a user and aims at a plurality of domain names to be processed; sending the settlement instruction to the order server so as to provide a settlement interface for the user through the order server, and sending a settlement completed message to a message queue if the user finishes settlement; processing the plurality of domain names to be processed through the message queue, and returning the processing states of the plurality of domain names to be processed to the user; wherein the processing state includes processing success, processing failure, or processing wait.
Further, the step of sending the settlement instruction to the order server to provide a settlement interface for the user through the order server, and if the user finishes settlement, sending a settlement completed message to a message queue comprises: invoking a commodity creation interface of the order server, and sending the settlement instruction to the order server through the commodity creation interface so as to generate identification information corresponding to each domain name to be processed through the order server; receiving the identification information corresponding to each domain name to be processed returned by the order server; splicing the identification information corresponding to each domain name to be processed to a preset link address so as to provide the settlement interface for the user, and if the user finishes settlement, sending the settlement completed message to the message queue.
Further, the domain name server is in communication connection with a domain name provider server; the step of processing the plurality of domain names to be processed through the message queue includes: acquiring the settlement completed message from the message queue; for each domain name to be processed, calling a domain name processing interface corresponding to the domain name provider server to process the current domain name to be processed through the domain name provider server; receiving domain name processing information and prompt information of the current domain name to be processed returned by the domain name provider server, wherein the prompt information is used for indicating whether the current domain name to be processed is successfully processed or not; and if the prompt information indicates that the current domain name to be processed is successfully processed, storing domain name processing information of the current domain name to be processed.
Further, the step of returning the processing states of the plurality of domain names to be processed to the user includes: and if receiving a message that the processing of the current domain name to be processed is successful or failed, updating the processing state of the current domain name to be processed from processing waiting to processing success or processing failure aiming at each domain name to be processed.
Further, the domain name to be processed includes: a domain name to be registered, a domain name to be charged or a domain name to be transferred.
The invention provides a domain name processing device, which is arranged on a domain name server; the domain name server is in communication connection with the order server; the device comprises: the receiving module is used for receiving settlement instructions aiming at a plurality of domain names to be processed, which are sent by a user; the sending module is used for sending the settlement instruction to the order server so as to provide a settlement interface for the user through the order server, and if the user finishes settlement, the message of finishing settlement is sent to a message queue; the processing module is used for processing the domain names to be processed through the message queue and returning the processing states of the domain names to be processed to the user; wherein the processing state includes processing success, processing failure, or processing wait.
Further, the sending module is further configured to: invoking a commodity creation interface of the order server, and sending the settlement instruction to the order server through the commodity creation interface so as to generate identification information corresponding to each domain name to be processed through the order server; receiving the identification information corresponding to each domain name to be processed returned by the order server; splicing the identification information corresponding to each domain name to be processed to a preset link address so as to provide the settlement interface for the user, and if the user finishes settlement, sending the settlement completed message to the message queue.
Further, the domain name server is in communication connection with a domain name provider server; the processing module is further configured to: acquiring the settlement completed message from the message queue; for each domain name to be processed, calling a domain name processing interface corresponding to the domain name provider server to process the current domain name to be processed through the domain name provider server; receiving domain name processing information and prompt information of the current domain name to be processed returned by the domain name provider server, wherein the prompt information is used for indicating whether the current domain name to be processed is successfully processed or not; and if the prompt information indicates that the current domain name to be processed is successfully processed, storing domain name processing information of the current domain name to be processed.
The domain name server comprises a processor and a memory, wherein the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to realize the domain name processing method of any one of the above.
The present invention provides a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement a domain name processing method according to any one of the preceding claims.
The invention provides a domain name processing method, a domain name processing device and a domain name server, which are characterized in that firstly, a settlement instruction which is sent by a user and aims at a plurality of domain names to be processed is received, then the settlement instruction is sent to an order server, a settlement interface is provided for the user through the order server, and if the user finishes settlement, a message of finishing settlement is sent to a message queue; finally, processing a plurality of domain names to be processed through the message queue, and returning the processing states of the plurality of domain names to be processed to the user; in the mode, after the user finishes the settlement of the domain names to be processed, the order server sends the message of finishing the settlement of the user to the message queue, the domain names to be processed are processed through the message queue, and the user can acquire the actual processing state of each domain name to be processed in time without waiting for the completion of the processing of the domain names to be processed, so that the waiting time of the user is reduced, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a domain name processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another domain name processing method according to an embodiment of the present invention;
FIG. 3 is a flowchart of another domain name processing method according to an embodiment of the present invention;
fig. 4 is a flowchart of a domain name registration method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a domain name processing device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a domain name server according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be clearly and completely described in connection with the embodiments, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the related art, a user may need to perform domain name registration, domain name renewal, domain name transfer, etc. on one or more domain names; taking the domain name registration as an example, when a user needs to register a domain name to be registered through a domain name server, the domain name server calls a domain name query interface of a domain name provider server to query whether the domain name to be registered is registered, if the domain name to be registered is in a registrable state, the domain name server calls a domain name registration interface of the domain name provider server again to register the domain name to be registered, then domain name data after the completion of the registration is stored in a database, and if the number of the domain names to be registered is one, the processing speed of the domain name registration is fast; however, if the number of the domain names to be registered is multiple, that is, multiple domain names are registered at the same time, the domain name server invokes the domain name registration interface of the domain name provider server to perform synchronous serial registration on the multiple domain names to be registered, that is, after one domain name to be registered is registered, the next domain name to be registered is registered, the processing time is long, and if the registration of a domain name to be registered fails, since other domain names to be registered may exist behind the domain name to be registered, the other domain names to be registered will be preferentially processed, so that the error information of the domain name to be registered cannot be fed back in time.
Therefore, in the related art, when registering a plurality of domain names in batches, the domain name server has a slower processing speed and a longer processing time, which is easy to cause system congestion, and a user needs to wait for a longer time to acquire whether the plurality of domain names are successfully registered, so that user experience is reduced. Based on the above, the embodiment of the invention provides a domain name processing method, a domain name processing device and a domain name server, and the technology can be applied to applications requiring batch processing of a plurality of domain names, in particular to applications such as batch registration and batch transfer of domain names.
For the convenience of understanding the present embodiment, a domain name processing method disclosed in the present embodiment is first described in detail; the method is applied to a domain name server; the domain name server is in communication connection with the order server; in actual implementation, the domain name server may be understood as a server of a domain name system of a domain name service facilitator; the domain name service intermediate can select any domain name registrar as the bottom layer support to provide services such as domain name registration for users; the order server can be understood as a server of an order system, and the whole payment flow can be completed through the order system, including order confirmation, order payment and the like; as shown in fig. 1, the method comprises the steps of:
Step S102, receiving a settlement instruction for a plurality of domain names to be processed, which is sent by a user.
The domain name to be processed can be understood as a domain name which needs settlement processing by a user, such as a domain name to be registered, a domain name to be transferred or a domain name to be charged, and the number of the domain names to be processed can be multiple; the above-mentioned settlement instruction can be understood as a corresponding instruction issued when the user needs to settle a plurality of domain names to be processed; in actual implementation, after a user selects a plurality of domain names to be processed, a settlement instruction for the plurality of domain names to be processed can be sent to a domain name server; for example, taking a domain name to be processed as a domain name to be registered, when a user needs to register a plurality of domain names, the user can select the plurality of domain names through a front end page of a domain name system, including a domain name prefix, a domain name suffix, a registration period and the like of each domain name, so as to determine a plurality of domain names to be registered, when the determined plurality of domain names to be registered are in a registrable state, the domain names to be registered can be added to a shopping cart, and when the user confirms the selected plurality of domain names to be registered in the shopping cart, the shopping cart can be submitted to send a settlement instruction for the plurality of domain names to be registered to a domain name server.
Step S104, the settlement instruction is sent to the order server to provide a settlement interface for the user through the order server, and if the user finishes settlement, the settlement completion message is sent to the message queue.
The above-mentioned settlement interface may be understood as an interface that enables a user to perform a settlement operation, for example, the settlement interface may be a settlement page or a payment page, etc.; the message queue can be understood as a container for storing messages in the process of transmitting the messages, the message queue can be used for providing routing and ensuring the transmission of the messages, if a receiver is unavailable when the messages are transmitted, the message queue can hold the messages until the messages can be successfully transmitted, and asynchronous concurrent processing of the messages can be realized through the message queue; in actual implementation, after receiving a settlement instruction for a plurality of domain names to be processed sent by a user, the domain name server can send the settlement instruction to the order server, the order server provides a settlement interface for the user based on the settlement instruction, the user can perform corresponding settlement operation through the settlement interface, and after settlement is completed, the order server can send a message of completion of settlement of the user to the message queue.
Step S106, processing a plurality of domain names to be processed through a message queue, and returning the processing states of the plurality of domain names to be processed to a user; wherein the processing status includes processing success, processing failure, or processing wait.
If the processing state of the domain name to be processed is processing waiting, it may be understood that the domain name server has not started processing the domain name to be processed, or may have started processing the domain name to be processed, but the whole processing process of the domain name to be processed has not been completed, that is, a final result of successful processing or failure processing of the domain name to be processed has not been received. In actual implementation, after the message of user settlement completion is sent to the message queue through the order server, a plurality of domain names to be processed can be processed asynchronously through the message queue, and the processing state of each domain name to be processed is returned to the user, and the user can check the processing state of each domain name to be processed in time on a front-end page, for example, the processing is successful, the processing is failed or the processing is waiting; for example, taking a domain name to be registered as an example, after a message of user settlement completion is sent to a message queue through an order server, a plurality of domain names to be registered can be registered through the message queue, and a processing state of each domain name to be registered is returned to a user, for example, taking the number of the domain names to be registered as three as an example, firstly, a first domain name to be registered is registered, if the first domain name to be registered is successful, the processing states of a second domain name to be registered and a third domain name to be registered may be registration waiting, if the second domain name to be registered fails, the processing states of the second domain name to be registered are updated from registration waiting to registration failure, and the user can acquire the processing state of each domain name to be registered in time on a front page.
The domain name processing method comprises the steps of firstly receiving a settlement instruction which is sent by a user and aims at a plurality of domain names to be processed, then sending the settlement instruction to an order server so as to provide a settlement interface for the user through the order server, and sending a message of settlement completion to a message queue if the user finishes settlement; finally, processing a plurality of domain names to be processed through the message queue, and returning the processing states of the plurality of domain names to be processed to the user; in the mode, after the user finishes the settlement of the domain names to be processed, the order server sends the message of finishing the settlement of the user to the message queue, the domain names to be processed are processed through the message queue, and the user can acquire the actual processing state of each domain name to be processed in time without waiting for the completion of the processing of the domain names to be processed, so that the waiting time of the user is reduced, and the user experience is improved.
The embodiment of the invention also provides another domain name processing method, which is realized on the basis of the method of the embodiment; the method focuses on the specific process of sending a settlement instruction to an order server to provide a settlement interface for a user through the order server, and if the user finishes settlement, sending a message of finishing settlement to a message queue, wherein the specific process corresponds to the following steps S204 to S208, as shown in FIG. 2, and the method comprises the following steps:
Step S202, a settlement instruction for a plurality of domain names to be processed, which is sent by a user, is received.
Step S204, a commodity interface is created by calling the order server, and a settlement instruction is sent to the order server through the commodity interface, so that identification information corresponding to each domain name to be processed is generated through the order server.
The identification information can be ID (Identity Document, identity) identification, etc., and the identification information can be used for identifying each domain name to be processed, and typically, each domain name to be processed has a one-to-one correspondence with the corresponding identification; in actual implementation, after receiving a settlement instruction for a plurality of domain names to be processed sent by a user, the domain name server may call a commodity creation interface of the order server to send the settlement instruction to the order server, and the order server generates corresponding identification information, such as an ID identifier, for each domain name to be processed based on the plurality of domain names to be processed included in the settlement instruction.
Step S206, receiving identification information corresponding to each domain name to be processed returned by the order server.
After the order server generates the corresponding identification information for each domain name to be processed, the generated identification information is typically returned to the domain name server, for example, an ID identification corresponding to each domain name to be processed is returned to the domain name server.
Step S208, splice the identification information corresponding to each domain name to be processed to the preset link address to provide a settlement interface for the user, and if the user finishes settlement, send the settled information to the message queue.
The preset link address is usually a default settlement link address in the order system, and can also be called a payment link address, and the preset link address is usually fixed and can be jumped to a settlement interface corresponding to different commodities by splicing commodity identification information of the commodities; in actual implementation, after the domain name server receives the identification information corresponding to each domain name to be processed returned by the order server, the identification information corresponding to each domain name to be processed can be spliced to the preset link address, for example, taking the identification information as an ID identification, the ID identification corresponding to each domain name to be processed can be spliced to the preset link address at the same time, after the splicing is completed, a settlement interface can be provided for the user, specifically, the user can jump to a settlement page or a payment page of the order system in a browser, the settlement page or the payment page generally comprises a plurality of domain names to be processed, related settlement information of each domain name to be processed and the like, the user can select a settlement mode in the settlement page or the payment page so as to settle a plurality of domain names to be processed, and if the user finishes settlement, the order server generally sends a message of completion to a message queue. If the user does not complete the settlement, no relevant message is typically sent to the message queue; it should be noted that if there is only one domain name to be processed, the ID identifier corresponding to the domain name to be processed may be directly spliced to the preset link address, so as to provide a settlement interface corresponding to the domain name to be processed for the user, so that the user may perform a settlement operation on the domain name to be processed.
Step S210, processing a plurality of domain names to be processed through a message queue, and returning the processing states of the plurality of domain names to be processed to a user; wherein the processing status includes processing success, processing failure, or processing wait.
The domain name processing method comprises the steps of firstly receiving a settlement instruction for a plurality of domain names to be processed, which is sent by a user, then calling a commodity interface created by an order server, and sending the settlement instruction to the order server through the commodity interface created so as to generate identification information corresponding to each domain name to be processed through the order server; then receiving identification information corresponding to each domain name to be processed returned by the order server; splicing the identification information corresponding to each domain name to be processed to a preset link address to provide a settlement interface for the user, and if the user finishes settlement, sending a message of finishing settlement to a message queue; finally, processing a plurality of domain names to be processed through a message queue, and returning the processing states of the plurality of domain names to be processed to a user; in the mode, after the user finishes the settlement of the domain names to be processed, the order server sends the message of finishing the settlement of the user to the message queue, the domain names to be processed are processed through the message queue, and the user can acquire the actual processing state of each domain name to be processed in time without waiting for the completion of the processing of the domain names to be processed, so that the waiting time of the user is reduced, and the user experience is improved.
The embodiment of the invention also provides another domain name processing method, which is realized on the basis of the method of the embodiment; the method mainly describes a specific process of processing a plurality of domain names to be processed through a message queue and a specific process of returning processing states of the plurality of domain names to be processed to a user, wherein the specific process corresponds to the following steps S306 to S314; the domain name provider may be understood as a company capable of providing services such as domain name registration, and the domain name service intermediary may select any one of the domain name providers as the underlying support, that is, the domain name server may be connected to the domain name provider server to provide services such as domain name registration for the user; as shown in fig. 3, the method comprises the steps of:
step S302, a settlement instruction for a plurality of domain names to be processed, which is sent by a user, is received.
In actual implementation, the domain name to be processed may include: domain name to be registered, domain name to be charged or domain name to be transferred; the domain name to be registered can be understood as a domain name which needs to be registered by a user; the domain name to be renewed can be understood as a domain name which needs to be renewed by the user; the domain name to be converted can be understood as a domain name to be converted by a user; for example, if the plurality of domain names to be processed are a plurality of domain names to be registered, when the user needs to register the plurality of domain names, the user can select the plurality of domain names through a front end page of a domain name system, including a domain name prefix, a domain name suffix, a registration age and the like of each domain name, so as to determine the plurality of domain names to be registered, and then submit an order, a settlement instruction for the plurality of domain names to be registered can be sent to a domain name server; if the plurality of domain names to be processed are a plurality of domain names to be charged, when a user needs to charge the plurality of domain names, the user can select the plurality of domain names needing to be charged through the front-end page of the domain name system, and after the charging period is selected, an order is submitted, and a settlement instruction for the plurality of domain names to be charged can be sent to the domain name server; if the plurality of domain names to be processed are the plurality of domain names to be transferred, when the user needs to transfer the plurality of domain names, the user can select the plurality of domain names to be transferred through the front page of the domain name system, submit orders, and send settlement instructions for the plurality of domain names to be transferred to the domain name server.
Step S304, a settlement instruction is sent to the order server to provide a settlement interface for the user through the order server, and if the user finishes settlement, a settlement completion message is sent to the message queue.
For example, if the settlement instruction is a settlement instruction for a plurality of domain names to be registered, after the user pays to complete the corresponding registered order, the order server may send a message of completion of payment of the registered order to the message queue; if the settlement instruction is a settlement instruction aiming at a plurality of domain names to be charged, after the user finishes paying the corresponding charging order, the order server can send a message of finishing the charging order payment to a message queue; if the settlement instruction is a settlement instruction for a plurality of domain names to be transferred, after the user finishes the payment of the corresponding transfer order, the order server can send a message of the completion of the payment of the transfer order to the message queue.
Step S306, obtaining the settlement completion message from the message queue.
In actual implementation, the user settlement completion message is stored in the message queue through the order server, so that the domain name server can acquire the settlement completion message from the message queue; for example, if the settlement instruction is a settlement instruction for a plurality of domain names to be registered, the domain name server obtains a message of completion of payment of the registered order from the message queue; if the settlement instruction is the settlement instruction aiming at a plurality of to-be-charged domain names, the domain name server acquires a message of completing the payment of the charging order from the message queue; if the settlement instruction is a settlement instruction for a plurality of domain names to be transferred, the domain name server acquires a message of completion of payment of the transferred order from the message queue.
Step S308, for each domain name to be processed, a domain name processing interface corresponding to the domain name provider server is called to process the currently-processed domain name through the domain name provider server.
When the domain name server obtains the settlement completion message from the message queue, the domain name server can execute corresponding domain name processing operation on the plurality of domain names, and in actual implementation, the plurality of domain names to be processed are usually processed respectively in sequence, for example, if the plurality of domain names to be processed are a plurality of domain names to be registered, the domain name server usually registers one domain name after another when registering the plurality of domain names to be registered, that is, registers the plurality of domain names to be registered in a serial manner, specifically, for each domain name to be registered in the plurality of domain names to be registered, a domain name processing interface corresponding to the domain name provider server can be called to register the current domain name to be registered through the domain name provider server; if the plurality of to-be-processed domain names are a plurality of to-be-charged domain names, calling a domain name renewal interface corresponding to a domain name provider server for each to-be-charged domain name so as to carry out renewal operation on the to-be-renewed domain name through the domain name provider server; and if the plurality of domain names to be processed are a plurality of domain names to be shifted, calling a domain name shifting interface corresponding to the domain name provider server for each domain name to be shifted so as to shift the current domain name to be shifted through the domain name provider server.
Step S310, receiving domain name processing information and prompt information of a currently pending domain name returned by a domain name provider server, wherein the prompt information is used for indicating whether the currently pending domain name is successfully processed.
For each domain name to be processed, after the domain name provider server finishes processing the current domain name to be processed, the domain name provider server generally returns domain name processing information of the current domain name to be processed to the domain name server, for example, if the domain name to be processed is a domain name to be registered, the domain name provider server returns domain name registration data of the domain name to be registered to the domain name server, wherein the domain name registration data can comprise specific domain names registered, including a domain name prefix and a domain name suffix, and also can comprise registration years and the like; in addition, the domain name provider server generally returns a prompt message corresponding to the currently pending domain name to the domain name server to prompt whether the currently pending domain name is successfully processed.
Step S312, if the prompt information indicates that the current domain name to be processed is successfully processed, the domain name processing information of the current domain name to be processed is saved.
If the prompt information received by the domain name server indicates that the current domain name to be processed is successfully processed, the domain name processing information corresponding to the current domain name to be processed can be recorded into a database; if the prompt information received by the domain name server indicates that the processing of the currently pending domain name fails, the domain name server generally does not record domain name processing information corresponding to the currently pending domain name into a database.
Step S314, if a message that the processing of the current domain name to be processed is successful or failed is received for each domain name to be processed, updating the processing state of the current domain name to be processed from processing waiting to processing success or processing failure.
In practical implementation, a user may view the processing states of multiple domain names to be processed through a front end page of a domain name system, for convenience of explanation, taking the multiple domain names to be processed as multiple domain names to be registered as examples, the domain name server will typically process the multiple domain names to be registered respectively in sequence, for example, if the prompting information received by the domain name server for the first domain name to be registered indicates that the first domain name to be registered is successfully registered, the processing state of the first domain name to be registered is updated from processing waiting to processing success, and if the received prompting information for the second domain name to be registered indicates that the second domain name to be registered is failed to processing, the processing state of the second domain name to be registered is updated from processing waiting to processing failure.
In this embodiment, a plurality of domain names to be processed can be processed asynchronously and concurrently by using a message queue, so that waiting time in a domain name processing process is reduced, domain name processing efficiency is improved, a front-end page of a domain name system can always asynchronously read the processing state of each domain name to be processed, a domain name server returns the processing state of each domain name to the front-end page, the processing state of each domain name to be processed is displayed on the front-end page, a request cannot be overtime, a user can receive the actual processing state of each domain name to be processed in a relatively timely manner, response efficiency of the domain name server to the user is improved, and user experience is improved.
In the related art, because the synchronous processing mode is adopted, after the processing of the plurality of domain names to be processed is completed, a message whether the processing of the plurality of domain names to be processed is successful is returned to the user, the request is easy to timeout, the front page is always displayed in the processing process, the user needs to wait for a long time, the processing state of the plurality of domain names to be processed cannot be acquired in time, and the user experience is poor.
According to the domain name processing method, after the settlement instructions for the plurality of domain names to be processed, which are sent by the user, are received, the settlement instructions are sent to the order server, so that a settlement interface is provided for the user through the order server, and if the user finishes settlement, a message of finishing settlement is sent to the message queue; then obtaining the settled information from the information queue; for each domain name to be processed, calling a domain name processing interface corresponding to a domain name provider server to process the current domain name to be processed through the domain name provider server; then receiving domain name processing information and prompt information of the current domain name to be processed returned by the domain name provider server, and if the prompt information indicates that the current domain name to be processed is successfully processed, storing the domain name processing information of the current domain name to be processed; and finally, for each domain name to be processed, if a message that the processing of the current domain name to be processed is successful or failed is received, updating the processing state of the current domain name to be processed from processing waiting to processing success or processing failure. In the mode, after the user finishes the settlement of the domain names to be processed, the order server sends the message of finishing the settlement of the user to the message queue, the domain names to be processed are processed through the message queue, and the user can acquire the actual processing state of each domain name to be processed in time without waiting for the completion of the processing of the domain names to be processed, so that the waiting time of the user is reduced, and the user experience is improved.
In addition, when registering, renewing or transferring the domain name, the message after the user settles is pushed to the message queue, and by using the message queue, the domain name server can asynchronously and concurrently execute the registration, renewing and transferring the domain name after acquiring the settled message from the message queue, thereby improving the response speed of the domain name server to the user.
In the related art, because a message queue is not used and the process of processing the domain names to be processed is serial processing, the order system can continue to process other orders after the processing of the domain names to be processed in the order is completed, and only a single service line can be supported; in this embodiment, the domain name registration and the order processing can be separated by using the message queue, the system is decoupled, and after the order system sends the payment completion message to the message queue, other order processing can be continuously executed without waiting for the domain name registration in the current order, so that the order system can support a plurality of service lines, and the service processing level is clearer.
To further understand the above embodiments, a flowchart of a domain name registration method as shown in fig. 4 is provided below, in which fig. 4 includes a domain name system, an order system, and a domain name provider server; the domain name system is respectively in communication connection with the order system and the domain name provider server; the method comprises the steps that a user selects a domain name (corresponding to a domain name to be registered) through a front-end page of a domain name system, the domain name comprises a domain name prefix and a domain name suffix, the number of the domain names is multiple, when the selected domain names are in a registrable state, the domain names can be added to a shopping cart, after confirming the selected domain names in the shopping cart, the user submits the shopping cart to send a settlement instruction for the domain names to a domain name server of the domain name system, after receiving the settlement instruction, the domain name server calls a commodity creating interface of an order system to send the settlement instruction to the order system, generates commodity IDs (corresponding to the identification information) corresponding to the domain names through an order server of the order system, returns the commodity IDs corresponding to the domain names to the domain name server, the domain name server splices the commodity IDs corresponding to preset link addresses, jumps to a payment page (corresponding to the settlement interface) of the order system in a browser so that the user pays for the order, and if the payment mode of the user is selected by the payment page, the user pays for the order completion message is sent to the order server, and if the payment of the user is not completed, the order server does not send the message to the order queue; after the domain name server obtains the message of user payment completion from the message queue, calling a domain name registration interface of the domain name provider server for each domain name, registering the domain name through the domain name provider server, returning domain name registration data (corresponding to the domain name processing information) of the domain name and the message of completion of registration (corresponding to the prompt information to indicate that the current domain name to be processed is successfully processed) to the domain name server after the completion of registration, and recording the domain name registration data registered by the user into a database by the domain name server; and finally, the domain name server returns a successful registration result to the user.
The embodiment of the invention provides a domain name processing device, which is arranged on a domain name server; the domain name server is in communication connection with the order server; as shown in fig. 5, the apparatus includes: a receiving module 50, configured to receive a settlement instruction for a plurality of domain names to be processed sent by a user; a sending module 51, configured to send a settlement instruction to the order server, so as to provide a settlement interface for the user through the order server, and send a message of settlement completion to the message queue if the user completes settlement; the processing module 52 is configured to process the plurality of domain names to be processed through the message queue, and return a processing state of the plurality of domain names to be processed to the user; wherein the processing status includes processing success, processing failure, or processing wait.
The domain name processing device firstly receives a settlement instruction which is sent by a user and aims at a plurality of domain names to be processed, then sends the settlement instruction to an order server so as to provide a settlement interface for the user through the order server, and if the user finishes settlement, sends a message of finishing settlement to a message queue; finally, processing a plurality of domain names to be processed through the message queue, and returning the processing states of the plurality of domain names to be processed to the user; in the device, after the user finishes the settlement of a plurality of domain names to be processed, the order server sends the message of finishing the settlement of the user to the message queue, and the message queue processes the plurality of domain names to be processed, so that the user can acquire the actual processing state of each domain name to be processed in time without waiting for the completion of the processing of the plurality of domain names to be processed, thereby reducing the waiting time of the user and improving the user experience.
Further, the sending module 51 is further configured to: invoking a commodity creation interface of the order server, and sending a settlement instruction to the order server through the commodity creation interface so as to generate identification information corresponding to each domain name to be processed through the order server; receiving identification information corresponding to each domain name to be processed returned by the order server; and splicing the identification information corresponding to each domain name to be processed to a preset link address to provide a settlement interface for the user, and if the user finishes settlement, sending the settled information to the message queue.
Further, the domain name server is in communication connection with a domain name provider server; the processing module 52 is also configured to: acquiring a message of finishing settlement from a message queue; for each domain name to be processed, calling a domain name processing interface corresponding to a domain name provider server to process the current domain name to be processed through the domain name provider server; receiving domain name processing information and prompt information of a current domain name to be processed returned by a domain name provider server, wherein the prompt information is used for indicating whether the current domain name to be processed is successfully processed; and if the prompt information indicates that the current domain name to be processed is successfully processed, storing domain name processing information of the current domain name to be processed.
Further, the processing module 52 is further configured to: and if a message that the processing of the current domain name to be processed is successful or failed is received for each domain name to be processed, updating the processing state of the current domain name to be processed from processing waiting to processing success or processing failure.
Further, the domain name to be processed includes: a domain name to be registered, a domain name to be charged or a domain name to be transferred.
The domain name processing device provided by the embodiment of the present invention has the same implementation principle and technical effects as those of the above domain name processing method embodiment, and for the sake of brief description, reference may be made to corresponding contents in the above domain name processing method embodiment where the embodiment of the domain name processing device is not mentioned.
The present invention further provides a domain name server, referring to fig. 6, where the domain name server includes a processor 130 and a memory 131, the memory 131 stores machine executable instructions that can be executed by the processor 130, and the processor 130 executes the machine executable instructions to implement the domain name processing method described above.
Further, the domain name server shown in fig. 6 further includes a bus 132 and a communication interface 133, and the processor 130, the communication interface 133, and the memory 131 are connected through the bus 132.
The memory 131 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 133 (which may be wired or wireless), and may use the internet, a wide area network, a local network, a metropolitan area network, etc. Bus 132 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 6, but not only one bus or type of bus.
The processor 130 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuitry in hardware or instructions in software in processor 130. The processor 130 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 131, and the processor 130 reads the information in the memory 131, and in combination with its hardware, performs the steps of the method of the foregoing embodiment.
The embodiment of the invention also provides a machine-readable storage medium, which stores machine-executable instructions that, when being called and executed by a processor, cause the processor to implement the domain name processing method, and the specific implementation can be referred to the method embodiment and will not be described herein.
The computer program product of the domain name processing method, the apparatus and the domain name server provided in the embodiments of the present invention include a computer readable storage medium storing program codes, where the instructions included in the program codes may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment and will not be repeated herein.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (8)

1. A domain name processing method, wherein the method is applied to a domain name server; the domain name server is in communication connection with the order server; the method comprises the following steps:
receiving a settlement instruction which is sent by a user and aims at a plurality of domain names to be processed;
sending the settlement instruction to the order server so as to provide a settlement interface for the user through the order server, and sending a settlement completed message to a message queue if the user finishes settlement;
asynchronously processing the plurality of domain names to be processed through the message queue, and returning the processing states of the plurality of domain names to be processed to the user; wherein the processing state comprises processing success, processing failure or processing waiting;
The step of sending the settlement instruction to the order server to provide a settlement interface for the user through the order server, and if the user finishes settlement, sending a settlement completed message to a message queue comprises the following steps:
invoking a commodity creation interface of the order server, and sending the settlement instruction to the order server through the commodity creation interface so as to generate identification information corresponding to each domain name to be processed through the order server; wherein the identification information is an ID identification;
receiving the identification information corresponding to each domain name to be processed returned by the order server;
splicing the identification information corresponding to each domain name to be processed to a preset link address to provide the settlement interface for the user, and if the user finishes settlement, sending the settlement completed message to the message queue; wherein the preset link address is a fixed address.
2. The method of claim 1, wherein the domain name server is communicatively coupled to a domain name provider server; the step of asynchronously processing the plurality of domain names to be processed through the message queue includes:
Acquiring the settlement completed message from the message queue;
for each domain name to be processed, calling a domain name processing interface corresponding to the domain name provider server to process the current domain name to be processed through the domain name provider server;
receiving domain name processing information and prompt information of the current domain name to be processed returned by the domain name provider server, wherein the prompt information is used for indicating whether the current domain name to be processed is successfully processed or not;
and if the prompt information indicates that the current domain name to be processed is successfully processed, storing domain name processing information of the current domain name to be processed.
3. The method of claim 1, wherein the step of returning the processing status of the plurality of domain names to be processed to the user comprises:
and if receiving a message that the processing of the current domain name to be processed is successful or failed, updating the processing state of the current domain name to be processed from processing waiting to processing success or processing failure aiming at each domain name to be processed.
4. The method of claim 1, wherein the domain name to be processed comprises: a domain name to be registered, a domain name to be charged or a domain name to be transferred.
5. A domain name processing device, wherein the device is arranged on a domain name server; the domain name server is in communication connection with the order server; the device comprises:
the receiving module is used for receiving settlement instructions aiming at a plurality of domain names to be processed, which are sent by a user;
the sending module is used for sending the settlement instruction to the order server so as to provide a settlement interface for the user through the order server, and if the user finishes settlement, the message of finishing settlement is sent to a message queue;
the processing module is used for asynchronously processing the domain names to be processed through the message queue and returning the processing states of the domain names to be processed to the user; wherein the processing state comprises processing success, processing failure or processing waiting;
the sending module is further configured to:
invoking a commodity creation interface of the order server, and sending the settlement instruction to the order server through the commodity creation interface so as to generate identification information corresponding to each domain name to be processed through the order server; wherein the identification information is an ID identification;
receiving the identification information corresponding to each domain name to be processed returned by the order server;
Splicing the identification information corresponding to each domain name to be processed to a preset link address to provide the settlement interface for the user, and if the user finishes settlement, sending the settlement completed message to the message queue; wherein the preset link address is a fixed address.
6. The apparatus of claim 5, wherein the domain name server is communicatively coupled to a domain name provider server; the processing module is further configured to:
acquiring the settlement completed message from the message queue;
for each domain name to be processed, calling a domain name processing interface corresponding to the domain name provider server to process the current domain name to be processed through the domain name provider server;
receiving domain name processing information and prompt information of the current domain name to be processed returned by the domain name provider server, wherein the prompt information is used for indicating whether the current domain name to be processed is successfully processed or not;
and if the prompt information indicates that the current domain name to be processed is successfully processed, storing domain name processing information of the current domain name to be processed.
7. A domain name server comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the domain name processing method of any of claims 1-4.
8. A machine-readable storage medium storing machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the domain name processing method of any of claims 1-4.
CN202110092876.3A 2021-01-22 2021-01-22 Domain name processing method, device and domain name server Active CN112887446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110092876.3A CN112887446B (en) 2021-01-22 2021-01-22 Domain name processing method, device and domain name server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110092876.3A CN112887446B (en) 2021-01-22 2021-01-22 Domain name processing method, device and domain name server

Publications (2)

Publication Number Publication Date
CN112887446A CN112887446A (en) 2021-06-01
CN112887446B true CN112887446B (en) 2023-07-18

Family

ID=76050657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110092876.3A Active CN112887446B (en) 2021-01-22 2021-01-22 Domain name processing method, device and domain name server

Country Status (1)

Country Link
CN (1) CN112887446B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917833A (en) * 2015-06-08 2015-09-16 北京集奥聚合网络技术有限公司 Asynchronous information processing method based on NIO request
CN105389209A (en) * 2015-12-25 2016-03-09 中国建设银行股份有限公司 Asynchronous batch task processing method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105989447A (en) * 2015-03-03 2016-10-05 阿里巴巴集团控股有限公司 Data processing system, method and platform
US20170069015A1 (en) * 2015-09-09 2017-03-09 Georgia-Pacific Consumer Products Lp Methods and systems for assessing order compliance by determining pre-submission order adherence of a preliminary order using a front-end server
CN109308534B (en) * 2017-07-28 2021-08-24 北京嘀嘀无限科技发展有限公司 Method for generating multiple orders and terminal equipment
CN108052398A (en) * 2017-12-12 2018-05-18 苏州比可网络科技有限公司 A kind of feedback method of order processing state and polymerization payment platform
CN109560940B (en) * 2018-12-26 2021-08-27 网宿科技股份有限公司 Charging method and device for content delivery network CDN service

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917833A (en) * 2015-06-08 2015-09-16 北京集奥聚合网络技术有限公司 Asynchronous information processing method based on NIO request
CN105389209A (en) * 2015-12-25 2016-03-09 中国建设银行股份有限公司 Asynchronous batch task processing method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"D妹上新,手把手教你批量注册域名";腾讯云DNSPod团队;《https://cloud.tencent.com/developer/article/1649135》;20200622;正文第1-5页 *

Also Published As

Publication number Publication date
CN112887446A (en) 2021-06-01

Similar Documents

Publication Publication Date Title
CN107070858B (en) Service processing method and device
CN109922158A (en) Data processing method, device, medium and electronic equipment based on micro services
US20220398554A1 (en) Payment method and apparatus, related device, and system
CN113641940A (en) Page jump method, device, system, equipment and storage medium
CN110555681A (en) Bank card signing method, device, server and medium
CN111988418B (en) Data processing method, device, equipment and computer readable storage medium
CN111461886B (en) Management method and device for system configuration independent of intelligent contracts on block chains
CN116016653A (en) Information pushing method and device of blockchain, electronic equipment and storage medium
CN112887446B (en) Domain name processing method, device and domain name server
CN108596581B (en) Verification method and device for resource transfer and electronic payment verification method and device
CN110619402A (en) Vehicle dispatching method and device, electronic equipment and storage medium
CN112437155A (en) Service data processing method and device and server equipment
CN114553477B (en) Page jump method, device, equipment and storage medium
CN113518107B (en) File transmission method, computing device and computer storage medium
CN114329260A (en) Page jump method, device, terminal and storage medium
CN111309495B (en) Batch processing request initiating method and device, risk identification equipment and storage medium
CN110968334B (en) Application resource updating method, resource package manufacturing method, device, medium and equipment
CN113919845A (en) Parking monthly card online refund method, related device and storage medium
CN118152463A (en) Data processing method, device, equipment and storage medium
CN112714144B (en) List information processing method and device, electronic equipment and computer storage medium
CN113766442B (en) Telephone traffic resource sharing method and device, computing equipment and storage medium
CN115456778B (en) Bond block chain updating method and device
CN112035711B (en) Information query method, device, equipment and storage medium
CN108197932B (en) Payment method and device based on short code
CN114781995A (en) Method and device for processing item configuration information

Legal Events

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