CN112671950B - Domain name processing method and device based on block chain, electronic equipment and storage medium - Google Patents

Domain name processing method and device based on block chain, electronic equipment and storage medium Download PDF

Info

Publication number
CN112671950B
CN112671950B CN202011612948.4A CN202011612948A CN112671950B CN 112671950 B CN112671950 B CN 112671950B CN 202011612948 A CN202011612948 A CN 202011612948A CN 112671950 B CN112671950 B CN 112671950B
Authority
CN
China
Prior art keywords
domain name
information
transaction request
block chain
transfer
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
CN202011612948.4A
Other languages
Chinese (zh)
Other versions
CN112671950A (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202011612948.4A priority Critical patent/CN112671950B/en
Publication of CN112671950A publication Critical patent/CN112671950A/en
Application granted granted Critical
Publication of CN112671950B publication Critical patent/CN112671950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application discloses a domain name processing method and device based on a block chain, electronic equipment and a storage medium, relates to the technical field of block chains, and can be used for cloud computing and cloud services. The specific implementation scheme is as follows: acquiring a domain name processing transaction request comprising domain name information to be processed; calling a domain name processing contract, and executing the domain name processing transaction request according to domain name data recorded in the block chain to obtain an execution result; wherein the domain name data at least comprises domain name registration information; the domain name registration information includes a mapping relationship between a registered domain name and an IP address, and holder account information of the registered domain name. The domain name processing efficiency can be improved.

Description

Domain name processing method and device based on block chain, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a domain name based on a blockchain, an electronic device, and a storage medium.
Background
An IP Address (Internet Protocol Address) is a uniform Address format provided by an IP Protocol, and allocates a logical Address to a certain computer or a group of computers on the Internet, so as to locate and identify the computer during data transmission.
Because the IP address has the disadvantages of inconvenient memory and inability to display the Name and property of the address organization, a Domain Name is designed, and the Domain Name and the IP address are mapped with each other through a Domain Name System (DNS), which can improve the convenience of internet access.
How to process the domain name is very important.
Disclosure of Invention
The disclosure provides a domain name processing method, a domain name processing device, electronic equipment and a storage medium based on a block chain.
According to an aspect of the present disclosure, a domain name processing method based on a block chain is provided, including:
acquiring a domain name processing transaction request comprising domain name information to be processed;
calling a domain name processing contract, and executing the domain name processing transaction request according to domain name data recorded in the block chain to obtain an execution result; wherein the domain name data at least comprises domain name registration information; the domain name registration information includes a mapping relationship between a registered domain name and an IP address, and holder account information of the registered domain name.
According to another aspect of the present disclosure, a domain name processing method based on a block chain is provided, including:
determining domain name information to be processed;
sending a domain name processing transaction request including the domain name information to be processed to a block chain node in a block chain network, wherein the domain name processing transaction request is used for indicating the block chain node to call a domain name processing contract, and executing the domain name processing transaction request according to domain name data recorded in the block chain to obtain an execution result;
wherein the domain name data at least comprises domain name registration information; the domain name registration information includes a mapping relationship between a registered domain name and an IP address, and holder account information of the registered domain name.
According to still another aspect of the present disclosure, there is provided a domain name processing apparatus based on a block chain, including:
the domain name request acquisition module is used for acquiring a domain name processing transaction request comprising domain name information to be processed;
the contract calling module is used for calling a domain name processing contract and executing the domain name processing transaction request according to domain name data recorded in the block chain to obtain an execution result; wherein the domain name data at least comprises domain name registration information; the domain name registration information includes a mapping relationship between a registered domain name and an IP address, and holder account information of the registered domain name.
According to still another aspect of the present disclosure, there is provided a domain name processing apparatus based on a block chain, including:
the domain name information determining module is used for determining domain name information to be processed;
a domain name request sending module, configured to send a domain name processing transaction request including the to-be-processed domain name information to a block chain node in a block chain network, where the domain name processing transaction request is used to instruct the block chain node to invoke a domain name processing contract, and execute the domain name processing transaction request according to domain name data recorded in the block chain to obtain an execution result;
wherein the domain name data at least comprises domain name registration information; the domain name registration information includes a mapping relationship between a registered domain name and an IP address, and holder account information of the registered domain name.
According to a fifth aspect, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of domain name processing based on a blockchain as described in any one of the embodiments of the present application.
According to a sixth aspect, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of domain name processing based on blockchains as described in any one of the embodiments of the present application.
According to a seventh aspect, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method of domain name processing based on blockchains of any one of the embodiments of the present application.
According to the technology of the application, the domain name processing efficiency can be improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic flowchart of a domain name processing method based on a block chain according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another domain name processing method based on a block chain according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another domain name processing method based on a blockchain according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another domain name processing method based on a block chain according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another domain name processing method based on a blockchain according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another domain name processing method based on a blockchain according to an embodiment of the present disclosure;
fig. 7 is a schematic flowchart of another domain name processing method based on a block chain according to an embodiment of the present application;
fig. 8 is a schematic flowchart of another domain name processing method based on a blockchain according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a domain name processing apparatus based on a block chain according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a domain name processing apparatus based on a block chain according to an embodiment of the present application;
fig. 11 is a block diagram of an electronic device for implementing a domain name processing method based on a block chain according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic flowchart of a domain name processing method based on a block chain according to an embodiment of the present application. The embodiment of the application can be applied to the conditions of registration, transaction or analysis and the like of the domain name. The domain name processing method based on a block chain disclosed in this embodiment may be executed by an electronic device, and specifically may be executed by a domain name processing apparatus based on a block chain, which is configured in a block chain node, and the apparatus may be implemented by software and/or hardware and is configured in an electronic device. Referring to fig. 1, the domain name processing method based on the block chain provided in this embodiment includes:
s110, obtaining a domain name processing transaction request including domain name information to be processed.
S120, calling a domain name processing contract, and executing the domain name processing transaction request according to domain name data recorded in the block chain to obtain an execution result; wherein the domain name data at least comprises domain name registration information; the domain name registration information includes a mapping relationship between a registered domain name and an IP address, and holder account information of the registered domain name.
In this embodiment of the present application, each of the organization nodes participating in DNS processing may jointly establish a block chain network, each organization node may have a certificate (CA certificate) issued by a Certificate Authority (CA), and the organization node may endorse its own node data using the CA certificate. Domain name processing contracts (namely domain name processing intelligent contracts) can be deployed in the block chain nodes of the block chain network, and the domain name processing contracts are used for providing block chain services such as domain name registration, domain name transaction, domain name resolution and the like according to domain name data in the block chains. The domain name information to be processed can be domain name information to be registered, domain name information to be traded, domain name information to be analyzed and the like. The embodiment of the present application does not specifically limit the type, the consensus mechanism, and the like of the block chain network, and for example, the block chain network may be a coalition chain network adopting a byzantine consensus mechanism.
Wherein, a user node (i.e. a client) can create a blockchain account, and obtain a blockchain address, a blockchain public key and a blockchain private key. It should be noted that, in the embodiment of the present application, a user node may belong to a block chain network, for example, the user node may be a lightweight node or a full-scale node, the full-scale node may record full-scale block chain data or may be configured with a domain name processing contract, and the lightweight node may record only a block header without recording a block and without configuring a domain name processing contract. In addition, the user node may not belong to the blockchain network, e.g., the user node may create a blockchain account by running a blockchain wallet.
In the case that the user node does not belong to the blockchain network, the user node may be configured with an IP address of at least one blockchain node and a CA root certificate of an organization to which the blockchain node belongs in advance. The user node may connect the blockchain network according to the IP address of at least one blockchain node, send a transaction request to the blockchain network, and may also verify the validity of the CA certificate of the organization node according to the CA root certificate.
Specifically, under the condition that the user node does not belong to the block chain network or is a lightweight node, the user node can determine domain name information to be processed according to service requirements, select an IP address of at least one block chain node from IP addresses of preconfigured block chain nodes, and send a domain name processing transaction request including the domain name information to be processed to the selected block chain node; and the selected block chain link point acquires the domain name processing transaction request, calls a domain name processing contract, and executes the domain name processing transaction request according to the domain name data to obtain an execution result. For domain name processing transaction requests requiring consensus, such as domain name registration, domain name transaction, etc., the selected blockchain node can also synchronize the domain name processing transaction request and the execution result to other blockchain nodes in the blockchain network, and the execution result is confirmed by the other blockchain nodes based on the consensus mechanism. Still taking the case that the consensus mechanism is the byzantine consensus mechanism as an example, the execution result is confirmed when 2/3 of the total number of identification nodes in the blockchain network agree with the execution result. It should be noted that, in the case that the user node is a full-scale node, the user node itself has a block chain and a domain name processing contract, and the user node itself may execute the domain name processing transaction request, which is not described in detail. The block chain services such as domain name registration, domain name transaction, domain name resolution and the like are provided through a domain name processing contract in the block chain network, a centralized DNS system is not required, a third-party intermediary is not required to be relied on for second-hand domain name transaction, the processing efficiency and stability of domain name registration, transaction, resolution and the like can be improved, and the domain name processing cost of a user is reduced.
According to the technical scheme provided by the embodiment of the application, decentralized domain name processing service is provided through the block chain network, and the domain name processing service integrates the processes of domain name registration, transaction, resolution and the like, so that the domain name processing efficiency and stability can be improved, the convenience of domain name processing is improved, and the domain name processing cost of a user is reduced.
Fig. 2 is a schematic flowchart of another domain name processing method based on a blockchain according to an embodiment of the present disclosure. The present embodiment is an alternative proposed on the basis of the above-described embodiments. Referring to fig. 2, the domain name processing method based on the block chain provided in this embodiment includes:
s210, acquiring a domain name registration transaction request comprising a mapping relation between the domain name to be registered and the IP address.
And S220, calling a domain name processing contract, and determining whether the domain name to be registered is registered according to domain name registration information recorded in the block chain.
And S230, under the condition of unregistering, taking the account information of the initiator of the domain name registration transaction request as the account information of the holder of the domain name to be registered.
S240, adding the mapping relation between the domain name to be registered and the IP address and the owner account information of the domain name to be registered into the domain name registration information of the block chain as the execution result.
The domain name registration information may include a mapping relationship between a registered domain name and an IP address, and holder account information of the registered domain name.
In the embodiment of the application, under the condition that the user node needs to register the domain name, the user node can determine the domain name to be registered and the IP address to be registered, take the mapping relation between the domain name to be registered and the IP address as the domain name information to be processed, and send a domain name registration transaction request comprising the mapping relation between the domain name to be registered and the IP address to the block chain nodes.
Specifically, the block chain node acquires a domain name registration transaction request, calls a domain name processing contract, and determines whether a domain name is to be registered in domain name registration information of the block chain; when the domain name to be registered is in the domain name registration information, the domain name to be registered is registered, and the domain name registration transaction request is rejected; when the domain name registration information does not contain the domain name to be registered, it is indicated that the domain name to be registered is not registered, the initiator account information (i.e., the user node account information) of the domain name processing transaction request can be used as the holder account information of the domain name to be registered, and the mapping relationship between the domain name to be registered and the IP address and the holder account information of the domain name to be registered can be added to the domain name registration information as the execution result, so that the domain name to be registered becomes the registered domain name, and the subsequent repeated registration is avoided. The domain name registration block chain service is provided through a domain name processing contract, namely, domain name registration can be managed by a plurality of decentralized organizations together.
In addition, in the domain name registration process, the blockchain network can also charge domain name registration cost for the initiator of the domain name registration transaction request, and the blockchain can also record the domain name cost information of each account.
According to the technical scheme provided by the embodiment of the application, the domain name registration is managed by a plurality of decentralized organizations, so that the problems of centralized downtime, cheating or unreasonable cost and the like can be avoided, and the reliability of the domain name registration is further improved.
Fig. 3 is a schematic flowchart of another domain name processing method based on a blockchain according to an embodiment of the present disclosure. The present embodiment is an alternative proposed on the basis of the above-described embodiments. Referring to fig. 3, the domain name processing method based on the block chain provided in this embodiment includes:
and S310, acquiring a domain name transfer transaction request comprising the domain name to be transferred and the transfer fee.
And S320, calling a domain name processing contract, and determining whether the initiator account of the domain name transfer transaction request is consistent with the holder account of the domain name to be transferred according to the domain name registration information recorded by the block chain.
And S330, under the condition of consistency, adding the domain name to be transferred and the transfer fee into domain name transfer information as execution results.
In the embodiment of the present application, the domain name registration information may include a mapping relationship between a registered domain name and an IP address, and holder account information of the registered domain name.
In the embodiment of the present application, the domain name data may further include domain name assignment information; the domain name transfer information may include a domain name to be transferred and a transfer fee. Specifically, the domain name processing contract may maintain domain name transfer information including the domain name to be transferred and the transfer fee, for example, the domain name processing contract may generate a domain name transfer list according to the domain name to be transferred and the transfer fee in the read-write set, so as to improve the use efficiency of the subsequent domain name transfer information.
In the embodiment of the application, under the condition that the user node needs to transfer the domain name, the user node can determine the domain name to be transferred and the transfer cost, and send a domain name transfer transaction request comprising the domain name to be transferred and the transfer cost to the block nodes.
Specifically, the block link point acquires a domain name transfer transaction request, invokes a domain name processing contract, queries a holder account of the domain name to be transferred from domain name registration information, and determines whether an initiator account (i.e., an account of the user node) of the domain name transfer transaction request is consistent with the holder account of the domain name to be transferred; under the condition of inconsistency, the initiator of the domain name transfer transaction request has no right to transfer, and the domain name transfer transaction request is rejected; under the condition of consistency, the domain name processing contract can add the domain name to be transferred and the transfer fee as execution results into the domain name transfer information, and the domain name transfer information is used for receiving and placing the domain name by other user nodes. It should be noted that the block chain node may also charge the transfer commission to the originator of the domain name transfer transaction request. The domain name transfer service with decentralization is provided through the block chain network, and the reliability of the domain name transfer service can be improved.
According to the technical scheme provided by the embodiment of the application, a plurality of decentralized organizations record domain name transfer information through the commonly managed block chains, so that the problems of centralized downtime, cheating or unreasonable cost and the like can be avoided, and the credibility of domain name transfer is further improved.
Fig. 4 is a schematic flowchart of another domain name processing method based on a blockchain according to an embodiment of the present disclosure. The present embodiment is an alternative proposed on the basis of the above-described embodiments. Referring to fig. 4, the domain name processing method based on the block chain provided in this embodiment includes:
s410, obtaining the domain name receiving transaction request including the domain name information to be received.
And S420, calling a domain name processing contract, and inquiring the transfer cost of the domain name to be received from the domain name transfer information according to the domain name information to be received.
And S430, under the condition that the disposable cost of the account of the initiator of the domain name receiving transaction request is equal to or more than the transfer cost of the domain name to be received, transferring the domain name to be received to obtain an execution result, and updating domain name registration information according to the execution result.
In the embodiment of the present application, the domain name registration information may include a mapping relationship between a registered domain name and an IP address, and holder account information of the registered domain name. The domain name data may also include domain name assignment information; the domain name transfer information may include a domain name to be transferred and a transfer fee.
In the embodiment of the application, when the user node needs to receive the second-hand domain name, the domain name information to be received, that is, the second-hand domain name information to be received can be determined, and a domain name receiving transaction request including the domain name information to be received is sent to the block link node.
Specifically, the block link point acquires a domain name receiving transaction request, calls a domain name processing contract, and inquires transfer cost of a domain name to be received from domain name transfer information; inquiring the disposable charge of an account of an initiator of the domain name receiving transaction request, and determining whether the disposable charge is equal to or more than the transfer charge of the domain name to be received; and under the condition that the disposable cost is equal to or more than the transfer cost of the domain name to be received, transferring the domain name to be received, namely taking the initiator of the domain name receiving transaction request as a new holder of the domain name to be received, transferring the cost of the initiator of the domain name receiving transaction request to an original holder of the domain name to be received, acquiring a new IP address of the domain name to be received from the initiator of the domain name receiving transaction request, establishing a mapping relation between the domain name to be received and the new IP address, and updating domain name registration information. And after the domain name registration information is updated, the updated domain name registration information can be returned to the initiator of the domain name receiving transaction request and the original owner of the domain name to be received. And refusing the domain name receiving transaction request under the condition that the disposable cost is less than the transfer cost of the domain name to be received. By providing the decentralized domain name receiving and placing service according to the domain name transfer information in the block chain, the domain name receiving and placing efficiency can be improved, the stability and the reliability of the domain name receiving and placing service can be improved, and the user cost is reduced.
In an optional implementation manner, before obtaining the domain name receiving transaction request including the domain name information to be received, the method further includes: acquiring an assignment domain name query transaction request comprising a domain name screening condition; calling a domain name processing contract, and selecting candidate transfer domain name information meeting the domain name screening condition from the domain name transfer information; and feeding back the candidate transfer domain name information to the initiator of the transfer domain name query transaction request, wherein the initiator for the transfer domain name query transaction request selects the domain name information to be received from the candidate transfer domain name information.
The domain name screening condition may be a domain name constraint condition that a user needs to receive, such as a syllable number, a syllable type, a voice type, a transfer fee, and the like, and specifically may be a consonant number, a numeric number, an english character, a chinese character, and the like.
Specifically, before initiating a domain name receiving transaction request, the block link points may further obtain a transfer domain name query transaction request including a domain name screening condition, which is initiated by a user node, and invoke a domain name processing contract, so as to match the domain name screening condition with a domain name to be transferred and/or transfer cost in domain name transfer information to obtain candidate transfer domain name information, such as candidate transfer domain name identification and/or transfer cost; and feeding back the candidate transfer domain name information to the user node, so that the user node can select the domain name information to be received from the candidate transfer domain name information. The domain name transfer information is maintained through the block chain nodes, and the candidate transfer domain name information is provided for the user from the domain name transfer information, so that the accuracy of the candidate transfer domain name information can be improved, and the domain name collecting and placing efficiency is further improved.
In addition, in order to improve the reliability of the candidate transfer domain name information, the block chain nodes can also adopt private keys of the block chain nodes to sign the candidate transfer domain name information in the process of feeding back the candidate transfer domain name information, the block chain nodes can also feed back the CA certificate of the block chain nodes, the candidate transfer domain name information and signature data of the candidate transfer domain name information to the user nodes, the CA certificate and the signature data received by the user nodes are verified, and the candidate transfer domain name information is used when the verification is passed.
According to the technical scheme provided by the embodiment of the application, the domain name transfer information is maintained through the block chain nodes, the domain name collection and placement are managed through a plurality of decentralized organizations, the problems of centralized downtime, cheating or unreasonable cost and the like can be avoided, and the reliability of the domain name collection and placement is further improved.
Fig. 5 is a schematic flowchart of another domain name processing method based on a blockchain according to an embodiment of the present disclosure. This embodiment is an alternative proposed on the basis of the above-described embodiments. Referring to fig. 5, the domain name processing method based on the block chain provided in this embodiment includes:
s510, acquiring a domain name resolution transaction request comprising a target domain name.
S520, calling a domain name processing contract, and inquiring a target IP address associated with the target domain name from the domain name registration information.
S530, determining an execution result according to the target IP address, returning the execution result to the initiator of the domain name resolution transaction request, and accessing the target IP address by the initiator.
The domain name registration information may include a mapping relationship between a registered domain name and an IP address, and holder account information of the registered domain name.
In the embodiment of the present application, when a user node needs to access a certain domain name, the domain name may be used as a target domain name, and a domain name resolution transaction request including the target domain name is generated. And the block chain link point responds to the domain name resolution transaction request, calls a domain name processing contract, inquires a target IP address associated with the target domain name from the domain name registration information, determines an execution result according to the target IP address, returns the execution result to an initiator of the domain name resolution transaction request, and accesses the target IP address by the initiator. When a plurality of IP addresses are associated with a target domain name in the domain name registration information, the newly associated IP address may be used as the target IP address; and under the condition that the target domain name does not exist in the domain name registration information, returning target domain name error reminding information to the initiator. By providing the decentralized domain name resolution service according to the domain name registration information in the block chain, not only the domain name resolution efficiency can be improved, but also the stability and reliability of the domain name resolution service can be improved.
In an optional implementation manner, the determining an execution result according to the target IP address and returning the execution result to the initiator of the domain name resolution transaction request includes: signing the target IP address to obtain signature data; and taking the target IP address, the signature data and the block chain node certificate as an execution result, returning the execution result to an initiator of the domain name resolution transaction request, verifying the target IP address by the initiator according to the signature data and the block chain node certificate, and accessing the target IP address according to a verification result.
Specifically, the block link point may further sign the target IP address by using a private key of its own block link account to obtain signature data of the target IP address, and the block link point may return the target IP address, the signature data of the target IP address, and a CA certificate preset by the block link point to the initiator of the domain name resolution transaction request as execution results. The initiator can adopt the account public key of the block chain node to verify the signature of the signature data in the execution result, and also can adopt a CA root certificate preset by the initiator to verify the validity of the CA certificate in the execution result, and under the condition that both the signature verification result of the signature data and the validity of the CA certificate pass, the initiator can trust and use the target IP address; in the case that the signature verification result of the signature data and/or the validity check of the CA certificate fail, the initiator may reinitiate the resolution transaction request for the target domain name to other block chain nodes. The accuracy of the target IP address can be further improved through the verification of the validity of the signature and the CA certificate.
In addition, under the condition that the initiator trusts the target IP address, the mapping relation between the target domain name and the target ID address can be written into the cache of the initiator, so that the subsequent initiator can directly access the target IP address by using the mapping relation in the cache without repeated analysis, the access efficiency can be improved, and the system resources can be saved.
According to the technical scheme provided by the embodiment of the application, the domain name resolution service is provided according to the domain name registration information in the block chain, so that the domain name resolution efficiency and reliability can be improved; moreover, the signature data of the block chain node, the CA certificate and the target IP address are used as execution results, so that the accuracy of the target IP address can be further improved.
Fig. 6 is a schematic flowchart of a domain name processing method based on a block chain according to an embodiment of the present application. The embodiment of the application can be applied to the conditions of registration, transaction or analysis and the like of the domain name. The domain name processing method based on the block chain disclosed in this embodiment may be executed by an electronic device, and specifically may be executed by a domain name processing apparatus based on the block chain, which is configured in a user node, and the apparatus may be implemented by software and/or hardware and is configured in the electronic device. Referring to fig. 6, the domain name processing method based on the block chain provided in this embodiment includes:
s610, determining domain name information to be processed.
S620, sending a domain name processing transaction request including the domain name information to be processed to a block chain node in the block chain network, wherein the domain name processing transaction request is used for indicating the block chain node to call a domain name processing contract, and executing the domain name processing transaction request according to domain name data recorded in the block chain to obtain an execution result.
The domain name data may include at least domain name registration information, and the domain name registration information may include a mapping relationship between a registered domain name and an IP address, and holder account information of the registered domain name.
Specifically, a user node (i.e., a client) may create a blockchain account, and obtain a blockchain address, a blockchain public key, and a blockchain private key. It should be noted that, in the embodiment of the present application, the user node may belong to a block chain network, for example, the user node may be a lightweight node or a full-scale node. In addition, the user node may not belong to the blockchain network, e.g., the user node may create a blockchain account by running a blockchain wallet.
In the case that the user node does not belong to the blockchain network, the user node may be configured with an IP address of at least one blockchain node and a CA root certificate of an organization to which the blockchain node belongs in advance. The user node may connect the blockchain network according to the IP address of at least one blockchain node, and may also verify the validity of the CA certificate of the organization node according to the CA root certificate.
Specifically, under the condition that the user node does not belong to the block chain network or is a lightweight node, the user node may determine domain name information to be processed according to service requirements, select an IP address of at least one block chain node from IP addresses of block chain nodes configured in advance, send a domain name processing transaction request including the domain name information to be processed to the selected block chain node, and execute the domain name processing transaction request according to domain name data in the block chain by selecting the block chain node. The block chain service is provided through a domain name processing contract in the block chain network, a centralized DNS system is not required, second-hand domain name transaction is not required to be carried out by a third-party intermediary, the processing efficiency and stability of domain name registration, transaction, resolution and the like can be improved, and the domain name processing cost of a user is reduced.
The domain name information to be processed may be a mapping relationship between a domain name to be registered and an IP address, a domain name to be transferred and a transfer fee, or domain name information to be received.
According to the technical scheme provided by the embodiment of the application, the block chain network provides decentralized domain name processing service for the user node according to the domain name data in the block chain based on the domain name processing contract, so that the domain name processing efficiency and stability can be improved, and the domain name processing cost of the user can be reduced.
Fig. 7 is a schematic flowchart of another domain name processing method based on a blockchain according to an embodiment of the present disclosure. The present embodiment is an alternative proposed on the basis of the above-described embodiments. Referring to fig. 7, the domain name processing method based on the block chain provided in this embodiment includes:
and S710, determining the domain name information to be processed.
S720, under the condition that the domain name information to be processed is the domain name information to be received, sending a domain name receiving transaction request including the domain name information to be received to a block chain node in the block chain network, wherein the domain name receiving transaction request is used for indicating the block chain node to call a domain name processing contract, and executing the domain name receiving transaction request according to domain name data recorded in the block chain to obtain an execution result.
The domain name data may at least include domain name registration information, where the domain name registration information includes a mapping relationship between a registered domain name and an IP address, and holder account information of the registered domain name. The domain name data may further include domain name assignment information; the domain name transfer information comprises a domain name to be transferred and a transfer fee. The domain name information to be received may be a domain name identifier to be received.
Specifically, when the user node needs to receive the second-hand domain name, the domain name information to be received, that is, the second-hand domain name information to be received, may be determined, and a domain name receiving transaction request including the domain name information to be received may be sent to the block link node.
In an optional implementation manner, before sending a domain name receiving transaction request including domain name information to be received to a blockchain node in a blockchain network, the method further includes: sending a transfer domain name query transaction request including a domain name screening condition to a block chain node, for instructing the block chain node to execute the following steps: calling a domain name processing contract, and selecting candidate transfer domain name information meeting the domain name screening condition from the domain name transfer information; and selecting the domain name information to be received from the candidate transfer domain name information fed back by the block chain node.
The domain name screening condition may be a domain name constraint condition that a user needs to receive, such as number of syllables, type of voice, transfer fee, and the like. Specifically, before initiating a domain name receiving transaction request, the block link points may further obtain a transfer domain name query transaction request including a domain name screening condition, which is initiated by the user node, invoke a domain name processing contract, and match the domain name screening condition with a domain name to be transferred and/or transfer cost in the domain name transfer information to obtain candidate transfer domain name information, such as candidate transfer domain name identification and/or transfer cost. The user node can also select the domain name information to be received from the candidate transfer domain name information. The domain name transfer information is maintained through the block chain nodes, and the candidate transfer domain name information is provided for the user from the domain name transfer information, so that the accuracy of the candidate transfer domain name information can be improved.
In an optional implementation manner, when the information of the domain name to be processed is a mapping relationship between the domain name to be registered and the IP address, a domain name registration transaction request including the mapping relationship between the domain name to be registered and the IP address may also be sent to a node of a block chain in the block chain network.
Wherein, the domain name registration transaction request is used to instruct the block chain node to execute the following steps: calling a domain name processing contract, and determining whether the domain name to be registered is registered according to domain name registration information recorded in the block chain; under the condition of unregistering, taking the account information of an initiator of the domain name registration transaction request as the account information of a holder of the domain name to be registered; and adding the mapping relation between the domain name to be registered and the IP address and the owner account information of the domain name to be registered into domain name registration information of the block chain as the execution result.
In an optional implementation manner, when the to-be-processed domain name information is a to-be-transferred domain name and a transfer fee, a domain name transfer transaction request including the to-be-transferred domain name and the transfer fee may also be sent to a blockchain node in a blockchain network.
Wherein, the domain name transfer transaction request is used for indicating the block chain node to execute the following steps: calling a domain name processing contract, and determining whether an initiator account of the domain name transfer transaction request is consistent with a holder account of the domain name to be transferred according to domain name registration information recorded by a block chain; and under the condition of consistency, adding the domain name to be transferred and the transfer fee into domain name transfer information as an execution result.
According to the technical scheme provided by the embodiment of the application, the block chain network provides decentralized domain name receiving and placing service, domain name registration service and domain name transfer service for the user node according to the domain name data in the block chain based on the domain name processing contract, and the domain name service efficiency and stability can be improved.
Fig. 8 is a schematic flowchart of another domain name processing method based on a blockchain according to an embodiment of the present disclosure. The present embodiment is an alternative proposed on the basis of the above-described embodiments. Referring to fig. 8, the domain name processing method based on the block chain provided in this embodiment includes:
and S810, determining domain name information to be processed.
And S820, sending a domain name resolution transaction request including the target domain name to a block chain node in the block chain network under the condition that the domain name information to be processed is the target domain name, wherein the domain name resolution transaction request is used for indicating the block chain node to call a domain name processing contract, and executing the domain name resolution transaction request according to domain name data recorded in the block chain to obtain an execution result.
The domain name data may at least include domain name registration information, where the domain name registration information includes a mapping relationship between a registered domain name and an IP address, and holder account information of the registered domain name. The domain name data may further include domain name assignment information; the domain name transfer information comprises a domain name to be transferred and a transfer fee. The target domain name is a domain name to be resolved to be accessed by the user node.
The domain name resolution transaction request is specifically used for instructing the block chain network node to execute the following steps: calling a domain name processing contract, and inquiring a target IP address associated with the target domain name from the domain name registration information; and determining an execution result according to the target IP address, returning the execution result to an initiator of the domain name resolution transaction request, and accessing the target IP address by the initiator.
The block chain link point can also sign the target IP address to obtain signature data; and taking the target IP address, the signature data and the block chain link point certificate as an execution result. Correspondingly, the user node can adopt the account public key of the block chain node to check the signature data in the execution result, and can also adopt a CA root certificate preset by the initiator to check the validity of the CA certificate in the execution result, and under the condition that the signature data check result and the CA certificate validity check both pass, the user node can trust and use the target IP address. In addition, after the user node trusts the target IP address, the mapping relationship between the target domain name and the target ID address can also be written into the cache of the initiator.
In an optional implementation manner, before sending a domain name resolution transaction request including a target domain name to a blockchain node in a blockchain network, the method further includes: determining whether a target IP address associated with the target domain name exists in a cache of a local node; and generating the domain name resolution transaction request under the condition that the target IP address does not exist in the cache. Under the condition that a user node needs to access a target domain name, whether a mapping relation between the target domain name and a target ID address exists in a cache of the user node is determined; under some conditions, the target IP address can be directly accessed without domain name resolution through a block chain network, so that the access efficiency can be improved, and system resources can be saved.
According to the technical scheme provided by the embodiment of the application, a block chain network provides a decentralized domain name resolution service for the user node according to domain name data in the block chain based on a domain name processing contract, and the domain name resolution efficiency and stability can be improved.
Fig. 9 is a schematic structural diagram of a domain name processing apparatus based on a block chain according to an embodiment of the present application. Referring to fig. 9, a domain name processing apparatus 900 based on a block chain according to an embodiment of the present application may include:
a domain name request obtaining module 901, configured to obtain a domain name processing transaction request including domain name information to be processed;
a contract calling module 902, configured to call a domain name processing contract, and execute the domain name processing transaction request according to domain name data recorded in the block chain to obtain an execution result; wherein the domain name data at least comprises domain name registration information; the domain name registration information includes a mapping relationship between a registered domain name and an IP address, and holder account information of the registered domain name.
In an alternative embodiment, the domain name data further includes domain name assignment information; the domain name transfer information comprises a domain name to be transferred and a transfer fee.
In an optional implementation manner, the domain name request obtaining module 901 is specifically configured to: acquiring a domain name registration transaction request comprising a mapping relation between a domain name to be registered and an IP address;
the contract invocation module 902 includes:
a registration determining unit, configured to invoke a domain name processing contract, and determine whether the domain name to be registered is registered according to domain name registration information recorded in the block chain;
a holder determining unit, configured to use, in an unregistered case, initiator account information of the domain name registration transaction request as holder account information of a domain name to be registered;
and the registration information updating unit is used for adding the mapping relation between the domain name to be registered and the IP address and the owner account information of the domain name to be registered into the domain name registration information of the block chain as the execution result.
In an optional implementation manner, the domain name request obtaining module 901 is specifically configured to: acquiring a domain name transfer transaction request comprising a domain name to be transferred and transfer cost;
the contract invocation module 902 includes:
the account consistency unit is used for calling a domain name processing contract and determining whether the initiator account of the domain name transfer transaction request is consistent with the holder account of the domain name to be transferred according to domain name registration information recorded by the blockchain;
and the transfer information updating unit is used for adding the domain name to be transferred and the transfer fee into the domain name transfer information as an execution result under the condition of consistency.
In an optional implementation manner, the domain name request obtaining module 901 is specifically configured to: acquiring a domain name receiving transaction request comprising domain name information to be received;
the contract invocation module 902 includes:
the transfer expense query unit is used for calling a domain name processing contract and querying the transfer expense of the domain name to be received from the domain name transfer information according to the domain name information to be received;
and the domain name transfer unit is used for transferring the domain name to be received to obtain an execution result and updating domain name registration information according to the execution result under the condition that the disposable cost of the initiator account of the domain name receiving transaction request is equal to or more than the transfer cost of the domain name to be received.
In an alternative embodiment, the block chain-based domain name processing apparatus 900 further includes a transfer domain name query module including:
the transfer domain name query unit is used for acquiring a transfer domain name query transaction request comprising a domain name screening condition;
the candidate transfer domain name selection unit is used for calling a domain name processing contract and selecting candidate transfer domain name information meeting the domain name screening condition from the domain name transfer information;
and the candidate transfer domain name feedback unit is used for feeding back the candidate transfer domain name information to the initiator of the transfer domain name query transaction request, and the initiator of the transfer domain name query transaction request selects the domain name information to be received from the candidate transfer domain name information.
In an optional implementation manner, the domain name request obtaining module 901 is specifically configured to: acquiring a domain name resolution transaction request comprising a target domain name;
the contract invocation module 902 includes:
a target domain name query unit, configured to invoke a domain name processing contract, and query a target IP address associated with the target domain name from the domain name registration information;
and the target domain name feedback unit is used for determining an execution result according to the target IP address, returning the execution result to the initiator of the domain name resolution transaction request, and accessing the target IP address by the initiator.
In an optional implementation manner, the target domain name feedback unit is specifically configured to:
signing the target IP address to obtain signature data;
and taking the target IP address, the signature data and the block chain node certificate as an execution result, returning the execution result to an initiator of the domain name resolution transaction request, verifying the target IP address by the initiator according to the signature data and the block chain node certificate, and accessing the target IP address according to a verification result.
According to the technical scheme of the embodiment of the application, the domain name processing service is managed by a plurality of decentralized organizations together, and the domain name registration, transaction, analysis and other processing are integrated, so that the problems of centralized downtime, cheating or unreasonable cost and the like can be avoided, and the domain name processing efficiency is improved.
Fig. 10 is a schematic structural diagram of a domain name processing apparatus based on a block chain according to an embodiment of the present application. Referring to fig. 10, a domain name processing apparatus 1000 based on a block chain according to an embodiment of the present application may include:
a domain name information determining module 1001 configured to determine domain name information to be processed;
a domain name request sending module 1002, configured to send a domain name processing transaction request including the to-be-processed domain name information to a block chain node in a block chain network, where the domain name processing transaction request is used to instruct the block chain node to invoke a domain name processing contract, and execute the domain name processing transaction request according to domain name data recorded in the block chain to obtain an execution result;
wherein the domain name data at least comprises domain name registration information; the domain name registration information includes a mapping relationship between a registered domain name and an IP address, and holder account information of the registered domain name.
In an alternative embodiment, the domain name data further includes domain name assignment information; the domain name transfer information comprises a domain name to be transferred and a transfer fee.
In an optional implementation manner, the domain name request sending module 1001 is specifically configured to perform at least one of the following:
sending a domain name registration transaction request comprising a mapping relation between a domain name to be registered and an IP address to a block chain node in a block chain network;
sending a domain name transfer transaction request comprising a domain name to be transferred and transfer cost to a block chain node in a block chain network;
sending a domain name receiving transaction request including domain name information to be received to a block chain node in a block chain network;
sending a domain name resolution transaction request including the target domain name to a blockchain node in the blockchain network.
In an optional implementation manner, the domain name processing apparatus 1000 based on a block chain further includes a to-be-received domain name determining module, where the to-be-received domain name determining module includes:
a transfer domain name request unit, configured to send a transfer domain name query transaction request including a domain name screening condition to a block chain node, and instruct the block chain node to perform the following steps: calling a domain name processing contract, and selecting candidate transfer domain name information meeting the domain name screening condition from the domain name transfer information;
and the domain name to be received determining unit is used for selecting the domain name information to be received from the candidate transfer domain name information fed back by the block chain link point.
In an optional implementation manner, the domain name processing apparatus 1000 based on a block chain further includes a resolution request generation module, where the resolution request generation module includes:
the local resolution unit is used for determining whether a target IP address associated with the target domain name exists in a cache of a local node;
and the resolution request generating unit is used for generating the domain name resolution transaction request under the condition that the target IP address does not exist in the cache.
According to the technical scheme of the embodiment of the application, a plurality of decentralized organizations jointly manage domain name processing services, and the domain name processing services are integrated with the registration, transaction, analysis and the like of domain names, so that the problems of centralized downtime, badness or unreasonable cost and the like can be avoided, and the domain name processing efficiency is improved.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 11 shows a schematic block diagram of an example electronic device 1100 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 11, the device 1100 comprises a computing unit 1101, which may perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 1102 or a computer program loaded from a storage unit 1108 into a Random Access Memory (RAM) 1103. In the RAM 1103, various programs and data necessary for the operation of the device 1100 may also be stored. The calculation unit 1101, the ROM 1102, and the RAM 1103 are connected to each other by a bus 1104. An input/output (I/O) interface 1105 is also connected to bus 1104.
A number of components in device 1100 connect to I/O interface 1105, including: an input unit 1106 such as a keyboard, a mouse, and the like; an output unit 1107 such as various types of displays, speakers, and the like; a storage unit 1108 such as a magnetic disk, optical disk, or the like; and a communication unit 1109 such as a network card, a modem, a wireless communication transceiver, and the like. The communication unit 1109 allows the device 1100 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 1101 can be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and the like. The calculation unit 1101 performs the respective methods and processes described above, such as a domain name processing method based on a block chain. For example, in some embodiments, the blockchain-based domain name processing method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 1108. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 1100 via ROM 1102 and/or communication unit 1109. When the computer program is loaded into RAM 1103 and executed by the computing unit 1101, one or more steps of the above-described blockchain-based domain name processing method may be performed. Alternatively, in other embodiments, the computing unit 1101 may be configured to perform the block chain based domain name processing method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (22)

1. The domain name processing method based on the block chain comprises the following steps:
acquiring a domain name processing transaction request comprising domain name information to be processed;
calling a domain name processing contract, and executing the domain name processing transaction request according to domain name data recorded in the block chain to obtain an execution result; wherein the domain name data at least comprises domain name registration information;
the domain name registration information comprises a mapping relation between a registered domain name and an IP address and owner account information of the registered domain name;
the acquiring of the domain name processing transaction request including the domain name information to be processed includes: acquiring a domain name receiving transaction request comprising domain name information to be received;
the calling a domain name processing contract, executing the domain name processing transaction request according to domain name data recorded in the block chain to obtain an execution result, and the method comprises the following steps:
calling a domain name processing contract, and inquiring the transfer cost of the domain name to be received from the domain name transfer information according to the domain name information to be received;
under the condition that the disposable cost of an initiator account of the domain name receiving transaction request is equal to or more than the transfer cost of the domain name to be received, transferring the domain name to be received to obtain an execution result, and updating domain name registration information according to the execution result; also comprises the following steps of (1) preparing,
acquiring a new IP address of the domain name to be received from an initiator of the domain name receiving transaction request, establishing a mapping relation between the domain name to be received and the new IP address, and updating domain name registration information; returning the updated domain name registration information to an initiator of the domain name receiving transaction request and an original owner of the domain name to be received;
before the obtaining of the domain name receiving transaction request including the domain name information to be received, the method further includes:
acquiring an assignment domain name query transaction request comprising a domain name screening condition;
calling a domain name processing contract, and selecting candidate transfer domain name information meeting the domain name screening condition from the domain name transfer information;
and feeding back the candidate transfer domain name information to the initiator of the transfer domain name query transaction request, wherein the initiator for the transfer domain name query transaction request selects the domain name information to be received from the candidate transfer domain name information.
2. The method of claim 1, wherein the domain name data further comprises domain name assignment information; the domain name transfer information comprises a domain name to be transferred and a transfer fee.
3. The method of claim 1, wherein the obtaining a domain name processing transaction request including pending domain name information further comprises: acquiring a domain name registration transaction request comprising a mapping relation between a domain name to be registered and an IP address;
the calling a domain name processing contract, executing the domain name processing transaction request according to domain name data recorded in the block chain to obtain an execution result, and the method comprises the following steps:
calling a domain name processing contract, and determining whether the domain name to be registered is registered according to domain name registration information recorded in the block chain;
under the condition of unregistering, taking the account information of an initiator of the domain name registration transaction request as the account information of a holder of the domain name to be registered;
and adding the mapping relation between the domain name to be registered and the IP address and the owner account information of the domain name to be registered into domain name registration information of the block chain as the execution result.
4. The method according to claim 1 or 2, wherein the obtaining of the domain name processing transaction request including the domain name information to be processed further comprises: acquiring a domain name transfer transaction request comprising a domain name to be transferred and transfer cost;
calling a domain name processing contract, executing the domain name processing transaction request according to domain name data recorded in the block chain to obtain an execution result, wherein the execution result comprises the following steps:
calling a domain name processing contract, and determining whether an initiator account of the domain name transfer transaction request is consistent with a holder account of the domain name to be transferred according to domain name registration information recorded by a block chain;
and if the domain name to be transferred and the transfer fee are consistent, adding the domain name to be transferred and the transfer fee into domain name transfer information as execution results.
5. The method of claim 1, wherein obtaining a domain name processing transaction request including domain name information to be processed further comprises: acquiring a domain name resolution transaction request comprising a target domain name;
the calling a domain name processing contract, executing the domain name processing transaction request according to domain name data recorded in the block chain to obtain an execution result, and the method comprises the following steps:
calling a domain name processing contract, and inquiring a target IP address associated with the target domain name from the domain name registration information;
and determining an execution result according to the target IP address, returning the execution result to an initiator of the domain name resolution transaction request, and accessing the target IP address by the initiator.
6. The method of claim 5, wherein the determining an execution result from the target IP address and returning the execution result to an initiator of the domain name resolution transaction request comprises:
signing the target IP address to obtain signature data;
and taking the target IP address, the signature data and the block chain node certificate as an execution result, returning the execution result to an initiator of the domain name resolution transaction request, verifying the target IP address by the initiator according to the signature data and the block chain node certificate, and accessing the target IP address according to a verification result.
7. The domain name processing method based on the block chain comprises the following steps:
determining domain name information to be processed;
sending a domain name processing transaction request including the domain name information to be processed to a block chain node in a block chain network, wherein the domain name processing transaction request is used for indicating the block chain node to call a domain name processing contract, and executing the domain name processing transaction request according to domain name data recorded in the block chain to obtain an execution result;
wherein the domain name data at least comprises domain name registration information;
the domain name registration information comprises a mapping relation between a registered domain name and an IP address and owner account information of the registered domain name;
wherein, the sending the domain name processing transaction request including the domain name information to be processed to the blockchain node in the blockchain network includes:
sending a domain name receiving transaction request including domain name information to be received to a block chain node in a block chain network, so that the block chain node calls a domain name processing contract;
executing the domain name receiving transaction request according to domain name data recorded in a block chain to obtain an execution result, wherein the domain name information to be received is a domain name identifier to be received;
before sending the domain name receiving transaction request including the domain name information to be received to the block chain node in the block chain network, the method further includes:
sending a transfer domain name query transaction request including a domain name screening condition to a block chain node, wherein the request is used for instructing the block chain node to execute the following steps: calling a domain name processing contract, and selecting candidate transfer domain name information meeting the domain name screening condition from the domain name transfer information;
and selecting the domain name information to be received from the candidate transfer domain name information fed back by the block chain node.
8. The method of claim 7, wherein the domain name data further comprises domain name assignment information; the domain name transfer information comprises a domain name to be transferred and a transfer fee.
9. The method according to claim 7 or 8, wherein the sending of the domain name processing transaction request including the to-be-processed domain name information to a blockchain node in a blockchain network further includes at least one of:
sending a domain name registration transaction request comprising a mapping relation between a domain name to be registered and an IP address to a block chain node in a block chain network;
sending a domain name transfer transaction request comprising a domain name to be transferred and transfer cost to a block chain node in a block chain network;
sending a domain name resolution transaction request including the target domain name to a blockchain node in the blockchain network.
10. The method of claim 9, prior to sending a domain name resolution transaction request including a target domain name to a blockchain node in a blockchain network, further comprising:
determining whether a target IP address associated with the target domain name exists in a cache of a local node;
and generating the domain name resolution transaction request under the condition that the target IP address does not exist in the cache.
11. The domain name processing device based on the block chain comprises:
the domain name request acquisition module is used for acquiring a domain name processing transaction request comprising domain name information to be processed;
the contract calling module is used for calling a domain name processing contract and executing the domain name processing transaction request according to domain name data recorded in the block chain to obtain an execution result; wherein the domain name data at least comprises domain name registration information;
the domain name registration information comprises a mapping relation between a registered domain name and an IP address and owner account information of the registered domain name;
the domain name request acquisition module is specifically configured to: acquiring a domain name receiving transaction request comprising domain name information to be received;
the contract invoking module comprises:
the transfer expense query unit is used for calling a domain name processing contract and querying the transfer expense of the domain name to be received from the domain name transfer information according to the domain name information to be received;
a domain name transfer unit, configured to transfer the domain name to be received to obtain an execution result and update domain name registration information according to the execution result, when disposable cost of an initiator account of the domain name receiving transaction request is equal to or greater than transfer cost of the domain name to be received; but also for the purpose of,
acquiring a new IP address of the domain name to be received from the initiator of the domain name receiving transaction request, establishing a mapping relation between the domain name to be received and the new IP address, updating domain name registration information, and returning the updated domain name registration information to the initiator of the domain name receiving transaction request and the original owner of the domain name to be received;
the device also comprises a transfer domain name inquiry module, wherein the transfer domain name inquiry module comprises:
the transfer domain name query unit is used for acquiring a transfer domain name query transaction request comprising a domain name screening condition;
the candidate transfer domain name selection unit is used for calling a domain name processing contract and selecting candidate transfer domain name information meeting the domain name screening condition from the domain name transfer information;
and the candidate transfer domain name feedback unit is used for feeding back the candidate transfer domain name information to the initiator of the transfer domain name query transaction request, and the initiator of the transfer domain name query transaction request selects the domain name information to be received from the candidate transfer domain name information.
12. The apparatus of claim 11, wherein the domain name data further comprises domain name assignment information; the domain name transfer information comprises a domain name to be transferred and a transfer fee.
13. The apparatus according to claim 11, wherein the domain name request obtaining module is further specifically configured to: acquiring a domain name registration transaction request comprising a mapping relation between a domain name to be registered and an IP address;
the contract invoking module comprises:
a registration determining unit, configured to invoke a domain name processing contract, and determine whether the domain name to be registered is registered according to domain name registration information recorded in the block chain;
a holder determining unit, configured to use, in an unregistered case, initiator account information of the domain name registration transaction request as holder account information of a domain name to be registered;
and the registration information updating unit is used for adding the mapping relation between the domain name to be registered and the IP address and the owner account information of the domain name to be registered into the domain name registration information of the block chain as the execution result.
14. The apparatus according to claim 11 or 12, wherein the domain name request obtaining module is further specifically configured to: acquiring a domain name transfer transaction request comprising a domain name to be transferred and transfer cost;
the contract invoking module comprises:
the account consistency unit is used for calling a domain name processing contract and determining whether the initiator account of the domain name transfer transaction request is consistent with the holder account of the domain name to be transferred according to domain name registration information recorded by the blockchain;
and the transfer information updating unit is used for adding the domain name to be transferred and the transfer fee into the domain name transfer information as an execution result under the condition of consistency.
15. The apparatus according to claim 11, wherein the domain name request obtaining module is further specifically configured to: acquiring a domain name resolution transaction request comprising a target domain name;
the contract invoking module comprises:
a target domain name query unit, configured to invoke a domain name processing contract, and query a target IP address associated with the target domain name from the domain name registration information;
and the target domain name feedback unit is used for determining an execution result according to the target IP address, returning the execution result to the initiator of the domain name resolution transaction request, and accessing the target IP address by the initiator.
16. The apparatus according to claim 15, wherein the target domain name feedback unit is specifically configured to:
signing the target IP address to obtain signature data;
and taking the target IP address, the signature data and the block chain node certificate as an execution result, returning the execution result to an initiator of the domain name resolution transaction request, verifying the target IP address by the initiator according to the signature data and the block chain node certificate, and accessing the target IP address according to a verification result.
17. The domain name processing device based on the block chain comprises:
the domain name information determining module is used for determining domain name information to be processed;
a domain name request sending module, configured to send a domain name processing transaction request including the to-be-processed domain name information to a block chain node in a block chain network, where the domain name processing transaction request is used to instruct the block chain node to invoke a domain name processing contract, and execute the domain name processing transaction request according to domain name data recorded in the block chain to obtain an execution result;
wherein the domain name data at least comprises domain name registration information;
the domain name registration information comprises a mapping relation between a registered domain name and an IP address and owner account information of the registered domain name;
the domain name request sending module is specifically configured to execute:
sending a domain name receiving transaction request including domain name information to be received to a block chain node in a block chain network, so that the block chain node calls a domain name processing contract;
executing the domain name receiving transaction request according to domain name data recorded in the block chain to obtain an execution result; the domain name information to be received is a domain name identifier to be received;
the device also comprises a domain name determining module to be received, wherein the domain name determining module to be received comprises:
a transfer domain name request unit, configured to send a transfer domain name query transaction request including a domain name screening condition to a block chain node, and instruct the block chain node to perform the following steps: calling a domain name processing contract, and selecting candidate transfer domain name information meeting the domain name screening condition from the domain name transfer information;
and the domain name to be received determining unit is used for selecting the domain name information to be received from the candidate transfer domain name information fed back by the block chain link point.
18. The apparatus of claim 17, wherein the domain name data further comprises domain name assignment information; the domain name transfer information comprises a domain name to be transferred and a transfer fee.
19. The apparatus according to claim 17 or 18, wherein the domain name request sending module is further specifically configured to perform at least one of:
sending a domain name registration transaction request comprising a mapping relation between a domain name to be registered and an IP address to a block chain node in a block chain network;
sending a domain name transfer transaction request comprising a domain name to be transferred and transfer cost to a block chain node in a block chain network;
sending a domain name resolution transaction request including the target domain name to a blockchain node in the blockchain network.
20. The apparatus of claim 19, the apparatus further comprising a parsing request generation module comprising:
the local resolution unit is used for determining whether a target IP address associated with the target domain name exists in a cache of a local node;
and the resolution request generating unit is used for generating the domain name resolution transaction request under the condition that the target IP address does not exist in the cache.
21. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-10.
22. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-10.
CN202011612948.4A 2020-12-30 2020-12-30 Domain name processing method and device based on block chain, electronic equipment and storage medium Active CN112671950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011612948.4A CN112671950B (en) 2020-12-30 2020-12-30 Domain name processing method and device based on block chain, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011612948.4A CN112671950B (en) 2020-12-30 2020-12-30 Domain name processing method and device based on block chain, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112671950A CN112671950A (en) 2021-04-16
CN112671950B true CN112671950B (en) 2023-02-21

Family

ID=75411183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011612948.4A Active CN112671950B (en) 2020-12-30 2020-12-30 Domain name processing method and device based on block chain, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112671950B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11797655B1 (en) 2019-07-18 2023-10-24 Verisign, Inc. Transferring a domain name on a secondary blockchain market and in the DNS
US11924161B1 (en) 2021-05-20 2024-03-05 Verisign, Inc. Authorization and refusal of modification, and partial modification ability, of a network identifier
CN114697071A (en) * 2022-01-27 2022-07-01 南京第三极区块链科技有限公司 Block chain-based distributed naming service system and using method thereof
CN116170495B (en) * 2023-04-20 2023-06-23 中国信息通信研究院 Domain name registration method and device based on blockchain, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110537346B (en) * 2017-03-06 2023-03-24 诺基亚技术有限公司 Safe decentralized domain name system
EP3631659A4 (en) * 2017-05-22 2021-03-17 Haventec PTY LTD System for blockchain based domain name and ip number register
US10721060B1 (en) * 2018-06-29 2020-07-21 Verisign, Inc. Domain name blockchain user addresses
CN110839029B (en) * 2019-11-14 2021-06-25 腾讯科技(深圳)有限公司 Micro-service registration method and device
CN111769957B (en) * 2020-09-02 2020-12-15 百度在线网络技术(北京)有限公司 Block chain cross-chain query method, device, equipment and storage medium
CN111930852B (en) * 2020-09-29 2022-03-25 北京百度网讯科技有限公司 Data processing method, device and equipment based on block chain and storage medium

Also Published As

Publication number Publication date
CN112671950A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
CN112671950B (en) Domain name processing method and device based on block chain, electronic equipment and storage medium
CN111277639B (en) Method and device for maintaining data consistency
CN112738294B (en) Domain name resolution method and device based on block chain, electronic equipment and storage medium
EP2842034B1 (en) Providing client and service compatibility through cloud-hosted adapters
CN111125496B (en) Price query method, device and system
CN111460129A (en) Method and device for generating identification, electronic equipment and storage medium
US7636873B2 (en) Enhancement of assured event delivery mechanism to eliminate external XA store requirement
CN116611411A (en) Business system report generation method, device, equipment and storage medium
CN115017169A (en) Management method and system of multi-cloud management platform
US20230029788A1 (en) Method of deploying certificate, electronic device, and storage medium
CN107493251A (en) A kind of method and terminal for logging in destination server
CN113807968B (en) Block chain user request processing method and device, entrusting server and storage medium
CN107526530B (en) Data processing method and device
CN111865576A (en) Method and device for synchronizing URL classification data
CN115657901B (en) Service changing method and device based on unified parameters
CN110889040B (en) Method and device for pushing information
US20220398580A1 (en) Method and apparatus for operating blockchain system, device and storage medium
CN115118787A (en) Service control method, system, storage medium and electronic equipment
CN115033573A (en) Data checking method, device, electronic equipment and medium
CN115168767A (en) Voucher uploading method, device, system, equipment and storage medium
CN113487411A (en) Method, device, equipment and computer readable medium for information interaction
EP4229530A1 (en) Privacy manager for connected tv and over-the-top applications
CN114448703A (en) Request processing method and device, electronic equipment and storage medium
CN117609192A (en) Information management system, method, device and storage medium
CN117453206A (en) Interface calling method, device, equipment and 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