CN109951482A - User terminal and its block chain domain name analytic method - Google Patents
User terminal and its block chain domain name analytic method Download PDFInfo
- Publication number
- CN109951482A CN109951482A CN201910210217.8A CN201910210217A CN109951482A CN 109951482 A CN109951482 A CN 109951482A CN 201910210217 A CN201910210217 A CN 201910210217A CN 109951482 A CN109951482 A CN 109951482A
- Authority
- CN
- China
- Prior art keywords
- target
- block
- adjacent end
- domain name
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
The present invention proposes a kind of user terminal and its block chain domain name analytic method, wherein, after method includes: the os starting of user terminal, obtain the IP address of user terminal and the node listing information of adjacent end, if knowing online adjacent end quantity, there are still the second target blocks less than preset threshold to identify in preset period of time, multiple multiple target ip address in line target adjacent end are obtained;User terminal obtains target block corresponding with the second target block mark, and target block is stored in user terminal, the domain name registration information locally saved is inquired by block chain domain name mapping module, so that destination application sends access request according to communication IP address.Thus, domain name is obtained by the block chain mode of decentralization, it, can be based on the information access block chain network in block when carrying out domain name access, and stored only for the block local backup for the online adjacent end negligible amounts for storing it, improve the flexibility of block chain network.
Description
Technical field
The present invention relates to block chain technical field more particularly to a kind of user terminal and its block chain domain name analytic methods.
Background technique
In computer field, IP address is widely used as " identity card " of equipment for surfing the net, server etc..With computer
The development of network technology, IP address increase significantly, and for the ease of managing the distribution with address, domain name system occur, that is,
It says, is allocated in the prior art using IP address and domain name as common network address.
In the related technology, the corresponding domain name of IP address is provided by dns server, however, providing domain in current network environment
The dns server more centralization of name configuration service, and the root server of dns server rests in some country or tissue
In hand, the dns server of this centralization will cause to seriously threaten once maliciously being controlled to internet.
Summary of the invention
Purport of the present invention provides a kind of user terminal and its block chain domain name analytic method, to solve in the prior art, domain name
By the stronger dns server configuration of centralization, cause to be easy the technical problem by phishing attack etc..
First embodiment of the invention provides a kind of block chain domain name analytic method based on user terminal operations system, in institute
The operating system kernel layer setting block chain domain name mapping module of user terminal is stated, the analytic method includes:
After the os starting of user terminal, the user terminal is obtained from the address allocation server of current network
The node listing information of the online adjacent end of IP address and the default neighbor of satisfaction, wherein the online adjacent end
Include: by the other users terminal of address allocation server distribution IP address in the current network, and/or, and it is described
Address allocation server connected other equipment terminal, the node listing information include: the IP of each online adjacent end
Location and each online adjacent end currently correspond to the block-identified set in the block chain account book of storage;The user terminal inquiry
Whether the node listing information, detection are greater than with each block-identified corresponding all current online adjacent end quantity of storage
In preset threshold, if it is block-identified less than the first object of preset threshold to know that online adjacent end quantity exists, to target
Equipment, which is sent, carries the block-identified adjacent end incremental re-quest of the first object;The user terminal receives the target and sets
The incremental nodes information of the online supplement adjacent end block-identified comprising the first object of standby feedback is simultaneously stored in described
In node listing information, detection and the block-identified corresponding storage of each first object it is all currently online adjacent end quantity whether
More than or equal to preset threshold, if knowing online adjacent end quantity, there are still second less than preset threshold in preset period of time
Target block mark, then inquire the node listing information, obtains the multiple online mesh for storing the second target block mark
Mark multiple target ip address of adjacent end;The user terminal is corresponding in line target adjacent end from either objective IP address
Target block corresponding with the second target block mark is obtained, and the target block is stored in the user terminal,
When obtaining the access request comprising target domain name that destination application is sent, looked by the block chain domain name mapping module
The domain name registration information in the target block locally saved is ask, judges whether to obtain corresponding with the target domain name
Communication IP address, communication IP address corresponding with the target domain name, then feed back to the destination application if it exists, so that
The destination application sends access request according to the communication IP address.
Second embodiment of the invention provides a kind of user terminal, and area is arranged in the operating system kernel layer of the user terminal
Block chain domain name mapping module, comprising: first obtains module, for after the os starting of the user terminal, from current
The address allocation server of network obtains the IP address of the user terminal and meets the online adjacent end of default neighbor
The node listing information at end, wherein the online adjacent end includes: in the current network by the address allocation server
The other users terminal of IP address is distributed, and/or, the other equipment terminal being connected with the address allocation server, the section
Point list information includes: the IP address of each online adjacent end and the block chain of each online adjacent end currently corresponding storage
Block-identified set in account book;Second obtains module, for inquiring the node listing information, detection with it is each block-identified
Whether corresponding all current online adjacent end quantity of storage are more than or equal to preset threshold, if knowing, online adjacent end quantity is deposited
It is block-identified in the first object for being less than preset threshold, then it is sent to target device and carries the block-identified phase of the first object
Adjacent terminal incremental re-quest;Memory module, for receiving the block-identified comprising the first object of the target device feedback
The incremental nodes information of online supplement adjacent end is simultaneously stored in the node listing information;Detection module, for detect with
Whether the block-identified corresponding all current online adjacent end quantity of storage of each first object are more than or equal to preset threshold;Third
Module is obtained, for there are still the second targets less than preset threshold in preset period of time knowing online adjacent end quantity
When block-identified, the node listing information is inquired, obtains and stores the multiple in line target phase of the second target block mark
Multiple target ip address of adjacent terminal;The memory module is also used to corresponding adjacent in line target from either objective IP address
Terminal obtains target block corresponding with the second target block mark, and the target block is stored in user's end
End;Access modules, for passing through the block when obtaining the access request comprising target domain name that destination application is sent
Domain name registration information in the target block that locally saves of chain domain name mapping module inquiry, judges whether can to obtain and institute
The corresponding communication IP address of target domain name is stated, if it exists communication IP address corresponding with the target domain name, then fed back to described
Destination application, so that the destination application sends access request according to the communication IP address.
Third embodiment of the invention provides a kind of computer equipment, including memory, processor and storage are on a memory
And the computer program that can be run on a processor, when the processor executes the computer program, realize such as above-mentioned implementation
The block chain domain name analytic method based on user terminal operations system of example description.
Fourth embodiment of the invention provides a kind of computer readable storage medium, is stored thereon with computer program, described
The block chain domain based on user terminal operations system as described in above-described embodiment is realized when computer program is executed by processor
Name analytic method.
Technical solution provided in an embodiment of the present invention can include the following benefits:
After the os starting of user terminal, with obtaining the IP of user terminal from the address allocation server of current network
The node listing information of the online adjacent end of location and the default neighbor of satisfaction, wherein online adjacent end includes: current
In network by address allocation server distribution IP address other users terminal, and/or, be connected with address allocation server its
His device end, node listing information include: each online adjacent end IP address and each online adjacent end it is currently right
The block-identified set in block chain account book that should be stored, user terminal query node list information, detection and each block mark
Know whether all current online adjacent end quantity of corresponding storage are more than or equal to preset threshold, if knowing online adjacent end quantity
It is block-identified in the presence of the first object for being less than preset threshold, then it is sent to target device and carries block-identified adjacent of first object
Terminal incremental re-quest, in turn, user terminal receive the online supplement phase block-identified comprising first object of target device feedback
The incremental nodes information of adjacent terminal is simultaneously stored in node listing information, is detected and the block-identified corresponding storage of each first object
Whether all current online adjacent end quantity are more than or equal to preset threshold, if knowing online adjacent end quantity in preset period of time
Interior the second target block there are still less than preset threshold identifies, then query node list information, obtains the second target of storage
Block-identified multiple multiple target ip address in line target adjacent end, finally, user terminal is from either objective IP address
It is corresponding to obtain target block corresponding with the second target block mark in line target adjacent end, and target block is stored in
User terminal passes through block chain domain name mapping when obtaining the access request comprising target domain name that destination application is sent
The domain name registration information in target block that module polls locally save judges whether to obtain corresponding with target domain name logical
Believe IP address, communication IP address corresponding with target domain name, then feed back to destination application if it exists, so that target application journey
Sequence sends access request according to communication IP address.Domain name is obtained by the block chain mode of decentralization as a result, in application program
It, can be based on the information access block chain network in block, and only for storing its online adjacent end when carrying out domain name access
Hold negligible amounts block local backup storage, alleviate local storage pressure, improve block chain network safety and
Flexibility.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, wherein
Fig. 1 is the scene interactivity schematic diagram according to an embodiment of the invention based on block chain domain name system;
Fig. 2 is the block chain domain name analytic method according to an embodiment of the invention based on user terminal operations system
Flow chart;
Fig. 3 is the block chain domain name analytic method according to an embodiment of the invention based on user terminal operations system
Application scenarios schematic diagram;
Fig. 4 is the structural schematic diagram of user terminal according to an embodiment of the invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
In order to solve to mention in above-mentioned background technique to be configured due to network address by the stronger dns server of centralization,
Cause to be easy the technical issues of being attacked, the block chain domain name mapping based on user terminal operations system that the present invention provides a kind of
Method is named by the mode of decentralization to obtain, and is improved the safety that the domain name of application program is sent, is avoided hacker's
The behaviors such as phishing attack.
Specifically, in order to solve the above-mentioned technical problems, the present invention provides the block chain networks that a kind of domain name generates, such as
Shown in Fig. 1, the block chain domain name system that Internet Service Provider's ISP node is belonged to itself in the block chain network is taken
The identity private key that business device sends Identity-based encryption IBE (identity-based encryption, Identity based encryption) is asked
Seek message, wherein identity private key request message includes: the target domain name and corresponding IP address of application, in turn, block chain domain name
System server, which receives identity private key request message and parses, obtains target domain name, inquires the main key being locally stored and public ginseng
Number carries out main key, common parameter and target domain name according to preset algorithm to calculate the identity private key for generating ISP node, the identity
Private key and ISP node are uniquely corresponding, wherein the identity public key of the entitled ISP node of aiming field, and then application ISP node is in block
Node public key in chain generates the crypto identity private key of ISP node after encrypting to the identity private key of ISP node, and will encryption
Identity private key transmission awards the corresponding ISP node of the corresponding IP address of aiming field name.
Further, after ISP node receives the crypto identity private key that block chain domain name system server is sent, using itself
The identity private key for obtaining ISP node is decrypted in node private key pair encryption identity private key in block chain, and application identity is private
Key carries out identity private key label to the server identification of target domain name and corresponding IP address and block chain domain name system server
After name, domain name registration broadcast message is sent to block chain network.Accounting nodes reception domain name registration broadcast message carries out parsing and obtains
Target domain name and corresponding IP address and server identification are taken, and application target domain name signs to the identity private key of ISP node
It is verified, if the verification passes, then by target domain name and corresponding IP address and the clothes of block chain domain name system server
The corresponding relationship of business device mark is written in newly-generated block, and charges in block chain account book.
The network address generation method of the embodiment of the present invention as a result, based on block chain domain name system based on block chain
Decentralization thought generates, and on the one hand avoids phishing attack etc., on the other hand, is based on common recognition mechanism, illegal node is avoided to disturb
The legal generation of random network address.
However, the generating mode of this network address, accesses block chain network in client (such as application APP etc.)
When, generally using P2P broadcast addressing mutually, in order to access P2P adjacent node, need in client block chain prefabricated first
Seed node (it can be appreciated that original node) address, obtains adjacent node by seed node.But in practical applications,
For example, the seed node or seed node IP address of domain name block chain possibly can not be obtained when installing operating system
It may change, if the corresponding block chain network of domain name accesses not yet using domain name access seed node, domain can not be carried out
Name access.
Thus, when being built in the operating system kernel layer of user terminal to solve this block chain domain name mapping module,
The problem of domain name can not access, the invention also provides a kind of block chain domain name mapping side based on user terminal operations system
Method.
Specifically, Fig. 2 is the block chain domain name according to an embodiment of the invention based on user terminal operations system
The flow chart of analytic method, method includes the following steps:
Step 101, after the os starting of user terminal, it is whole that user is obtained from the address allocation server of current network
The node listing information of the online adjacent end of the default neighbor of IP address and satisfaction at end, wherein online adjacent end
Include: in current network by address allocation server distribution IP address other users terminal, and/or, with address allocation services
The connected other equipment terminal of device, node listing information include: the IP address of each online adjacent end and each online adjacent
Terminal currently corresponds to the block-identified set in the block chain account book of storage.
Specifically, in the os starting stage of user terminal, from the address allocation server of current network first
It obtains the IP address of the user terminal and meets the node listing information of the online terminal of neighbor, wherein is online to be connected
Terminal includes by the other users terminal of address allocation server distribution IP address in current network, such as in current local area network
Other users terminal in network, and/or, the other equipment terminal being connect with address allocation server, for example, and current server
Other connected servers etc., in addition, node listing information includes the IP address and each online phase of each online adjacent end
Adjacent terminal currently corresponds to the block-identified set in the block chain account book of storage, wherein it should be understood that block-identified set
In contain the unique identification of all blocks stored in counterpart terminal.
It is easily understood that in an embodiment of the present invention, it is corresponding IP address can not be obtained from block chain network
When domain name, it is contemplated that in the block of its other user terminal being connected for being in the same local area network, necessarily record related domain
The record information that name access request generates, therefore, it is possible to related domain name is searched by the record information in these blocks, by
This, since the information recorded in block is necessarily passed through, common recognition mechanism is authenticated, and thus, safety is higher, and overcomes behaviour
Make the obstacle that the failure of domain Name acquisition caused by block chain network etc. can not be accessed in system starting.
Step 102, user terminal query node list information, detection all currently exist with each block-identified corresponding store
Whether line adjacent end quantity is more than or equal to preset threshold, if knowing, online adjacent end quantity has the less than preset threshold
One target block mark then sends to target device and carries the block-identified adjacent end incremental re-quest of first object.
Specifically, in order to guarantee the reliability of the related domain name obtained, need to guarantee that block-identified corresponding block is corresponding
Adjacent end it is more, thus, when a part of adjacent end goes offline, nor affect on the acquisition of domain name, that is, be necessary to ensure that with each
Block-identified all current online adjacent end quantity of corresponding storage are more than or equal to preset threshold, wherein preset threshold can root
It is demarcated according to lot of experimental data.
In an embodiment of the present invention, if knowing there is the first object area less than preset threshold in online adjacent end quantity
Block identification then sends to target device and carries the block-identified adjacent end incremental re-quest of the first object, can as one kind
The implementation of energy, target device includes online adjacent end, if user terminal knows that the quantity of online adjacent end is discontented
Sufficient preset threshold, then in order to guarantee that the reliability of the related domain name obtained, the online adjacent end of Xiang Dangqian send adjacent end
Increment acquisition request, and receive the nodal information of the online adjacent end of increment of current online adjacent end feedback and be stored in
In node listing information.That is, when the negligible amounts of online adjacent end, can also request online adjacent end
Line adjacent end is to expand the quantity of the online adjacent end in present node list information.
As alternatively possible implementation, target device includes address allocation server, in the present embodiment, if
User terminal knows that the quantity of online adjacent end is unsatisfactory for preset threshold, then sends adjacent end to address allocation server and increase
Acquisition request is measured, and receives the nodal information of the online adjacent end of extended increment of address allocation server feedback and deposits
Storage is in node listing information.
For example, it is 10ms that address allocation server transmission adjacent end, which is the communication delay issued apart from active user's terminal,
Within online neighboring user terminal, after receiving adjacent end increment acquisition request, expand communication delay, address distribution clothes
Business device transmission adjacent end is that the communication delay issued apart from active user's terminal is the online neighboring user terminal within 15ms,
That is, can amplify it with request address distribution server when the negligible amounts of online adjacent end and select present phase
The granularity of neighbors is to expand the quantity of the online adjacent end in present node list information.
In one embodiment of the invention, all currently exist if user terminal is known with each block-identified corresponding storage
Line adjacent end quantity is both greater than equal to preset threshold, then shows that the corresponding adjacent end of block-identified corresponding block is more,
When a part of adjacent end goes offline, the acquisition of domain name is nor affected on, thus, when obtain that destination application sends includes target
When the access request of domain name, the access request including target domain name is sent to block chain domain name system, obtains online adjacent end
The communication IP address corresponding with target domain name of feedback, and destination application is fed back to, so that destination application is according to logical
Believe that IP address sends access request.
As a result, in the present embodiment, related block information be not locally stored, but it is still stored in online phase
In adjacent terminal, corresponding communication IP address directly is obtained from adjacent end when needing, significantly reduces depositing for user terminal local
Pressure is stored up, the application flexibility of the block chain network of the embodiment of the present invention is further improved.
Step 103, what user terminal received target device feedback includes that the block-identified supplement online of first object is adjacent
The incremental nodes information of terminal is simultaneously stored in node listing information, is detected and the block-identified corresponding storage institute of each first object
Have whether current online adjacent end quantity is more than or equal to preset threshold, if knowing online adjacent end quantity in preset period of time
There are still the second target block marks for being less than preset threshold, then query node list information, obtains the second target area of storage
Multiple multiple target ip address in line target adjacent end of block identification.
Specifically, user terminal receives the online supplement adjacent end block-identified comprising first object of target device feedback
The incremental nodes information at end is simultaneously stored in node listing information, and detection and the block-identified corresponding storage of each first object are all
Whether current online adjacent end quantity is more than or equal to preset threshold, if knowing online adjacent end quantity in preset period of time still
So there is the second target block mark for being less than preset threshold, then shows that the second target block identifies the stability of corresponding block
It is not high, it goes offline once there is the second target block to identify corresponding adjacent end, then may cause can not get corresponding block,
Query node list information as a result, obtains multiple multiple mesh in line target adjacent end of storage the second target block mark
IP address is marked, to carry out stability-enhanced processing for multiple target ip address in this multiple target adjacent end.
Step 104, user terminal obtains and the second target from either objective IP address is corresponding in line target adjacent end
Block-identified corresponding target block, and target block is stored in user terminal, when the packet for obtaining destination application transmission
When the access request of the domain name containing target, the domain name in target block locally saved by the inquiry of block chain domain name mapping module is infused
Volume information, judges whether that communication IP address corresponding with target domain name can be obtained, if it exists communication corresponding with target domain name
IP address then feeds back to destination application, so that destination application sends access request according to communication IP address.
Specifically, it is identified for not high the second target block of reliability, user terminal is from its any corresponding Target IP
Address is corresponding to obtain target block corresponding with the second target block mark in line target adjacent end, and target block is deposited
Storage passes through block chain domain name when obtaining the access request comprising target domain name that destination application is sent in user terminal
The domain name registration information in target block that parsing module inquiry locally saves, judges whether to obtain corresponding with target domain name
Communication IP address, communication IP address corresponding with target domain name, then feed back to destination application if it exists, so that target is answered
Access request is sent according to communication IP address with program, as a result, on the one hand, it is only necessary to it is corresponding to store the second target block mark
Block alleviates the storage pressure of active user's terminal, on the other hand, identifies corresponding block for the second target block, borrows
Help the block of active user's terminal local storage to guarantee when the online adjacent end of target goes offline, also available arrive corresponds to
Domain name, ensure that the reliability of domain Name acquisition, corresponding block identified to the second target block and is backed up, increases by the secondth area
The corresponding block reliability of block identification, and reference is provided for the block-identified corresponding block of other users terminal authentication second.
It is of course possible to which any one target adjacent end of present terminal backup is malicious peer, so as to cause
Second target block of backup identify corresponding target block be it is false, thus, in order to ensure the target block of backup
Authenticity carries out authenticity verification to target block in one embodiment of the invention.
Specifically, it is obtained and the second target from either objective IP address is corresponding in line target adjacent end in user terminal
Before block-identified corresponding target block, user terminal is according to multiple target ip address respectively to multiple at line target adjacent end
End sends the block checking request message for carrying the second target block mark, and receives multiple anti-in line target adjacent end difference
The cryptographic Hash authentication response information including the second target block mark of feedback, it is more multiple to be fed back respectively in line target adjacent end
Cryptographic Hash size, if all cryptographic Hash are identical, it is determined that the verifying of corresponding with the second target block mark target block at
Function then shows that target area is true and reliable, to obtain target block corresponding with the second target block mark.
As described above, pressure is locally stored in order to mitigate, for reliable block by other adjacent nodes into
Row inquiry, if that is, user terminal is known and cannot obtain communication IP address corresponding with target domain name from target block, to block
Chain domain name system sends the access request including target domain name, obtains the corresponding with target domain name logical of online adjacent end feedback
Believe IP address, and feed back to destination application, so that destination application sends access request according to communication IP address.
As a result, as shown in figure 3, the block chain domain name mapping side based on user terminal operations system of the embodiment of the present invention
Method, after user terminal (terminal where the APP1-APP4 in such as figure) starting, for the more block-identified correspondence of storage quantity
Block save in the adjacent end (adjacent node in figure), for the second less block-identified corresponding area of storage quantity
Block can (the domain name IP mapped cache table in figure has the domain in the application by the block chain domain name mapping module in user terminal
Name registration information), the domain including block chain domain name and IP address corresponding relationship is extracted in any one online adjacent end from other
Name registration information simultaneously saves, as a result, corresponding APP can domain name registration information based on the preservation or adjacent end get
The communication IP address for requesting access gateway etc. accesses block chain network according to the IP address, and accesses block chain network realizing
While, significantly reduce the storage pressure of user terminal local.
To sum up, the block chain domain name analytic method based on user terminal operations system of the embodiment of the present invention, user terminal
Os starting after, obtain the IP address of user terminal from the address allocation server of current network and meet default phase
The node listing information of the online adjacent end of adjacent condition, wherein online adjacent end includes: to be distributed in current network by address
Server distributes the other users terminal of IP address, and/or, the other equipment terminal being connected with address allocation server, node
List information includes: the IP address of each online adjacent end and the block chain account of each online adjacent end currently corresponding storage
Block-identified set in this, user terminal query node list information, detection block-identified corresponding store all work as with each
Whether preceding online adjacent end quantity is more than or equal to preset threshold, if knowing that online adjacent end quantity exists is less than preset threshold
First object it is block-identified, then sent to target device and carry the block-identified adjacent end incremental re-quest of first object, into
And user terminal receives the incremental nodes of the online supplement adjacent end block-identified comprising first object of target device feedback
Information is simultaneously stored in node listing information, and detection and the block-identified corresponding storage of each first object are all current online adjacent
Whether terminal quantity is more than or equal to preset threshold, if knowing, online adjacent end quantity is pre- there are still being less than in preset period of time
If the second target block of threshold value identifies, then query node list information, obtain storage the second target block mark it is multiple
Multiple target ip address of line target adjacent end, finally, user terminal is corresponding in line target phase from either objective IP address
Adjacent terminal obtains target block corresponding with the second target block mark, and target block is stored in user terminal, works as acquisition
When the access request comprising target domain name that destination application is sent, local save is inquired by block chain domain name mapping module
Target block in domain name registration information, judge whether that communication IP address corresponding with target domain name can be obtained, if it exists
Communication IP address corresponding with target domain name, then feed back to destination application, so that destination application is according to communication IP
Location sends access request.Domain name is obtained by the block chain mode of decentralization as a result, carries out domain name access in application program
When, it can be based on the information access block chain network in block, and only for the online adjacent end negligible amounts for storing it
The storage of block local backup, alleviates local storage pressure, improves the safety and flexibility of block chain network.
In order to realize above-described embodiment, the invention also provides a kind of user terminal, which can be intelligent hand
Machine, intelligent wearable equipment, computer notebook etc. can install the equipment that application program has operating system, wherein Fig. 4 is root
According to the structural schematic diagram of the user terminal of one embodiment of the invention, block chain is set in the operating system kernel layer of user terminal
Domain name mapping module, as shown in figure 4, the user terminal includes: that the first acquisition module 10, second obtains module 20, memory module
30, detection module 40, third obtain module 50 and access modules 60.
Wherein, first module 10 is obtained, for dividing after the os starting of user terminal from the address of current network
The IP address of user terminal is obtained with server and meets the node listing information of the online adjacent end of default neighbor,
Wherein, online adjacent end include: in current network by address allocation server distribution IP address other users terminal, and/
Or, the other equipment terminal being connected with address allocation server, node listing information includes: the IP of each online adjacent end
Location and each online adjacent end currently correspond to the block-identified set in the block chain account book of storage.
Second obtains module 20, is used for query node list information, and detection all is worked as with each block-identified corresponding store
Whether preceding online adjacent end quantity is more than or equal to preset threshold, if knowing that online adjacent end quantity exists is less than preset threshold
First object it is block-identified, then sent to target device and carry the block-identified adjacent end incremental re-quest of first object.
In one embodiment of the invention, second obtain module 20, be also used to current online adjacent end or
Address allocation server sends adjacent end incremental re-quest.
Memory module 30, for receiving the online supplement adjacent end block-identified comprising first object of target device feedback
The incremental nodes information at end is simultaneously stored in node listing information.
Detection module 40, for detecting and the block-identified corresponding all current online adjacent ends of storage of each first object
Whether quantity is more than or equal to preset threshold.
Third obtains module 50, for knowing that online adjacent end quantity is default there are still being less than in preset period of time
When the second target block mark of threshold value, query node list information obtains the multiple online of storage the second target block mark
Multiple target ip address of target adjacent end.
Memory module 30 is also used to obtain and the second target from either objective IP address is corresponding in line target adjacent end
Block-identified corresponding target block, and target block is stored in user terminal;
Access modules 60, for passing through when obtaining the access request comprising target domain name that destination application is sent
Domain name registration information in the target block that locally saves of block chain domain name mapping module inquiry, judges whether can to obtain and mesh
The corresponding communication IP address of domain name is marked, communication IP address corresponding with target domain name, then feed back to destination application if it exists,
So that destination application sends access request according to communication IP address.
In one embodiment of the invention, access modules 60 are also used to knowing and each block-identified corresponding storage institute
When thering is current online adjacent end quantity to be both greater than equal to preset threshold, when obtain destination application transmission includes aiming field
When the access request of name, the access request including target domain name is sent to block chain domain name system, it is anti-to obtain online adjacent end
The communication IP address corresponding with target domain name of feedback, and destination application is fed back to, so that destination application is according to communication
IP address sends access request.
It should be noted that the aforementioned solution to the block chain domain name analytic method embodiment based on user terminal operations system
Explanation is released, the user terminal of the embodiment of the present invention is also applied for, realization principle is similar, and details are not described herein.
To sum up, the user terminal of the embodiment of the present invention, after the os starting of user terminal, from the ground of current network
Location distribution server obtains the IP address of user terminal and meets the node listing of the online adjacent end of default neighbor
Information, wherein online adjacent end includes: whole by the other users of address allocation server distribution IP address in current network
End, and/or, the other equipment terminal being connected with address allocation server, node listing information includes: each online adjacent end
IP address and each online adjacent end currently the block-identified set in the block chain account book of corresponding storage, user terminal are looked into
Node listing information is ask, whether detection is more than or equal to each block-identified corresponding all current online adjacent end quantity of storage
Preset threshold is set if it is block-identified less than the first object of preset threshold to know that online adjacent end quantity exists to target
Preparation, which is sent, carries the block-identified adjacent end incremental re-quest of first object, and in turn, user terminal receives target device feedback
Incremental nodes information comprising the block-identified online supplement adjacent end of first object is simultaneously stored in node listing information, inspection
It surveys and whether is more than or equal to preset threshold with the block-identified corresponding all current online adjacent end quantity of storage of each first object,
If knowing online adjacent end quantity, there are still the second target blocks less than preset threshold to identify in preset period of time, look into
Node listing information is ask, with obtaining multiple multiple Target IPs in line target adjacent end of storage the second target block mark
Location, finally, user terminal is identified from corresponding obtain in line target adjacent end of either objective IP address with the second target block
Corresponding target block, and target block is stored in user terminal, when obtain destination application transmission includes aiming field
When the access request of name, the domain name registration information in target block locally saved by the inquiry of block chain domain name mapping module,
Judge whether that communication IP address corresponding with target domain name can be obtained, if it exists communication IP address corresponding with target domain name,
Destination application is then fed back to, so that destination application sends access request according to communication IP address.As a result, by going to center
The block chain mode of change obtains domain name, can based on the information access block in block when application program carries out domain name access
Chain network, and stored only for the block local backup for the online adjacent end negligible amounts for storing it, it alleviates local
Pressure is stored, the safety and flexibility of block chain network are improved.
In order to realize above-described embodiment, the invention also provides a kind of computer equipment, including memory, processor and deposit
The computer program that can be run on a memory and on a processor is stored up, it is real when the processor executes the computer program
The now block chain domain name analytic method based on user terminal operations system as described in previous embodiment.
In order to realize above-described embodiment, the present invention also proposes a kind of non-transitorycomputer readable storage medium, deposits thereon
Computer program is contained, can be realized when the computer program is executed by processor as described in previous embodiment based on use
The block chain domain name analytic method of family terminal operating system.
In the present invention, term " first ", " second " are used for description purposes only, and are not understood to indicate or imply opposite
Importance or the quantity for implicitly indicating indicated technical characteristic.Define " first " as a result, the feature of " second " can be bright
Show or implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two
It is a, three etc., unless otherwise specifically defined.
In the present invention unless specifically defined or limited otherwise, fisrt feature in the second feature " on " or " down " can be with
It is that the first and second features directly contact or the first and second features pass through intermediary mediate contact.Moreover, fisrt feature exists
Second feature " on ", " top " and " above " but fisrt feature be directly above or diagonally above the second feature, or be merely representative of
First feature horizontal height is higher than second feature.Fisrt feature can be under the second feature " below ", " below " and " below "
One feature is directly under or diagonally below the second feature, or is merely representative of first feature horizontal height less than second feature.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, modifies, replacement and variant.
Claims (10)
1. a kind of block chain domain name analytic method based on user terminal operations system, which is characterized in that in the user terminal
Operating system kernel layer block chain domain name mapping module is set, the analytic method includes:
After the os starting of user terminal, with obtaining the IP of the user terminal from the address allocation server of current network
Location and meet default neighbor online adjacent end node listing information, wherein the online adjacent end includes:
By the other users terminal of address allocation server distribution IP address in the current network, and/or, with the address point
With the other equipment terminal that server is connected, the node listing information includes: the IP address of each online adjacent end and every
A online adjacent end currently corresponds to the block-identified set in the block chain account book of storage;
The user terminal inquires the node listing information, detects and each block-identified corresponding all current online phases of storage
Whether adjacent terminal quantity is more than or equal to preset threshold, if knowing, online adjacent end quantity has the first mesh less than preset threshold
It marks block-identified, is then sent to target device and carry the block-identified adjacent end incremental re-quest of the first object;
The online supplement block-identified comprising the first object that the user terminal receives the target device feedback is adjacent
The incremental nodes information of terminal is simultaneously stored in the node listing information, detection with each first object is block-identified corresponding deposits
Store up whether all current online adjacent end quantity are more than or equal to preset threshold, if knowing online adjacent end quantity when default
There are still the second target blocks less than preset threshold to identify in section, then inquires the node listing information, obtains storage institute
State multiple multiple target ip address in line target adjacent end of the second target block mark;
The user terminal obtains and second target block from either objective IP address is corresponding in line target adjacent end
Corresponding target block is identified, and the target block is stored in the user terminal, is sent when obtaining destination application
The access request comprising target domain name when, the target area that locally saves is inquired by the block chain domain name mapping module
Domain name registration information in block judges whether that communication IP address corresponding with the target domain name can be obtained, if it exists with institute
State the corresponding communication IP address of target domain name, then feed back to the destination application so that the destination application according to
The communication IP address sends access request.
2. the method as described in claim 1, which is characterized in that all work as in the detection with each block-identified corresponding store
Whether preceding online adjacent end quantity is more than or equal to after preset threshold, further includes:
If the user terminal know with each block-identified corresponding all current online adjacent end quantity of storage both greater than etc.
In preset threshold, then when obtaining the access request comprising target domain name that destination application is sent, to block chain domain name system
System sends the access request including target domain name, obtains the communication IP corresponding with the target domain name of online adjacent end feedback
Address, and the destination application is fed back to, it is accessed so that the destination application is sent according to the communication IP address
Request.
3. the method as described in claim 1, which is characterized in that described then send to target device carries the first object area
The adjacent end incremental re-quest of block identification, comprising:
The user terminal sends adjacent end increment to current online adjacent end or the address allocation server and asks
It asks.
4. the method as described in claim 1, which is characterized in that the user terminal from either objective IP address it is corresponding
Line target adjacent end obtains before target block corresponding with the second target block mark, further includes:
The user terminal is carried to the multiple send in line target adjacent end respectively according to the multiple target ip address
The block checking request message of second target block mark, and receive and the multiple fed back respectively in line target adjacent end
Include second target block mark cryptographic Hash authentication response information, it is more the multiple in line target adjacent end point
The cryptographic Hash size that do not feed back, if all cryptographic Hash are identical, it is determined that target corresponding with the second target block mark
Block is proved to be successful, to obtain target block corresponding with the second target block mark.
5. the method as described in claim 1, which is characterized in that inquire this by the block chain domain name mapping module described
The domain name registration information in the target block that ground saves, judges whether that communication corresponding with the target domain name can be obtained
After IP address, further includes:
If the user terminal, which is known, to obtain communication IP address corresponding with the target domain name from the target block,
Sent to block chain domain name system include target domain name access request, it is obtaining online adjacent end feedback with the aiming field
The corresponding communication IP address of name, and the destination application is fed back to, so that the destination application is according to the communication
IP address sends access request.
6. a kind of user terminal, which is characterized in that block chain domain name solution is arranged in the operating system kernel layer of the user terminal
Module is analysed, the user terminal includes:
First obtains module, for after the os starting of the user terminal, from the address allocation services of current network
Device obtains the IP address of the user terminal and meets the node listing information of the online adjacent end of default neighbor,
In, the online adjacent end includes: in the current network by other use of address allocation server distribution IP address
Family terminal, and/or, the other equipment terminal being connected with the address allocation server, the node listing information includes: each
The IP address of online adjacent end and each online adjacent end currently correspond to the block-identified collection in the block chain account book of storage
It closes;
Second obtains module, and for inquiring the node listing information, detection and each block-identified corresponding storage are all current
Whether online adjacent end quantity is more than or equal to preset threshold, if knowing, online adjacent end quantity exists less than preset threshold
First object is block-identified, then sends to target device and carry the block-identified adjacent end incremental re-quest of the first object;
Memory module, the online supplement block-identified comprising the first object for receiving the target device feedback are adjacent
The incremental nodes information of terminal is simultaneously stored in the node listing information;
Detection module, for detect with each first object it is block-identified it is corresponding storage it is all currently online adjacent end quantity be
It is no to be more than or equal to preset threshold;
Third obtains module, for knowing online adjacent end quantity, there are still less than preset threshold in preset period of time
When second target block identifies, inquire the node listing information, obtain store the second target block mark it is multiple
Multiple target ip address of line target adjacent end;
The memory module is also used to obtain and second mesh from either objective IP address is corresponding in line target adjacent end
Block-identified corresponding target block is marked, and the target block is stored in the user terminal;
Access modules, for passing through the area when obtaining the access request comprising target domain name that destination application is sent
Domain name registration information in the target block that locally saves of block chain domain name mapping module inquiry, judge whether to obtain with
The corresponding communication IP address of the target domain name, communication IP address corresponding with the target domain name, then feed back to institute if it exists
Destination application is stated, so that the destination application sends access request according to the communication IP address.
7. user terminal as claimed in claim 6, which is characterized in that
The access modules are also used to knowing and each block-identified corresponding all current online adjacent end quantity of storage
When more than or equal to preset threshold, when obtaining the access request comprising target domain name that destination application is sent, to block chain
Domain name system sends the access request including target domain name, obtains the corresponding with the target domain name of online adjacent end feedback
Communication IP address, and the destination application is fed back to, so that the destination application is sent out according to the communication IP address
Send access request.
8. user terminal as claimed in claim 6, which is characterized in that
Described second obtains module, is also used to send to current online adjacent end or the address allocation server adjacent
Terminal incremental re-quest.
9. a kind of computer equipment, which is characterized in that including memory, processor and be stored on the memory and can be in institute
The computer program run on processor is stated, when the processor executes the computer program, is realized as in claim 1-5
Any block chain domain name analytic method based on user terminal operations system.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
Such as the block chain domain name solution as claimed in any one of claims 1 to 5 based on user terminal operations system is realized when being executed by processor
Analysis method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910210217.8A CN109951482B (en) | 2019-03-19 | 2019-03-19 | User terminal and block chain domain name resolution method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910210217.8A CN109951482B (en) | 2019-03-19 | 2019-03-19 | User terminal and block chain domain name resolution method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109951482A true CN109951482A (en) | 2019-06-28 |
CN109951482B CN109951482B (en) | 2021-01-15 |
Family
ID=67010411
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910210217.8A Active CN109951482B (en) | 2019-03-19 | 2019-03-19 | User terminal and block chain domain name resolution method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109951482B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110599142A (en) * | 2019-09-16 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Data storage method and device, computer equipment and storage medium |
CN112732201A (en) * | 2021-02-26 | 2021-04-30 | 邹威 | Block chain based data storage configuration method and block chain cloud platform |
CN112968923A (en) * | 2021-01-21 | 2021-06-15 | 河北蜂之巢互联网技术有限公司 | Block chain task scheduling method and mini node |
CN114356937A (en) * | 2022-01-09 | 2022-04-15 | 广州聚高信息科技有限公司 | Financial information management system based on block chain and big data |
CN114598680A (en) * | 2022-03-28 | 2022-06-07 | 中国银行股份有限公司 | Domain name management method, device and storage medium |
CN115037813A (en) * | 2022-06-08 | 2022-09-09 | 北京知帆科技有限公司 | Block chain data analysis method and device and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107613041A (en) * | 2017-09-22 | 2018-01-19 | 中国互联网络信息中心 | DNS management system, domain name management method and domain name analytic method based on block chain |
CN108027867A (en) * | 2015-07-14 | 2018-05-11 | Fmr有限责任公司 | Calculate efficient transfer accounts processing, audit and searcher, method and system |
WO2018213880A1 (en) * | 2017-05-22 | 2018-11-29 | Haventec Pty Ltd | System for blockchain based domain name and ip number register |
CN109413228A (en) * | 2018-12-20 | 2019-03-01 | 全链通有限公司 | IPv6 generation method and system based on block chain domain name system |
-
2019
- 2019-03-19 CN CN201910210217.8A patent/CN109951482B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108027867A (en) * | 2015-07-14 | 2018-05-11 | Fmr有限责任公司 | Calculate efficient transfer accounts processing, audit and searcher, method and system |
WO2018213880A1 (en) * | 2017-05-22 | 2018-11-29 | Haventec Pty Ltd | System for blockchain based domain name and ip number register |
CN107613041A (en) * | 2017-09-22 | 2018-01-19 | 中国互联网络信息中心 | DNS management system, domain name management method and domain name analytic method based on block chain |
CN109413228A (en) * | 2018-12-20 | 2019-03-01 | 全链通有限公司 | IPv6 generation method and system based on block chain domain name system |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110599142A (en) * | 2019-09-16 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Data storage method and device, computer equipment and storage medium |
CN112968923A (en) * | 2021-01-21 | 2021-06-15 | 河北蜂之巢互联网技术有限公司 | Block chain task scheduling method and mini node |
CN112968923B (en) * | 2021-01-21 | 2023-05-05 | 深圳广璞互联网技术有限公司 | Block chain task scheduling method and miner node |
CN112732201A (en) * | 2021-02-26 | 2021-04-30 | 邹威 | Block chain based data storage configuration method and block chain cloud platform |
CN114356937A (en) * | 2022-01-09 | 2022-04-15 | 广州聚高信息科技有限公司 | Financial information management system based on block chain and big data |
CN114356937B (en) * | 2022-01-09 | 2022-08-26 | 上海即科智能技术集团有限公司 | Financial information management system based on block chain and big data |
CN114598680A (en) * | 2022-03-28 | 2022-06-07 | 中国银行股份有限公司 | Domain name management method, device and storage medium |
CN114598680B (en) * | 2022-03-28 | 2024-02-23 | 中国银行股份有限公司 | Domain name management method, device and storage medium |
CN115037813A (en) * | 2022-06-08 | 2022-09-09 | 北京知帆科技有限公司 | Block chain data analysis method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109951482B (en) | 2021-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109951482A (en) | User terminal and its block chain domain name analytic method | |
CN101488950B (en) | Symmetric key distribution framework for the internet | |
Plohmann et al. | Case study of the miner botnet | |
CN109246211B (en) | Resource uploading and resource requesting method in block chain | |
Liu et al. | A data storage method based on blockchain for decentralization DNS | |
CN108270882B (en) | Domain name resolution method and device, storage medium and electronic device | |
CN102769529B (en) | Dnssec signing server | |
CN109983752A (en) | Network address with NS grades of information of encoding D | |
CN109819068B (en) | User terminal, block chain domain name resolution method thereof, computer equipment and computer readable storage medium | |
CN109981814A (en) | Domain name information inquiry method and system based on block chain network service node | |
Schomp et al. | Assessing DNS vulnerability to record injection | |
CN104052736A (en) | Systems and methods for pre-signing of dnssec enabled zones into record sets | |
Li et al. | B-DNS: A secure and efficient DNS based on the blockchain technology | |
Hao et al. | {End-Users} get maneuvered: Empirical analysis of redirection hijacking in content delivery networks | |
CN106790296B (en) | Domain name record verification method and device | |
He et al. | TD-Root: A trustworthy decentralized DNS root management architecture based on permissioned blockchain | |
JP2000349747A (en) | Public key managing method | |
CN106936945A (en) | Distributed domain name analysis method and device | |
CN109951481B (en) | Information processing method and system based on block chain network adjacent nodes | |
CN109359484A (en) | Processing method, device, equipment and the medium of the security audit terminal log of cloud platform | |
Hu et al. | IDV: Internet Domain Name Verification Based on Blockchain. | |
US8112535B2 (en) | Securing a server in a dynamic addressing environment | |
Allman | On eliminating root nameservers from the DNS | |
Roos | Identity management on the blockchain | |
CN109819069A (en) | The appraisal procedure and system of inquiry of the domain name service quality |
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 | ||
CB02 | Change of applicant information |
Address after: 100191 1107c, 11 / F, Xueyuan international building, 1 Zhichun Road, Haidian District, Beijing Applicant after: IALLCHAIN Co.,Ltd. Address before: 100043 5158, 5 floor, 11 Shixing street, Shijingshan District, Beijing. Applicant before: IALLCHAIN Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |