CN112887445B - Method and device for updating domain name information and domain name server - Google Patents

Method and device for updating domain name information and domain name server Download PDF

Info

Publication number
CN112887445B
CN112887445B CN202110092854.7A CN202110092854A CN112887445B CN 112887445 B CN112887445 B CN 112887445B CN 202110092854 A CN202110092854 A CN 202110092854A CN 112887445 B CN112887445 B CN 112887445B
Authority
CN
China
Prior art keywords
domain name
name information
message queue
updated
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
CN202110092854.7A
Other languages
Chinese (zh)
Other versions
CN112887445A (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 CN202110092854.7A priority Critical patent/CN112887445B/en
Publication of CN112887445A publication Critical patent/CN112887445A/en
Application granted granted Critical
Publication of CN112887445B publication Critical patent/CN112887445B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5076Update or notification mechanisms, e.g. DynDNS

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method, a device and a domain name server for updating domain name information, wherein the method is applied to the domain name server; after receiving a domain name information updating request aiming at a plurality of domain names sent by a user, sending the domain name information updating request to a message queue so as to update the domain name information of the plurality of domain names through the message queue; and then returning a message that the domain name information is successfully updated to the user. In the method, after the received domain name information updating request is sent to the message queue, the message that the domain name information is updated successfully can be returned to the user, and the user does not need to wait for the feedback result of updating the domain name information of a plurality of domain names through the message queue, so that the waiting time of the user is reduced, and the user experience is improved.

Description

Method and device for updating domain name information and domain name server
Technical Field
The present invention relates to the field of domain name processing technologies, and in particular, to a method and an apparatus for updating domain name information, and a domain name server.
Background
When registering a domain name, a user needs to fill in relevant domain name information, such as a mailbox address or a telephone, and after completing domain name registration, if the domain name information is changed, the domain name information needs to be modified in time so as to ensure the accuracy of the domain name information; if a user has a large number of domain names, when domain name information of the large number of domain names is modified, a domain name information modification interface of a domain name registrar server needs to be called in batch, the domain name information modification interface is low in processing speed and long in response time, and the problem that the response of the interface is overtime easily occurs, so that the user needs to wait for a long time to receive a feedback result after the domain name information is modified, and the user experience is reduced.
Disclosure of Invention
The invention aims to provide a method and a device for updating domain name information and a domain name server, so as to reduce the waiting time for a user to receive a feedback result of domain name modification and improve the user experience.
The invention provides a method for updating domain name information, which is applied to a domain name server; the method comprises the following steps: receiving a domain name information updating request aiming at a plurality of domain names sent by a user; the domain name information updating request comprises domain name information to be updated; sending the domain name information updating request to a message queue so as to update the domain name information of the plurality of domain names through the message queue; and returning the message that the domain name information is successfully updated to the user.
Further, the step of sending the domain name information update request to a message queue includes: judging whether the domain name information to be updated meets a preset rule or not; if the domain name information updating request accords with the preset rule, the domain name information updating request is sent to a message queue; the step of returning the message that the domain name information is successfully updated to the user includes: and if the domain name information accords with the preset rule, returning a message that the domain name information is successfully updated to the user.
Further, an association relationship between the message queue and a link address corresponding to the domain name server is preconfigured in a server of the message queue; after the step of sending the domain name information update request to a message queue, the method further includes: storing the domain name information updating request to a message queue database through the message queue; acquiring the domain name information updating request from the message queue database based on the link address corresponding to the domain name server; and calling a domain name information modification interface of a domain name registrar server connected in advance aiming at each domain name, and sending the domain name information updating request to the domain name registrar server through the domain name information modification interface so that the domain name registrar server updates the domain name information of the current domain name based on the domain name information updating request.
Further, the method further comprises: receiving updated domain name information and prompt messages of the current domain name returned by the domain name registrar server; the prompt message is used for indicating whether the domain name information of the current domain name is updated successfully or not; and if the prompt message indicates that the updating of the domain name information of the current domain name is successful, updating the domain name information of the current domain name which is prestored in a domain name system database based on the updated domain name information of the current domain name.
The invention provides a device for updating domain name information, which is arranged on a domain name server; the device comprises: the first receiving module is used for receiving domain name information updating requests aiming at a plurality of domain names sent by a user; the domain name information updating request comprises domain name information to be updated; the sending module is used for sending the domain name information updating request to a message queue so as to update the domain name information of the plurality of domain names through the message queue; and the return module is used for returning the message that the domain name information is successfully updated to the user.
Further, the sending module is further configured to: judging whether the domain name information to be updated meets a preset rule or not; if the domain name information updating request accords with the preset rule, sending the domain name information updating request to a message queue; the return module is further to: and if the domain name information accords with the preset rule, returning a message that the domain name information is successfully updated to the user.
Further, an association relationship between the message queue and a link address corresponding to the domain name server is preconfigured in a server of the message queue; the device further comprises: the storage module is used for storing the domain name information updating request to a message queue database through the message queue; an obtaining module, configured to obtain the domain name information update request from the message queue database based on a link address corresponding to the domain name server; and the calling module is used for calling a domain name information modification interface of a domain name registrar server connected in advance aiming at each domain name, and sending the domain name information updating request to the domain name registrar server through the domain name information modification interface so that the domain name registrar server updates the domain name information of the current domain name based on the domain name information updating request.
Further, the apparatus further comprises: the second receiving module is used for receiving the updated domain name information and prompt message of the current domain name returned by the domain name registrar server; the prompt message is used for indicating whether the domain name information of the current domain name is updated successfully or not; and the updating module is used for updating the domain name information of the current domain name which is pre-stored in a domain name system database based on the updated domain name information of the current domain name if the prompt message indicates that the domain name information of the current domain name is updated successfully.
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 the method for updating domain name information.
The present invention provides a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to carry out a method of updating domain name information as described in any one of the above.
The invention provides a method, a device and a domain name server for updating domain name information, wherein the method is applied to the domain name server; after receiving a domain name information updating request aiming at a plurality of domain names sent by a user, sending the domain name information updating request to a message queue so as to update the domain name information of the plurality of domain names through the message queue; and then returning a message that the domain name information is successfully updated to the user. In the method, after the received domain name information updating request is sent to the message queue, the message that the domain name information is updated successfully can be returned to the user, and the user does not need to wait for the feedback result of updating the domain name information of a plurality of domain names through the message queue, 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 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 method for updating domain name information according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for updating domain name information according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for updating domain name information according to an embodiment of the present invention;
fig. 4 is a flowchart of another method for updating domain name information according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for updating domain name information 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.
At present, the number of domain names owned by a common user is small, and the overtime condition generally does not occur when the domain name information of the domain name is modified; however, when a user has a large number of domain names, the domain name information modification interface of the domain name registrar server needs to be called in batch when modifying the domain name information of the large number of domain names, the processing speed of the interface is low, the response time is long during batch calling, the problem of interface overtime is easy to occur, the user needs to wait for a long time to receive the feedback result after the domain name information is modified, and the user experience is reduced. Based on this, the embodiment of the invention provides a method and a device for updating domain name information and a domain name server, and the technology can be applied to a scene needing to modify the domain name information, and especially can be applied to a scene needing to modify the domain name information in batch.
In order to facilitate understanding of the embodiment, a method for updating domain name information disclosed in the embodiment of the present invention is first described in detail; the method is applied to a domain name server; as shown in fig. 1, the method comprises the steps of:
step S102, receiving a domain name information updating request aiming at a plurality of domain names sent by a user; the domain name information updating request comprises domain name information to be updated.
The domain name information usually includes contact telephone, address, fax, postcode, mailbox, etc. filled in during domain name registration; the domain name information updating request can be understood as a request sent when a user needs to update domain name information of a plurality of domain names, for example, a request sent when a user needs to update a contact telephone, an address, a fax, a postcode, a mailbox and the like in the domain name information of the plurality of domain names, and usually does not include information for updating a domain name registrant; the domain name information to be updated can be understood as the domain name information which is desired to be modified by the user; in actual implementation, if a user has multiple domain names and needs to update domain name information of the multiple domain names in batch, the multiple domain names needing to update the domain name information are usually selected first, the domain name information to be updated is filled in advance, and then domain name information update requests for the multiple domain names are sent to a domain name server; for example, if a user has ten domain names, a zip code in the domain name information of the current ten domain names is 100010, and if the user needs to modify the zip code in the domain name information of the ten domain names to 100020, the ten domain names in the domain name information of the ten domain names are selected first, then the zip code to be updated is filled in, that is, the current zip code 100010 is updated to 100020 in advance, and then a domain name information update request for the ten domain names is sent, where the domain name information update request includes the domain name information to be updated, that is, 100020, and the domain name server receives the domain name information update request.
Step S104, sending the domain name information updating request to a message queue so as to update the domain name information of a plurality of domain names through the message queue.
The message queue may be understood as a container for storing messages during transmission of the messages, and the message queue may be used to provide routing and guarantee delivery of the messages, and if a receiver is unavailable when sending the messages, the message queue may retain the messages until the messages can be successfully delivered; in practical implementation, after receiving the domain name information update request, the domain name server usually sends the domain name information update request to a message queue, and updates the domain name information of a plurality of domain names through the message queue; for example, the user needs to update the zip code in the domain name information of the ten owned domain names, update the current zip code 100010 to 100020, and after receiving the domain name information update request for the ten domain names, the domain name server may send the domain name information update request to the message queue, so as to modify the current zip code 100010 in the domain name information of the ten domain names to 100020 through the message queue.
And step S106, returning a message that the domain name information is successfully updated to the user.
After sending the domain name information update request to the message queue, the domain name server may return prompt information to the user, where the prompt information is used to indicate that the domain name information of the multiple domain names is successfully updated.
After receiving a domain name information updating request aiming at a plurality of domain names sent by a user, sending the domain name information updating request to a message queue so as to update the domain name information of the plurality of domain names through the message queue; and then returning a message that the domain name information is successfully updated to the user. In the method, after the received domain name information updating request is sent to the message queue, the message that the domain name information is updated successfully can be returned to the user, and the user does not need to wait for the feedback result of updating the domain name information of a plurality of domain names through the message queue, so that the waiting time of the user is reduced, and the user experience is improved.
The embodiment of the invention also provides another method for updating the domain name information, which is realized on the basis of the method of the embodiment; as shown in fig. 2, the method comprises the steps of:
step S202, receiving a domain name information updating request aiming at a plurality of domain names sent by a user; the domain name information updating request comprises domain name information to be updated.
Step S204, judging whether the domain name information to be updated meets a preset rule; if the domain name information meets the preset rule, sending a domain name information updating request to a message queue; to update domain name information for a plurality of domain names through a message queue.
The preset rule can be an existing unified rule or a self-defined rule and the like; for example, for the zip code, the coding rule of the zip code can be referred to, for example, the zip code in China adopts a four-level six-digit coding system, the first two digits represent provinces (municipality and municipality), the third digit represents the zip code, the fourth digit represents a county (municipality), and the last two digits represent the position of a delivery area; for another example, for the address, a custom rule may be adopted, if the custom rule requires that the address includes chinese, english, and numbers, and if the address to be updated input by the user lacks any one or more of chinese, english, and numbers, the address to be updated does not conform to the preset rule. In actual implementation, if it is determined that the domain name information to be updated input by the user meets the preset rule, the domain name server may send the received domain name information update request to the message queue, so as to update the domain name information of the plurality of domain names through the message queue.
And step S206, if the domain name information accords with the preset rule, returning a message that the domain name information is successfully updated to the user.
In actual implementation, if it is determined that the domain name information to be updated input by the user meets the preset rule, the domain name server may return a prompt message to the user, where the prompt message is used to indicate that the domain name information of multiple domain names is updated successfully. In this embodiment, after it is determined that the domain name information to be updated conforms to the preset rule, the sequence of the time for sending the domain name information update request to the message queue and the time for returning the message that the domain name information is successfully updated to the user may not be specifically limited, and the user may flexibly set according to actual requirements, for example, if it is determined that the domain name information to be updated conforms to the preset rule, the domain name information update request may be sent to the message queue first, and then the message that the domain name information is successfully updated is returned to the user; or, a message that the domain name information is successfully updated can be returned to the user, and then the domain name information updating request is sent to the message queue; or, the message that the domain name information is updated successfully may be returned to the user while the domain name information update request is sent to the message queue.
After receiving domain name information updating requests aiming at a plurality of domain names sent by a user, if the domain name information to be updated is judged to accord with the preset rule, the domain name information updating requests are sent to a message queue; to update domain name information for a plurality of domain names through a message queue. And if the domain name information conforms to the preset rule, returning a message that the domain name information is successfully updated to the user. In the method, after the received domain name information updating request is sent to the message queue, the message that the domain name information is updated successfully can be returned to the user, and the user does not need to wait for the feedback result of updating the domain name information of a plurality of domain names through the message queue, so that the waiting time of the user is reduced, and the user experience is improved.
The embodiment of the invention also provides another method for updating the domain name information, which is realized on the basis of the method of the embodiment; in the method, a server of a message queue is pre-configured with an incidence relation between the message queue and a link address corresponding to a domain name server; the link address may be in a URL (Uniform Resource Locator) format, where the URL is a representation method for specifying the location of information resources on a web service program on the internet, and each information Resource has a Uniform and unique address on the internet; in practical implementation, the server of the message queue is pre-configured with an association relationship between the message queue and a link address corresponding to the domain name server, and it can be understood that the domain name server subscribes to the message queue and designates the link address corresponding to the domain name server, and the message queue can only forward the message in the message queue to the link address, that is, the domain name server can only consume the message in the message queue; as shown in fig. 3, the method comprises the steps of:
step S302, receiving a domain name information updating request aiming at a plurality of domain names sent by a user; the domain name information updating request comprises domain name information to be updated.
Step S304, sending the domain name information update request to the message queue.
Step S306, the domain name information update request is saved to the message queue database through the message queue.
In actual implementation, after receiving the domain name information update request, the message queue may store the domain name information update request in the message queue database, so as to persistently store the domain name information update request.
Step S308, based on the link address corresponding to the domain name server, the domain name information updating request is obtained from the message queue database.
Because the server of the message queue is pre-configured with the incidence relation between the message queue and the link address corresponding to the domain name server, namely the domain name server subscribes to the message queue, the domain name information updating request can be obtained from the message queue database through the message queue; in actual implementation, the domain name information update request acquired from the message queue database may be forwarded to the link address corresponding to the domain name server based on the link address corresponding to the domain name server, and the domain name server may consume the domain name information update request to perform subsequent domain name information update operation based on the domain name information update request.
Step S310, aiming at each domain name, calling a domain name information modification interface of a domain name registrar server connected in advance, and sending a domain name information updating request to the domain name registrar server through the domain name information modification interface so that the domain name registrar server updates the domain name information of the current domain name based on the domain name information updating request.
In actual implementation, after the domain name server obtains the domain name information update request from the message queue database, the domain name information update request is directed at modifying the domain name information of a plurality of domain names, so that corresponding domain name information update operation can be respectively executed for each domain name, specifically, for a current domain name, the domain name server calls a domain name information modification interface of a domain name registrar server connected in advance to send the domain name information update request to the domain name registrar server, and after receiving the domain name information update request, the domain name registrar server updates the domain name information of the current domain name based on the domain name information to be updated contained in the domain name information update request. This operation is repeatedly performed for each of a plurality of domain names for which the domain name information needs to be updated, so that the domain name registrar server completes the updating of the domain name information for each domain name.
Step S312, receiving updated domain name information and prompt message of the current domain name returned by the domain name registrar server; the prompting message is used for indicating whether the domain name information of the current domain name is updated successfully or not.
For each domain name in a plurality of domain names, after the domain name registrar server finishes updating the domain name information of the current domain name, the updated domain name information and prompt message of the current domain name are usually sent to the domain name server; for example, if the domain name registrar server updates the domain name information of the current domain name successfully, the prompt message may prompt that the domain name information of the current domain name is updated successfully; if the domain name registrar server fails to update the domain name information of the current domain name, the prompt message may prompt that the domain name information of the current domain name fails to update.
Step S314, if the message indicates that the updating of the domain name information of the current domain name is successful, updating the domain name information of the current domain name pre-stored in the domain name system database based on the updated domain name information of the current domain name.
In practical implementation, the domain name information of each domain name is usually updated in sequence, and due to the use of the message queue, the domain name information of a plurality of domain names can be updated in an asynchronous concurrent mode; for example, for a first domain name, after the domain name server sends a domain name information update request to the domain name registrar server by calling a domain name information modification interface, the domain name registrar server updates the domain name information of the first domain name based on the domain name information to be updated contained in the domain name information update request, after the update is completed, returns the updated domain name information of the first domain name and a corresponding prompt message to the domain name server, and if the prompt message indicates that the domain name information of the first domain name is updated successfully, the domain name server updates the domain name information of the first domain name before the update, which is pre-stored in a corresponding domain name system database, based on the updated domain name information of the first domain name; and then updating the domain name information of the second domain name in the same way, and executing the updating operation of the corresponding domain name information in sequence until each domain name in the plurality of domain names is updated.
It should be noted that, if the domain name information of the current domain name is successfully updated, whether to return a message that the domain name information of the current domain name is successfully updated to the user can be determined according to actual requirements, that is, the message that the domain name information of the current domain name is successfully updated can be returned to the user, or the message that the domain name information of the current domain name is successfully updated can not be returned to the user; if the updating of the domain name information of the current domain name fails, usually returning a message that the updating of the domain name information of the current domain name fails to the user so as to prompt the user to repeatedly send a domain name information updating request aiming at the current domain name; however, the failure of updating the domain name information of the current domain name does not affect the updating process of the domain name information of the next domain name, that is, for the next domain name, the operation of calling the domain name information modification interface of the domain name registrar server connected in advance is continuously executed, so as to update the domain name information of the next domain name.
Step S316, a message that the domain name information is updated successfully is returned to the user.
According to the method for updating the domain name information, after domain name information updating requests aiming at a plurality of domain names sent by a user are received, the domain name information updating requests are sent to the message queue, and then the domain name information updating requests are stored to the message queue database through the message queue. And acquiring a domain name information updating request from the message queue database based on the link address corresponding to the domain name server. Calling a domain name information modification interface of a domain name registrar server connected in advance aiming at each domain name, and sending a domain name information updating request to the domain name registrar server through the domain name information modification interface so that the domain name registrar server updates the domain name information of the current domain name based on the domain name information updating request; finally, receiving updated domain name information and prompt messages of the current domain name returned by the domain name registrar server; and if the prompt message indicates that the domain name information of the current domain name is successfully updated, updating the domain name information of the current domain name which is pre-stored in a domain name system database based on the updated domain name information of the current domain name. And returning a message that the domain name information is successfully updated to the user. In the method, after the received domain name information updating request is sent to the message queue, the message that the domain name information is updated successfully can be returned to the user, and the user does not need to wait for the feedback result of updating the domain name information of a plurality of domain names through the message queue, so that the waiting time of the user is reduced, and the user experience is improved.
To further understand the above embodiment, the following provides a flowchart of another method for updating domain name information as shown in fig. 4, where fig. 4 includes a domain name system, a message queue, and a registrar server (corresponding to the above domain name registrar server), where the domain name system is in communication connection with the message queue and the registrar server respectively; a user sends a domain name information updating request aiming at a plurality of domain names through a foreground page of a domain name system, wherein the domain name information updating request comprises data (corresponding to the domain name information to be updated) submitted by the user; after receiving the domain name information updating request, the domain name system verifies whether the submitted data conforms to the rule through a domain name server of the domain name system, if so, the domain name information updating request is sent to a message queue, the domain name server returns a prompt of successful operation (corresponding to the message of successful domain name information updating returned to the user), the message queue receives the domain name information updating request, then stores the domain name information updating request into a corresponding message queue database, the message queue obtains the domain name information updating request from the message queue database according to the association relation between the message queue preconfigured in the server of the message queue and a link address corresponding to the domain name server, and sends the domain name information updating request to the link address corresponding to the domain name server, after receiving the domain name information updating request, the domain name server executes the operation of updating the domain name information, specifically, a domain name information modifying interface of a registrar server can be called for each domain name in a plurality of domain names, and the domain name information updating request is sent to the registrar server through the domain name information modifying interface, so that the registrar server updates the domain name information of the current domain name based on the domain name information. After the registrar server finishes updating the domain name information of the current domain name, the registrar server usually sends the updated domain name information of the current domain name and a prompt message to the domain name server; for example, if the registrar server successfully updates the domain name information of the current domain name, the domain name registrar server may return a message that the domain name information is successfully updated to the domain name server.
In the related art, when a user has a large number of domain names and needs to update domain name information of a plurality of domain names at the same time, if the domain name information of each domain name is updated one by one, the operation amount is large, and a large amount of labor cost needs to be wasted. If the domain name information updating operation of a plurality of domain names is put into one domain name information updating request for processing, a domain name server directly calls a domain name information modifying interface of a domain name registrar server after receiving the domain name information updating request sent by a user, because the currently provided domain name information modifying interface can only modify the domain name information of a single domain name at the same time, modification is usually executed one by one, which is equivalent to serial modification, because the domain names needing to modify the domain name information are more, the processing speed of the domain name information modifying interface is slow, the response time is long, even the problem of interface response overtime can occur, and the user needs to wait for a longer time to receive the feedback result after the domain name information of the plurality of domain names is updated.
The method and the device use the message queue to update the domain name information of a plurality of domain names in an asynchronous concurrent mode, after the domain name information to be updated is verified to be in accordance with the rule, the domain name server can directly return a prompt message of successful user operation to the user, the user can generally default that the domain name information is updated successfully after receiving the prompt message, the user does not need to wait for the final domain name information updating result, the waiting time of the user is reduced, and the user experience is improved; after the fact that the domain name information to be updated meets the rules is verified, the domain name server sends the domain name information updating request to the message queue, due to the fact that the message queue is high in instantaneity of processing messages, after the message queue receives the domain name information updating request sent by the domain name server, the domain name information updating request can be immediately forwarded to a link address corresponding to the domain name server, the domain name server executes corresponding domain name information updating operation after receiving the domain name information updating request sent by the message queue, the waiting time in the domain name information updating process can be reduced by updating the domain name information of a plurality of domain names in an asynchronous concurrent mode, and therefore the processing speed of the domain name server in the domain name information updating operation can be improved.
The embodiment of the invention provides a device for updating domain name information, which is arranged on a domain name server; as shown in fig. 5, the apparatus includes: a first receiving module 50, configured to receive a domain name information update request sent by a user for a plurality of domain names; the domain name information updating request comprises domain name information to be updated; a sending module 51, configured to send a domain name information update request to a message queue, so as to update domain name information of multiple domain names through the message queue; and a returning module 52, configured to return a message that the domain name information is updated successfully to the user.
After receiving a domain name information updating request aiming at a plurality of domain names sent by a user, the device for updating the domain name information sends the domain name information updating request to a message queue so as to update the domain name information of the plurality of domain names through the message queue; and then returning a message that the domain name information is successfully updated to the user. In the device, after the received domain name information updating request is sent to the message queue, the message that the domain name information is updated successfully can be returned to the user, and the user does not need to wait for the feedback result of updating the domain name information of a plurality of domain names through the message queue, so that the waiting time of the user is reduced, and the user experience is improved.
Further, the sending module 51 is further configured to: judging whether the domain name information to be updated conforms to a preset rule or not; if the domain name information meets the preset rule, sending a domain name information updating request to a message queue; the return module is further to: and if the domain name information conforms to the preset rule, returning a message that the domain name information is successfully updated to the user.
Further, a server of the message queue is pre-configured with an association relationship between the message queue and a link address corresponding to the domain name server; the device still includes: the storage module is used for storing the domain name information updating request to a message queue database through a message queue; the acquisition module is used for acquiring a domain name information updating request from the message queue database based on the link address corresponding to the domain name server; the calling module is used for calling a domain name information modification interface of a domain name registrar server connected in advance aiming at each domain name, and sending a domain name information updating request to the domain name registrar server through the domain name information modification interface so that the domain name registrar server updates the domain name information of the current domain name based on the domain name information updating request.
Further, the apparatus further comprises: the second receiving module is used for receiving the updated domain name information and prompt message of the current domain name returned by the domain name registrar server; the prompting message is used for indicating whether the domain name information of the current domain name is updated successfully or not; and the updating module is used for updating the domain name information of the current domain name which is prestored in the domain name system database based on the updated domain name information of the current domain name if the prompt message indicates that the domain name information of the current domain name is updated successfully.
The implementation principle and the generated technical effect of the apparatus for updating domain name information provided by the embodiment of the present invention are the same as those of the above method for updating domain name information, and for brief description, reference may be made to the corresponding content in the above method for updating domain name information, where the embodiment of the apparatus for updating domain name information is not mentioned.
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 method for updating domain name information.
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. 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 method for updating domain name information.
The method, the apparatus, and the computer program product of the domain name server for updating domain name information provided in the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementations may refer to the method embodiments and are not described herein again.
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 (8)

1. A method for updating domain name information is characterized in that the method is applied to a domain name server; the method comprises the following steps:
receiving a domain name information updating request aiming at a plurality of domain names sent by a user; the domain name information updating request comprises domain name information to be updated;
sending the domain name information updating request to a message queue so as to update the domain name information of the plurality of domain names through the message queue;
returning a message that the domain name information is updated successfully to the user;
the server of the message queue is pre-configured with the incidence relation between the message queue and the link address corresponding to the domain name server; the link address is in a URL format; after the step of sending the domain name information update request to a message queue, the method further includes:
storing the domain name information updating request to a message queue database through the message queue;
acquiring the domain name information updating request from the message queue database based on the link address corresponding to the domain name server;
and calling a domain name information modification interface of a domain name register server connected in advance aiming at each domain name, and sending the domain name information updating request to the domain name register server through the domain name information modification interface so as to enable the domain name register server to update the domain name information of the current domain name based on the domain name information updating request.
2. The method of claim 1, wherein the step of sending the domain name information update request to a message queue comprises: judging whether the domain name information to be updated meets a preset rule or not; if the domain name information updating request accords with the preset rule, sending the domain name information updating request to a message queue;
the step of returning the message that the domain name information is successfully updated to the user includes: and if the domain name information accords with the preset rule, returning a message that the domain name information is successfully updated to the user.
3. The method of claim 1, further comprising:
receiving updated domain name information and prompt messages of the current domain name returned by the domain name registrar server; the prompt message is used for indicating whether the domain name information of the current domain name is updated successfully or not;
and if the prompt message indicates that the updating of the domain name information of the current domain name is successful, updating the domain name information of the current domain name which is prestored in a domain name system database based on the updated domain name information of the current domain name.
4. The device for updating the domain name information is characterized in that the device is arranged on a domain name server; the device comprises:
the first receiving module is used for receiving domain name information updating requests aiming at a plurality of domain names sent by a user; the domain name information updating request comprises domain name information to be updated;
the sending module is used for sending the domain name information updating request to a message queue so as to update the domain name information of the plurality of domain names through the message queue;
a returning module, configured to return a message that the domain name information is successfully updated to the user;
the server of the message queue is pre-configured with the incidence relation between the message queue and the link address corresponding to the domain name server; the link address is in a URL format; the device further comprises:
the storage module is used for storing the domain name information updating request to a message queue database through the message queue;
an obtaining module, configured to obtain the domain name information update request from the message queue database based on a link address corresponding to the domain name server;
and the calling module is used for calling a domain name information modification interface of a domain name registrar server connected in advance aiming at each domain name, and sending the domain name information updating request to the domain name registrar server through the domain name information modification interface so that the domain name registrar server updates the domain name information of the current domain name based on the domain name information updating request.
5. The apparatus of claim 4, wherein the sending module is further configured to: judging whether the domain name information to be updated meets a preset rule or not; if the domain name information updating request accords with the preset rule, sending the domain name information updating request to a message queue;
the return module is further to: and if the domain name information accords with the preset rule, returning a message that the domain name information is successfully updated to the user.
6. The apparatus of claim 4, further comprising:
the second receiving module is used for receiving the updated domain name information and prompt message of the current domain name returned by the domain name registrar server; the prompt message is used for indicating whether the domain name information of the current domain name is updated successfully or not;
and the updating module is used for updating the domain name information of the current domain name which is pre-stored in a domain name system database based on the updated domain name information of the current domain name if the prompt message indicates that the domain name information of the current domain name is updated successfully.
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 method of updating domain name information of any one of claims 1 to 3.
8. 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 the method of updating domain name information of any of claims 1 to 3.
CN202110092854.7A 2021-01-22 2021-01-22 Method and device for updating domain name information and domain name server Active CN112887445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110092854.7A CN112887445B (en) 2021-01-22 2021-01-22 Method and device for updating domain name information and domain name server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110092854.7A CN112887445B (en) 2021-01-22 2021-01-22 Method and device for updating domain name information and domain name server

Publications (2)

Publication Number Publication Date
CN112887445A CN112887445A (en) 2021-06-01
CN112887445B true CN112887445B (en) 2023-04-07

Family

ID=76050694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110092854.7A Active CN112887445B (en) 2021-01-22 2021-01-22 Method and device for updating domain name information and domain name server

Country Status (1)

Country Link
CN (1) CN112887445B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873053A (en) * 2021-09-03 2021-12-31 中国银行股份有限公司 Domain name changing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571956A (en) * 2012-01-09 2012-07-11 华为技术有限公司 Correlation identification table updating method, correlation identification method, device and system
CN106202397A (en) * 2016-07-08 2016-12-07 合网络技术(北京)有限公司 A kind of method of data synchronization and device
WO2020015186A1 (en) * 2018-07-19 2020-01-23 平安科技(深圳)有限公司 Method and apparatus for real-time update of page data and electronic device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9715512B2 (en) * 2012-04-27 2017-07-25 Verisign, Inc. Bulk management of registry objects
US9485213B2 (en) * 2013-03-20 2016-11-01 Uniregistry, Corp. Cross registrar compliance and communication mechanism

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571956A (en) * 2012-01-09 2012-07-11 华为技术有限公司 Correlation identification table updating method, correlation identification method, device and system
CN106202397A (en) * 2016-07-08 2016-12-07 合网络技术(北京)有限公司 A kind of method of data synchronization and device
WO2020015186A1 (en) * 2018-07-19 2020-01-23 平安科技(深圳)有限公司 Method and apparatus for real-time update of page data and electronic device

Also Published As

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

Similar Documents

Publication Publication Date Title
CN110830564B (en) CDN scheduling method, device, system and computer readable storage medium
CN112887445B (en) Method and device for updating domain name information and domain name server
CN112398726B (en) Receipt information processing method, system and storage medium for push message
EP3148156A1 (en) Sending method and apparatus and computer storage medium of notification message
CN109685417B (en) Sending information determining method and device
CN110677492A (en) Access request processing method and device, electronic equipment and storage medium
CN113938522A (en) Event message transmission method, system, device and computer storage medium
CN111177182A (en) Data query method and device, storage medium and electronic equipment
US20170085673A1 (en) Attribute Operating Method and Apparatus
WO2010081256A1 (en) Method of and message service gateway for controlling delivery of a message service to an end user
CN101888602A (en) Message processing device and method, message service system and message center
CN106489254B (en) Service access control method and device in broadband cluster system and cluster terminal
CN112039835B (en) Adaptive polling time estimation method, device, equipment and storage medium
CN112989147A (en) Data information pushing method and device, computer equipment and storage medium
CN112929462A (en) Domain name template processing method and device and domain name server
CN110741617A (en) Resource updating method and device, computer equipment and storage medium
CN117827954A (en) Method, device, equipment and storage medium for realizing universal query interface
CN111158716B (en) Version upgrade calling method and device, computer system and readable storage medium
CN112769949A (en) File transmission method and device, electronic equipment and storage medium
CN114338630B (en) Domain name access method, device, electronic equipment, storage medium and program product
CN115766894A (en) Implementation method, device, equipment and medium for improving service performance of Internet of things
CN112968825B (en) Message sending method, device, equipment and storage medium
CN109548020B (en) Compensation method and device after authentication failure, server and storage medium
CN114640955A (en) Cloud short message issuing method, device and system and electronic equipment
CN112181672B (en) Block chain data processing method, block chain system and computer 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