CN112887446A - Domain name processing method and device and domain name server - Google Patents

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

Info

Publication number
CN112887446A
CN112887446A CN202110092876.3A CN202110092876A CN112887446A CN 112887446 A CN112887446 A CN 112887446A CN 202110092876 A CN202110092876 A CN 202110092876A CN 112887446 A CN112887446 A CN 112887446A
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.)
Granted
Application number
CN202110092876.3A
Other languages
Chinese (zh)
Other versions
CN112887446B (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

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • 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)
  • Computer And Data Communications (AREA)
  • Telephonic Communication Services (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 aiming at a plurality of domain names to be processed, which is sent by a user, is received, then the settlement instruction is sent to an order server so as to provide a settlement interface 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, a plurality of domain names to be processed are processed through the message queue, and the processing states of the domain names to be processed are returned to the user; in the mode, after the user finishes settlement of the plurality of to-be-processed domain names, the message of finishing the settlement of the user is sent to the message queue through the order server, the plurality of to-be-processed domain names are processed through the message queue, and the user can obtain the actual processing state of each to-be-processed domain name in time without waiting for the completion of processing of the plurality of to-be-processed domain names, so that the waiting time of the user is shortened, and the user experience is improved.

Description

Domain name processing method and 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 and apparatus, and a domain name server.
Background
In the related art, a user may need to perform batch processing on a plurality of domain names, for example, registering a plurality of domain names in batch or transferring a plurality of domain names in batch; taking batch registration of a plurality of domain names as an example, when a user needs to simultaneously register a plurality of domain names through a domain name system server and the domain names are all in a registrable state, the domain name system server calls a domain name registration interface of a domain name provider server to perform synchronous serial registration on the domain names, and because a plurality of domain names need to be simultaneously registered, the domain name system server has a lower processing speed and a longer processing time, and a message whether the registration of the domain names is successful or not is returned to the user after the registration of the domain names is completed, so that the waiting time of the user is longer, and the user experience is reduced.
Disclosure of Invention
The invention aims to provide a domain name processing method, a domain name processing device and a domain name server, so as to reduce the waiting time for a user to obtain a processing result for processing a plurality of domain names and improve the user experience.
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 settlement instructions aiming at a plurality of domain names to be processed sent by a user; sending the settlement instruction to the order server 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 completes 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 status comprises processing success, processing failure or processing waiting.
Further, the step of sending the settlement instruction to the order server to provide a settlement interface to the user through the order server, and if the user completes settlement, sending a message of completion of settlement to a message queue includes: calling a created commodity interface of the order server, sending the settlement instruction to the order server through the created commodity interface, and generating 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; and 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 finished 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; calling a domain name processing interface corresponding to the domain name provider server for each domain name to be processed so as 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, which are 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; 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.
Further, the step of returning the processing status of the plurality of domain names to be processed to the user includes: and for each domain name to be processed, if a message that the current domain name to be processed is successfully processed or unsuccessfully processed is received, 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: the domain name to be registered, the domain name to be charged or the 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 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, sending a message of the completion of the settlement to a message queue; the processing module is used for 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 status comprises processing success, processing failure or processing waiting.
Further, the sending module is further configured to: calling a created commodity interface of the order server, sending the settlement instruction to the order server through the created commodity interface, and generating 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; and 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 finished 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; calling a domain name processing interface corresponding to the domain name provider server for each domain name to be processed so as 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, which are 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; 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.
The invention provides a domain name server, which 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 any one of the domain name processing methods.
The present invention provides a machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to carry out a domain name processing method as described in any one of the preceding claims.
The invention provides a domain name processing method, a domain name processing device and a domain name server.A settlement instruction aiming at a plurality of domain names to be processed, which is sent by a user, is received at first, and then is sent to an order server so as to provide a settlement interface 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, a plurality of domain names to be processed are processed through the message queue, and the processing states of the domain names to be processed are returned to the user; in the mode, after the user finishes settlement of the plurality of to-be-processed domain names, the message of finishing the settlement of the user is sent to the message queue through the order server, the plurality of to-be-processed domain names are processed through the message queue, and the user can obtain the actual processing state of each to-be-processed domain name in time without waiting for the completion of processing of the plurality of to-be-processed domain names, so that the waiting time of the user is shortened, 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 used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart 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 apparatus 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 described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the related art, a user may need to perform domain name registration, domain name renewal, domain name transfer, or the like on one or more domain names; taking 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 perform domain name registration on the domain name to be registered, then domain name data after the registration is finished 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 high; 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 calls 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 a 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 certain domain name to be registered fails, because other domain names to be registered may exist behind the domain name to be registered, other domain names to be registered are preferably 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 a plurality of domain names are registered in batch, the domain name server has a low processing speed and a long processing time, which is likely to cause system congestion, and a user needs to wait for a long time to obtain a message indicating whether the registration of the plurality of domain names is successful, thereby reducing user experience. Based on this, 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, and particularly can be applied to applications such as batch registration and batch transfer of domain names.
In order to facilitate understanding of the embodiment, a domain name processing method disclosed in the embodiment of the present invention 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 practical implementation, the domain name server may be understood as a server of a domain name system of a domain name service middleman; the domain name service intermediate provider can select any domain name registrar as a bottom support to provide services such as domain name registration and the like for the user; the order server can be understood as a server of an order system, and the whole payment process including order confirmation, order payment and the like can be completed through the order system; as shown in fig. 1, the method comprises the steps of:
step S102, receiving settlement instructions aiming at a plurality of domain names to be processed sent by a user.
The domain name to be processed can be understood as a domain name which needs to be subjected to settlement processing by a user, such as a domain name to be registered, a domain name to be transferred into or a domain name to be charged, and the number of the domain names to be processed can be multiple; the settlement instruction can be understood as a corresponding instruction sent when a 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 the domain name server; for example, taking the domain name to be processed as the domain name to be registered as an example, when the user needs to register a plurality of domain names, the user may first select a plurality of domain names through a front-end page of the domain name system, including a domain name prefix, a domain name suffix, a registration age, and the like of each domain name, to determine the plurality of domain names to be registered, when the determined plurality of domain names to be registered are all in a registrable state, the domain names may be added to a shopping cart, and when the user confirms the plurality of domain names to be registered selected in the shopping cart, the shopping cart may be submitted to send a settlement instruction for the plurality of domain names to be registered to the domain name server.
And step S104, sending a settlement instruction to the order server so as to provide a settlement interface for the user through the order server, and sending a settlement completion message to the message queue if the user completes settlement.
The 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; the message queue can be understood as a container for storing messages in the transmission process of 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 sent, the message queue can retain the messages until the messages can be successfully transmitted, and the 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 may 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 may perform a corresponding settlement operation through the settlement interface, and after the settlement is completed, the order server may send a message of the completion of the settlement of the user to the message queue.
Step S106, 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; wherein the processing state comprises processing success, processing failure or processing waiting.
If the processing state of the domain name to be processed is processing waiting, it can 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 has not completed the whole processing process of the domain name to be processed, that is, the final result of successful or failed processing of the domain name to be processed has not been received. In actual implementation, after the message of completing user settlement 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, so that the user can check the processing state of each domain name to be processed on a front-end page in time, such as successful processing, failed processing or waiting for processing, and the processing state of each domain name to be processed can be updated after the processing state of the received domain name to be processed is updated by adopting an asynchronous processing mode, so that the user can obtain the actual processing state of each domain name to be processed in a relatively timely manner; for example, taking the domain name to be registered as the domain name to be registered, after the message that the user has completed the settlement is sent to the message queue through the order server, the plurality of domain names to be registered may be registered through the message queue, and the processing state of each domain name to be registered is returned to the user.
The domain name processing method comprises the steps of firstly receiving settlement instructions aiming at a plurality of domain names to be processed and sent by a user, then sending the settlement instructions to an order server so as to provide a settlement interface for the user through the order server, and if the user finishes settlement, sending a message of finishing settlement to a message queue; finally, a plurality of domain names to be processed are processed through the message queue, and the processing states of the domain names to be processed are returned to the user; in the mode, after the user finishes settlement of the plurality of to-be-processed domain names, the message of finishing the settlement of the user is sent to the message queue through the order server, the plurality of to-be-processed domain names are processed through the message queue, and the user can obtain the actual processing state of each to-be-processed domain name in time without waiting for the completion of processing of the plurality of to-be-processed domain names, so that the waiting time of the user is shortened, 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 sending a settlement instruction to an order server to provide a settlement interface for a user through the order server, and if the user completes settlement, sending a message of completion of settlement to a message queue, which specifically corresponds to the following steps S204 to S208, as shown in fig. 2, the method includes the following steps:
step S202, receiving settlement instructions aiming at a plurality of domain names to be processed sent by a user.
Step S204, a commodity creating interface of the order server is called, and the settlement instruction is sent to the order server through the commodity creating interface so as to generate identification information corresponding to each domain name to be processed through the order server.
The identification information may be an ID (Identity Document) identifier, and the like, and the identification information may be used to identify each domain name to be processed, where each domain name to be processed generally corresponds to a corresponding identifier in a one-to-one correspondence; in actual implementation, after the domain name server receives a settlement instruction for a plurality of domain names to be processed sent by a user, a commodity creation interface of the order server may be called 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 the identification information corresponding to each domain name to be processed returned by the order server.
After the order server generates corresponding identification information for each domain name to be processed, the generated identification information is usually returned to the domain name server, for example, an ID corresponding to each domain name to be processed is returned to the domain name server.
And S208, 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 sending a settlement completed message to a message queue if the user completes settlement.
The preset link address is usually a default settlement link address in an order system and can also be called a payment link address, is usually fixed and can jump to a settlement interface corresponding to the commodity by splicing commodity identification information of different commodities; in practical 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 may be spliced to the preset link address, for example, taking the identification information as an ID identification, the ID corresponding to each domain name to be processed can be spliced to the preset link address at the same time, and after the splicing is completed, the user is provided with a settlement interface, in particular, can jump to a settlement page or payment page of the order system in the browser, the settlement page or payment page usually contains a plurality of domain names to be processed, and the related settlement information of each domain name to be processed, etc., and the user can select a settlement mode on the settlement page or payment page to settle a plurality of domain names to be processed, if the user completes the settlement, the order server will typically send a message to the message queue that the settlement is complete. If the user does not complete the settlement, the relevant message is not sent to the message queue in general; it should be noted that, if there is only one domain name to be processed, the ID corresponding to the domain name to be processed may be directly spliced to the preset link address, and a settlement interface corresponding to the domain name to be processed is provided to 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 state comprises processing success, processing failure or processing waiting.
The method for processing the domain name comprises the steps of firstly receiving settlement instructions aiming at a plurality of domain names to be processed sent by a user, then calling a commodity creating interface of an order server, sending the settlement instructions to the order server through the commodity creating interface, and generating 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 a user, and if the user finishes settlement, sending a settlement finished message to a message queue; finally, a plurality of domain names to be processed are processed through the message queue, and the processing states of the domain names to be processed are returned to the user; in the mode, after the user finishes settlement of the plurality of to-be-processed domain names, the message of finishing the settlement of the user is sent to the message queue through the order server, the plurality of to-be-processed domain names are processed through the message queue, and the user can obtain the actual processing state of each to-be-processed domain name in time without waiting for the completion of processing of the plurality of to-be-processed domain names, so that the waiting time of the user is shortened, 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 the processing states of the plurality of domain names to be processed to a user, and specifically corresponds to the following steps S306 to S314, wherein in the method, a domain name server is in communication connection with a domain name provider server; the domain name provider can be understood as a company capable of providing services such as domain name registration, and the domain name service intermediary can select any domain name provider as a bottom support, that is, the domain name server can be connected with 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, receiving settlement instructions for a plurality of domain names to be processed sent by a user.
In practical implementation, the domain name to be processed may include: a domain name to be registered, a domain name to be charged or a domain name to be transferred; the domain name to be registered can be understood as the domain name which needs to be registered by the user; the domain name to be renewed can be understood as the domain name which the user needs to renew; the domain name to be transferred can be understood as the domain name which needs to be transferred by the 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 may first select the plurality of domain names through a front-end page of the domain name system, including a domain name prefix, a domain name suffix, a registration age, and the like of each domain name, to determine the plurality of domain names to be registered, and then submit an order, and may send a settlement instruction for the plurality of domain names to be registered to the domain name server; if the plurality of domain names to be processed are a plurality of domain names to be recharged, when the user needs to recharge the plurality of domain names, the user can firstly select the plurality of domain names to be recharged through a front-end page of a domain name system, submit orders after selecting the recharging age, and then send settlement instructions aiming at the plurality of domain names to be recharged to a 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 a front-end page of the domain name system and submit an order, and then a settlement instruction aiming at the plurality of domain names to be transferred can be sent to the domain name server.
Step S304, the settlement instruction is sent to the order server so as to provide a settlement interface for the user through the order server, and if the user finishes settlement, a message of the completion of settlement is sent to a message queue.
For example, if the settlement instruction is a settlement instruction for a plurality of domain names to be registered, after the user completes the corresponding registration order, the order server may send a message that the payment of the registration order is completed to the message queue; if the settlement instruction is a settlement instruction for a plurality of to-be-renewed domain names, after the user finishes the corresponding renewed order, the order server can send a message of finishing the payment of the renewed order to the message queue; if the settlement instruction is a settlement instruction for a plurality of domain names to be transferred, after the user completes the payment of the corresponding transfer order, the order server can send the message that the payment of the transfer order is completed to the message queue.
Step S306, the settlement completed message is obtained from the message queue.
In actual implementation, the message of completing the settlement of the user is stored in the message queue through the order server, so that the domain name server can acquire the message of completing the settlement 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 that the payment of the registration order is completed from the message queue; if the settlement instruction is a settlement instruction for a plurality of to-be-renewed domains, the domain name server acquires a message for completing the payment of the renewal order from the message queue; and if the settlement instruction is a settlement instruction for a plurality of domain names to be transferred, the domain name server acquires a message for completing the payment of the transfer order from the message queue.
Step S308, aiming at each domain name to be processed, calling a domain name processing interface corresponding to the domain name provider server so as to process the current domain name to be processed through the domain name provider server.
After the domain name server obtains the settlement-completed message from the message queue, it may perform corresponding domain name processing operations on a plurality of domain names, and in actual implementation, it usually processes a plurality of domain names to be processed in sequence, for example, if the plurality of domain names to be processed are a plurality of domain names to be registered, when the domain name server registers the plurality of domain names to be registered, it usually registers the plurality of domain names to be registered one by one, 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, it may call a domain name processing interface corresponding to the domain name provider server to perform the registration operation on the domain name to be currently registered through the domain name provider server; if the plurality of domain names to be processed are the plurality of domain names to be charged, calling a domain name charging interface corresponding to a domain name provider server for each domain name to be charged so as to charge the current domain name to be charged through the domain name provider server; if the domain names to be processed are the domain names to be transferred, calling a domain name transfer interface corresponding to the domain name provider server for each domain name to be transferred so as to perform transfer operation on the current domain name to be transferred through the domain name provider server.
Step S310, receiving domain name processing information and prompt information of the current domain name to be processed, which are 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.
For each domain name to be processed, after the domain name provider server completes processing of the current domain name to be processed, it usually 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, where the domain name registration data may include the specific registered domain name, including a domain name prefix and a domain name suffix, and may also include a registration year limit, etc.; in addition, the domain name provider server usually returns a prompt message corresponding to the current domain name to be processed to the domain name server to prompt whether the current domain name to be processed is successfully processed.
In step S312, if the prompt indicates that the processing of the current domain name to be processed is successful, 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 processing of the current domain name to be processed is successful, 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 current domain name to be processed fails, the domain name server usually does not record the domain name processing information corresponding to the current domain name to be processed into the database.
Step S314, 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 practical implementation, a user may look up the processing states of multiple domains to be registered through a front-end page of a domain name system, for convenience of description, taking multiple domains to be registered as multiple domain names, a domain name server generally processes the multiple domains to be registered in sequence, for example, if the prompt information received by the domain name server for a 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 prompt information received for a second domain name to be registered indicates that the second domain name to be registered is unsuccessfully registered, the processing state of the second domain name to be registered is updated from processing waiting to processing failure.
In the embodiment, the message queue can be used for asynchronously and concurrently processing a plurality of domain names to be processed, the waiting time in the domain name processing process is reduced, and the domain name processing efficiency is improved.
In the related art, due to the adoption of the synchronous processing mode, after the plurality of domain names to be processed are processed, a message of whether the plurality of domain names to be processed are processed successfully is returned to the user, the request is easy to timeout, in the processing process, the front-end page always displays the processing state, the user needs to wait for a long time, the processing states of the plurality of domain names to be processed cannot be obtained in time, and the user experience is poor.
According to the domain name processing method, after settlement instructions aiming at a plurality of domain names to be processed and sent by a user are received, the settlement instructions are sent to an order server so as to provide a settlement interface for the user through the order server, and if the user finishes settlement, a message of finishing settlement is sent to a message queue; then obtaining the settlement completed message from the message queue; calling a domain name processing interface corresponding to a domain name provider server for each domain name to be processed so as 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, which are 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 current domain name to be processed is successfully processed or unsuccessfully processed 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 settlement of the plurality of to-be-processed domain names, the message of finishing the settlement of the user is sent to the message queue through the order server, the plurality of to-be-processed domain names are processed through the message queue, and the user can obtain the actual processing state of each to-be-processed domain name in time without waiting for the completion of processing of the plurality of to-be-processed domain names, so that the waiting time of the user is shortened, and the user experience is improved.
In addition, when domain name registration, domain name renewal or domain name transfer is performed, the message of user settlement completion is pushed to the message queue, and by using the message queue, the domain name server can asynchronously and concurrently perform domain name registration, domain name renewal and domain name transfer after acquiring the message of settlement completion from the message queue, so that the response speed of the domain name server to the user is improved.
In addition, in the related art, since no message queue is used and the process of processing the multiple domain names to be processed is serial processing, the order system needs to continue processing other orders only after the multiple domain names to be processed in the order are processed, and only a single service line can be supported; in the embodiment, domain name registration and order processing can be separated by using the message queue, the system is decoupled, and after the order system sends the message of completing payment to the message queue, other order processing can be continuously executed without waiting for the completion of registration of all domain names 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, where 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 user selects a domain name (corresponding to the domain name to be registered) through a front page of the 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 multiple selected domain names are in a registrable state, the domain names can be added to a shopping cart, the user submits the shopping cart after confirming the multiple domain names purchased in the shopping cart so as to send settlement instructions for the multiple domain names to a domain name server of the domain name system, the domain name server calls a commodity creating interface of an order system after receiving the settlement instructions so as to send the settlement instructions to the order system, commodity IDs (corresponding to the identification information) corresponding to the domain names are generated through the order server of the order system and return the commodity IDs corresponding to the domain names to the domain name server, the domain name server splices the commodity IDs corresponding to the domain names to a preset link address, and jumps to a payment page (corresponding to the settlement interface) of the order system in a browser, the order server sends a message of completing the payment of the user to the message queue if the payment of the user is completed, and the order server does not send the message of completing the payment of the user to the message queue if the payment of the user is not completed; after obtaining the information that the user finishes paying from the information queue, the domain name server calls a registration domain name interface of a domain name provider server for each domain name so as to register the domain name through the domain name provider server, and after the registration is finished, returns domain name registration data (corresponding to the domain name processing information) of the domain name and the information that the registration is finished (corresponding to the prompt information and indicating that the current domain name to be processed is successfully processed) to the domain name server, and then records the domain name registration data registered by the user into a database; and finally, the domain name server returns a result of successful registration 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 multiple 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 to the user through the order server, and send a message of completion of settlement to the message queue if the user completes settlement; the processing module 52 is configured to process a plurality of domain names to be processed through the message queue, and return 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 domain name processing device firstly receives settlement instructions aiming at a plurality of domain names to be processed sent by a user, then sends the settlement instructions to an order server so as to provide a settlement interface for the user through the order server, and sends a settlement completed message to a message queue if the user completes settlement; finally, a plurality of domain names to be processed are processed through the message queue, and the processing states of the domain names to be processed are returned to the user; according to the device, after the user finishes settlement of the plurality of to-be-processed domain names, the message of finishing the settlement of the user is sent to the message queue through the order server, the plurality of to-be-processed domain names are processed through the message queue, the user can timely acquire the actual processing state of each to-be-processed domain name without waiting for the completion of processing of the plurality of to-be-processed domain names, so that the waiting time of the user is shortened, and the user experience is improved.
Further, the sending module 51 is further configured to: calling a commodity creating interface of the order server, sending a settlement instruction to the order server through the commodity creating interface, and generating 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 a settlement finished message to a message queue.
Further, the domain name server is in communication connection with the domain name provider server; the processing module 52 is further configured to: acquiring a settlement completed message from the message queue; calling a domain name processing interface corresponding to a domain name provider server for each domain name to be processed so as 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, which are 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 the domain name processing information of the current domain name to be processed.
Further, the processing module 52 is further configured to: and for each domain name to be processed, if a message that the current domain name to be processed is successfully processed or unsuccessfully processed is received, 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: the domain name to be registered, the domain name to be charged or the domain name to be transferred.
The implementation principle and the generated technical effect of the domain name processing device provided by the embodiment of the present invention are the same as those of the foregoing domain name processing method embodiment, and for the sake of brief description, no mention is made in the embodiment of the domain name processing device, and reference may be made to the corresponding contents in the foregoing domain name processing method embodiment.
An embodiment of the present invention further provides a domain name server, as shown in fig. 6, where the domain name server includes a processor 130 and a memory 131, the memory 131 stores machine executable instructions capable of being executed by the processor 130, and the processor 130 executes the machine executable instructions to implement the domain name processing method.
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) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 133 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus 132 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 6, but that does not indicate only one bus or one type of bus.
The processor 130 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 130. The Processor 130 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed 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 directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is 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 completes the steps of the method of the foregoing embodiment in combination with the hardware thereof.
The embodiment of the present invention further provides a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the domain name processing method.
The domain name processing method, the domain name processing device and the computer program product of the domain name server provided by the embodiments of the present invention include a computer readable storage medium storing a program code, and instructions included in the program code may be used to execute the method described in the foregoing method embodiments.
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 such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute 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), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A domain name processing method is characterized in that 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 settlement instructions aiming at a plurality of domain names to be processed sent by a user;
sending the settlement instruction to the order server 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 completes 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 status comprises processing success, processing failure or processing waiting.
2. The method of claim 1, wherein the step of sending the settlement instruction to the order server to provide a settlement interface to the user through the order server, and if the user completes settlement, sending a message of settlement completion to a message queue comprises:
calling a created commodity interface of the order server, sending the settlement instruction to the order server through the created commodity interface, and generating 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;
and 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 finished message to the message queue.
3. The method of claim 1, wherein the domain name server is communicatively coupled to 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;
calling a domain name processing interface corresponding to the domain name provider server for each domain name to be processed so as 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, which are 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;
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.
4. 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 for each domain name to be processed, if a message that the current domain name to be processed is successfully processed or unsuccessfully processed is received, updating the processing state of the current domain name to be processed from processing waiting to processing success or processing failure.
5. The method of claim 1, wherein the domain name to be processed comprises: the domain name to be registered, the domain name to be charged or the domain name to be transferred.
6. A domain name processing device is characterized in that 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 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, sending a message of the completion of the settlement to a message queue;
the processing module is used for 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 status comprises processing success, processing failure or processing waiting.
7. The apparatus of claim 6, wherein the sending module is further configured to:
calling a created commodity interface of the order server, sending the settlement instruction to the order server through the created commodity interface, and generating 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;
and 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 finished message to the message queue.
8. The apparatus of claim 6, 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;
calling a domain name processing interface corresponding to the domain name provider server for each domain name to be processed so as 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, which are 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;
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.
9. 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 one of claims 1 to 5.
10. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the domain name processing method of any one of claims 1 to 5.
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 true CN112887446A (en) 2021-06-01
CN112887446B 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 (7)

* 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
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
CN108052398A (en) * 2017-12-12 2018-05-18 苏州比可网络科技有限公司 A kind of feedback method of order processing state and polymerization payment platform
CN109308534A (en) * 2017-07-28 2019-02-05 北京嘀嘀无限科技发展有限公司 Generate the method and terminal device of multiple orders
CN109560940A (en) * 2018-12-26 2019-04-02 网宿科技股份有限公司 A kind of charging method and device of content distribution network CDN service

Patent Citations (7)

* 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
CN104917833A (en) * 2015-06-08 2015-09-16 北京集奥聚合网络技术有限公司 Asynchronous information processing method based on NIO request
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
CN105389209A (en) * 2015-12-25 2016-03-09 中国建设银行股份有限公司 Asynchronous batch task processing method and system
CN109308534A (en) * 2017-07-28 2019-02-05 北京嘀嘀无限科技发展有限公司 Generate the method and terminal device of multiple orders
CN108052398A (en) * 2017-12-12 2018-05-18 苏州比可网络科技有限公司 A kind of feedback method of order processing state and polymerization payment platform
CN109560940A (en) * 2018-12-26 2019-04-02 网宿科技股份有限公司 A kind of charging method and device of content distribution network CDN service

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
腾讯云DNSPOD团队: ""D妹上新,手把手教你批量注册域名"", 《HTTPS://CLOUD.TENCENT.COM/DEVELOPER/ARTICLE/1649135》 *

Also Published As

Publication number Publication date
CN112887446B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
CN110555681B (en) Bank card signing method, device, server and medium
CN111510908B (en) Card opening method, device, equipment and medium
CN111460504A (en) Service processing method, device, node equipment and storage medium
CN111461886B (en) Management method and device for system configuration independent of intelligent contracts on block chains
CN111008206A (en) Method and device for storing state data of cross-chain transaction and storage medium
CN109583980A (en) Method, system, electronic equipment and the storage medium of order processing
CN116016653A (en) Information pushing method and device of blockchain, electronic equipment and storage medium
CN113313594B (en) Order processing method, order processing device, electronic equipment, storage medium and program product
CN112437155B (en) Service data processing method and device and server device
CN110930143A (en) Electronic payment method, device and equipment
CN112887446B (en) Domain name processing method, device and domain name server
CN110619402A (en) Vehicle dispatching method and device, electronic equipment and storage medium
CN109977126A (en) Replacing options, device, electronic equipment and the storage medium of identity
CN111049916A (en) Control method, control device, proxy server and storage medium
CN114553477B (en) Page jump method, device, equipment and storage medium
CN113919845A (en) Parking monthly card online refund method, related device and storage medium
CN111225117B (en) Reminding message issuing method and device
CN113676985A (en) Terminal access control method, device, system, terminal and electronic equipment
CN114640955A (en) Cloud short message issuing method, device and system and electronic equipment
CN110852737A (en) Method for supplementing ticket on unilateral journey through third-party APP
CN112686720B (en) Order production method, order production device, order production equipment and computer readable storage medium
CN109617697B (en) Asynchronous signature method for network node
CN118096148B (en) Cross-chain method, system, equipment and storage medium based on centralized under-chain component
CN118152463A (en) Data processing method, device, equipment and storage medium
CN115641135A (en) Transaction processing method, device and system, electronic equipment and storage medium

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