CN111475704A - Intelligent domain name resolution method and device and computer readable storage medium - Google Patents

Intelligent domain name resolution method and device and computer readable storage medium Download PDF

Info

Publication number
CN111475704A
CN111475704A CN202010186678.9A CN202010186678A CN111475704A CN 111475704 A CN111475704 A CN 111475704A CN 202010186678 A CN202010186678 A CN 202010186678A CN 111475704 A CN111475704 A CN 111475704A
Authority
CN
China
Prior art keywords
domain name
network address
client
legal
management module
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.)
Pending
Application number
CN202010186678.9A
Other languages
Chinese (zh)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202010186678.9A priority Critical patent/CN111475704A/en
Priority to PCT/CN2020/099090 priority patent/WO2021184580A1/en
Publication of CN111475704A publication Critical patent/CN111475704A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

The invention relates to a block chain technology, and discloses an intelligent domain name resolution method, which comprises the following steps: acquiring a domain name to be accessed by a client; if the network address is found in the local cache of the client, acquiring the network address from the local cache; if the local cache does not find the network address, inputting the domain name into a pre-constructed block chain system for inquiring the network address; if the network address is inquired in the block chain system, returning the network address to the client; if the network address is not inquired in the block chain system, the domain name to be accessed is input into a domain name resolution server to inquire the network address, and an inquiry result is returned to the client to finish the intelligent resolution of the domain name. The invention also provides a domain name intelligent analysis device, electronic equipment and a computer readable storage medium. The invention realizes the intelligent resolution of the domain name.

Description

Intelligent domain name resolution method and device and computer readable storage medium
Technical Field
The present invention relates to the field of block chain technologies, and in particular, to an intelligent domain name resolution method and apparatus, and a computer-readable storage medium.
Background
Since birth, a Domain Name System (DNS) is used as an entrance of the internet, and handles billions of access demands of the internet every day, it provides a mapping relationship between Domain names and IP addresses, so that users can remember and schedule access better, and the importance of the Domain Name System is self-evident. The traditional domain name resolution system distributes a user centralized access and near access cache mechanism by natural distributed inverted tree deployment to serve the internet, but the mechanism also brings some potential safety hazards and low efficiency, such as:
① hijacking domain name, namely, the hijacking authority server tampers with the analysis record to achieve the aim of misleading the user to access;
② cache poisoning, using DNS to respond to forged data by forging authoritative server during UDP protocol recursion;
③ TT L postpones the existence of TT L to ease recursion frequency and quick response users, but also causes the record on the authoritative server to be modified and the record data to be obtained only after TT L expires;
④ passive refresh, because the DNS design does not consider the cache refresh mechanism at the beginning, the problem of real-time resolution result is also brought.
Disclosure of Invention
The invention provides a domain name intelligent resolution method, a domain name intelligent resolution device and a computer readable storage medium, and mainly aims to provide a technical scheme of domain name intelligent resolution based on a block chain so as to solve the problems of potential safety hazard and low efficiency of a traditional domain name resolution system.
In order to achieve the above object, the present invention provides an intelligent domain name resolution method, which includes:
acquiring a domain name to be accessed by a client, and searching a network address corresponding to the domain name in a local cache of the client;
if the network address is found in the local cache of the client, the network address is obtained from the local cache of the client;
if the local cache of the client does not find the network address, inputting the domain name into a pre-constructed block chain system for inquiring the network address, wherein the pre-constructed block chain system comprises a legal domain name stored in a block and a corresponding network address;
if the network address corresponding to the domain name is inquired in the block chain system, returning the network address to the client;
if the network address corresponding to the domain name is not inquired in the block chain system, the domain name to be accessed is input into a domain name resolution server to inquire the network address, and the obtained inquiry result is returned to the client, so that the intelligent resolution of the domain name is completed.
Optionally, the IP address, the wallet address and/or the memory address are included, wherein the memory address is distinguished by a pointer.
Optionally, the inputting the domain name into a pre-constructed blockchain system for querying a network address includes:
storing the network address in the cache management module;
recording the domain name on a block chain to obtain a legal domain name, and storing the legal domain name in a cache management module for storing the network address in a block form;
and utilizing a tracking management module to inquire the network address of the legal domain name in the cache management module.
Optionally, the querying, by the tracking management module, the network address of the legal domain name in the cache management module includes:
obtaining the hash value of the legal domain name in the cache management module, and constructing a dictionary tree according to the hash value of the legal domain name;
traversing and querying the established dictionary tree by using a Tracker instruction to obtain a leaf node corresponding to the legal domain name, wherein the leaf node is a hash pointer of a legal domain name address;
and obtaining the network address corresponding to the legal domain name according to the pointing query of the leaf node, and returning the network address to the client.
Optionally, the inputting the domain name to be accessed into a domain name resolution server for performing a query operation of a network address includes:
forwarding the domain name to a recursive resolver of the domain name resolution server by using a forwarding resolver of the domain name resolution server, and performing iterative analysis on the domain name by using the recursive resolver to obtain a response message, wherein the response message comprises a network address obtained by query to obtain a query result;
wherein the iterative analysis comprises:
and acquiring the address information of the client, calculating the network topology position of the client according to the address information, and analyzing the response message of the domain name according to the network topology position.
In addition, to achieve the above object, the present invention further provides an intelligent domain name resolution apparatus, including:
the local query module is used for acquiring a domain name to be accessed by a client, searching a network address corresponding to the domain name in a local cache of the client, and acquiring the network address from the local cache of the client if the network address is searched in the local cache of the client;
the block chain query module is used for inputting the domain name into a pre-constructed block chain system for querying the network address if the local cache of the client does not find the network address, and returning the network address to the client if the network address corresponding to the domain name is queried in the block chain system, wherein the pre-constructed block chain system comprises a legal domain name stored in a block and a corresponding network address;
and the server query module is used for inputting the domain name to be accessed into a domain name resolution server to query the network address if the network address corresponding to the domain name is not queried in the block chain system, and returning the obtained query result to the client so as to finish the intelligent resolution of the domain name.
Optionally, the inputting the domain name into a pre-constructed blockchain system for querying a network address includes:
storing the network address in the cache management module;
recording the domain name on a block chain to obtain a legal domain name, and storing the legal domain name in a cache management module for storing the network address in a block form;
and utilizing a tracking management module to inquire the network address of the legal domain name in the cache management module.
Optionally, the querying, by the tracking management module, the network address of the legal domain name in the cache management module includes:
obtaining the hash value of the legal domain name in the cache management module, and constructing a dictionary tree according to the hash value of the legal domain name;
traversing and querying the established dictionary tree by using a Tracker instruction to obtain a leaf node corresponding to the legal domain name, wherein the leaf node is a hash pointer of a legal domain name address;
and obtaining the network address corresponding to the legal domain name according to the pointing query of the leaf node, and returning the network address to the client.
In addition, to achieve the above object, the present invention also provides an electronic device, which includes one or more functional modules, where the functional modules are stored in a memory of a data processing device and executed by a processor of the data processing device, so as to implement the steps of the domain name intelligent resolution method as described above.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium, which stores thereon a domain name intelligent resolution program, the domain name intelligent resolution program being executable by one or more processors to implement the steps of the domain name intelligent resolution method as described above.
The intelligent domain name resolution method, the intelligent domain name resolution device and the computer readable storage medium receive a domain name to be accessed, utilize a local client to query the domain name, if the local client cannot query the corresponding network address of the domain name, the network address of the domain name is queried through a pre-constructed block chain system, and if the block chain system cannot query the corresponding network address of the domain name, the network address of the domain name is queried according to a domain name resolution server, so that the intelligent resolution of the domain name is completed, the real-time query of the domain name is effectively realized, and the risk that resolution records of an authoritative server of the domain name are modified is prevented.
Drawings
Fig. 1 is a schematic flowchart of a domain name intelligent resolution method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an internal structure of an electronic device according to an embodiment of the present invention;
fig. 3 is a schematic functional module diagram of an intelligent domain name resolution device according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides an intelligent domain name resolution method. Fig. 1 is a schematic flow chart of a domain name intelligent resolution method according to an embodiment of the present invention. The method may be performed by an apparatus, which may be implemented by software and/or hardware.
In this embodiment, the domain name intelligent resolution method includes:
s1, obtaining the domain name to be accessed by the client, and searching the network address corresponding to the domain name in the local cache of the client.
The client is also called a user side, and refers to a program corresponding to the server and providing local service for the client. The Domain Name (also called "netdomain") is the Name of a server or group of servers on the Internet that is composed of a string of names separated by dots, and is used to identify the electronic location (sometimes also referred to as the geographic location) of the server during data transmission.
The network address may include: an IP address, a wallet address, and a memory address, wherein the memory addresses are distinguished by a pointer.
Preferably, the present invention queries whether the network address exists in the local cache of the client through a networking terminal.
S2, if the network address is found in the local cache of the client, the network address is directly obtained from the local cache of the client.
In the preferred embodiment of the present invention, the IP address of the Windows operating system is taken as an example, and the domain name to be accessed is received as follows: www.baidu.com, obtaining the server IP address to be accessed by the domain name in the local cache of the client by using the nslookup query instruction of the client cmd: 192.168.43.1.
s3, if the local cache of the client does not find the network address, inputting the domain name into a block chain system constructed in advance for query, wherein the block chain system constructed in advance comprises a legal domain name stored in a block and a corresponding network address.
In a preferred embodiment of the present invention, the creating of the pre-constructed Blockchain system by a BNS (Blockchain NameSystem, block chain based intelligent domain name resolution system) server includes: the system comprises a configuration management module, a response management module, a cache management module, a tracking management module and a recursion management module. The configuration management module is equivalent to an authoritative server, receives domain name configuration initiated by a legal user and broadcasts the domain name configuration to the block chain network. The response management module is used for monitoring the client requests and responding, and mainly performs rotation or weight scheduling on response items. The cache management module is used for caching the domain name and the network address, and reducing direct access to the database file. The tracking management module is used for recording the nodes of the domain names which are not in the local database so as to quickly find the target. The recursive management module is used for acquiring a target node from the tracking management module and inquiring when a local database has no record or recursively inquiring a traditional domain name resolution server or a block chain network when the tracking management module has no record.
In detail, the inputting the domain name into a pre-constructed blockchain system for querying a network address includes:
storing the network address in the cache management module;
recording the domain name on a block chain to obtain a legal domain name, and storing the legal domain name in a cache management module for storing the network address in a block form;
and utilizing a tracking management module to inquire the network address of the legal domain name in the cache management module.
S4, if the network address corresponding to the domain name is inquired in the blockchain system, returning the network address to the client.
In the preferred embodiment of the present invention, the blockchain system may comprise a plurality of BNS servers according to the needs of the user. Preferably, in the present invention, a blockchain system including only a first BNS server and a second BNS server is taken as an example, and the first BNS server is preset to be closer to the client, so that the first BNS server preferentially responds to the domain name to be accessed. In detail: the first BNS server receives a domain name to be accessed, records the domain name on a block chain through the configuration management module to obtain a legal domain name, requests the legal domain name to the cache management module through the response management module, stores the legal domain name in the cache management module in a block form and stores a network address in the cache management module, utilizes the tracking management module to query the legal domain name in the cache management module for the network address, directly returns the network address to the client if the network address corresponding to the legal domain name is queried, and performs domain name resolution on the second BNS server through the recursion management module if the network address corresponding to the legal domain name is not queried. Wherein the block comprises: a block head and a block body, and the block head includes: the domain name generation time, the domain name hash, and the hash pointer, etc. are associated with the block of the domain name block, i.e. the address record.
Preferably, the storing the legal domain name in the cache management module in a block form according to the present invention includes: and constructing a dictionary (Trie) tree according to the domain name hash of the legal domain name, and enabling each leaf node in the Trie tree to correspond to a hash function of the legal domain name to finish the storage of the legal domain name. Wherein the Trie tree is a tree structure and is a variation of a hash tree.
Preferably, the network address query of the legal domain name in the cache management module by using the tracking management module in the present invention includes: obtaining a hash value of a legal domain name to be resolved in the cache management module, performing traversal query on the established dictionary tree according to a Tracker instruction of the tracking management module to obtain a leaf node corresponding to the legal domain name to be resolved, obtaining a network address of the legal domain name to be resolved according to the direction query of the leaf node, and directly returning the network address to the client, wherein the leaf node is a hash pointer of the legal domain name address; and if the leaf node corresponding to the legal domain name to be analyzed is not queried after traversing query, performing legal domain name analysis on a second BNS server through the recursive management module.
Further, when the second BNS server receives the legal domain name resolution query request initiated by the first server, since the second BNS server and the first BNS server have the same structure but contain different domain names and addresses thereof, the response management of the second BNS server responds to the legal domain name resolution query request initiated by the first BNS server and queries the legal domain name address. In the query process, the second BNS server receives the hash value of the legal domain name to be resolved, and performs traversal query on the established dictionary tree according to a Tracker instruction to obtain a leaf node corresponding to the legal domain name to be resolved, obtains the network address of the legal domain name to be resolved according to the direction query of the leaf node, and directly returns the network address to the first BNS server so as to return the network address to the client. And if the leaf node corresponding to the legal domain name to be analyzed is not queried after traversing query, directly returning a query result to the first BNS server.
And S5, if the network address corresponding to the domain name is not queried in the block chain system, inputting the domain name to be accessed into a domain name resolution server to perform the query operation of the network address, and returning the obtained query result to the client, thereby completing the intelligent resolution of the domain name.
The Domain Name System (DNS) is used to resolve and convert Domain names into corresponding IP addresses. Preferably, the domain name resolution server in the present invention includes: forward parsers and recursive parsers. In detail, the query operation includes: the DNS receives the domain name, the forwarding resolver is used for forwarding the domain name to the recursion resolver, iteration analysis is carried out on the domain name through the recursion resolver to obtain the response message, the response message refers to a network address obtained through query, namely a query result, the obtained query result is returned to the client, and therefore intelligent resolution of the domain name is completed. Wherein the iterative analysis comprises: and acquiring the address information of the client, calculating the network topology position of the client according to the address information, and analyzing the response message of the domain name according to the network topology position.
The invention also provides electronic equipment. Fig. 2 is a schematic diagram of an internal structure of an electronic device according to an embodiment of the present invention.
In the present embodiment, the electronic device 1 may be a PC (Personal Computer), a terminal device such as a smart phone, a tablet Computer, and a mobile Computer, or may be a server. The electronic device 1 comprises at least a memory 11, a processor 12, a communication bus 13, and a network interface 14.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the domain name intelligent resolution arrangement 1, such as a hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in hard disk provided on the electronic device 1, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used to store not only application software installed in the electronic device 1 and various types of data, such as a code of the domain name intelligent resolution program 01, but also temporarily store data that has been output or is to be output.
Processor 12, which in some embodiments may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip, is configured to execute program code or process data stored in memory 11, such as performing domain name intelligent resolver 01.
The communication bus 13 is used to realize connection communication between these components.
The network interface 14 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), typically used to establish a communication link between the apparatus 1 and other electronic devices.
Optionally, the apparatus 1 may further comprise a user interface, which may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and an optional user interface may also comprise a standard wired interface, a wireless interface, optionally, in some embodiments, the Display may be a L ED Display, a liquid crystal Display, a touch-sensitive liquid crystal Display, and an O L ED (Organic L light-Emitting Diode) touch-sensitive device, etc.
Fig. 2 only shows the electronic device 1 with the components 11-14 and the domain name intelligent resolution program 01, and it will be understood by those skilled in the art that the structure shown in fig. 1 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or some components may be combined, or a different arrangement of components.
In the embodiment of the apparatus 1 shown in fig. 2, a domain name intelligent resolution program 01 is stored in the memory 11; the following steps are implemented when the processor 12 executes the domain name intelligent resolution program 01 stored in the memory 11:
step one, acquiring a domain name to be accessed by a client, and searching a network address corresponding to the domain name in a local cache of the client.
The client is also called a user side, and refers to a program corresponding to the server and providing local service for the client. The Domain Name (also called "netdomain") is the Name of a server or group of servers on the Internet that is composed of a string of names separated by dots, and is used to identify the electronic location (sometimes also referred to as the geographic location) of the server during data transmission.
The network address may include: an IP address, a wallet address, and a memory address, wherein the memory addresses are distinguished by a pointer.
Preferably, the present invention queries whether the network address exists in the local cache of the client through a networking terminal.
And step two, if the network address is found in the local cache of the client, directly acquiring the network address from the local cache of the client.
In the preferred embodiment of the present invention, the IP address of the Windows operating system is taken as an example, and the domain name to be accessed is received as follows: www.baidu.com, obtaining the server IP address to be accessed by the domain name in the local cache of the client by using the nslookup query instruction of the client cmd: 192.168.43.1.
and step three, if the local cache of the client does not find the network address, inputting the domain name into a block chain system constructed in advance for query.
In a preferred embodiment of the present invention, the creating of the pre-constructed Blockchain system by a BNS (Blockchain NameSystem, block chain based intelligent domain name resolution system) server includes: the system comprises a configuration management module, a response management module, a cache management module, a tracking management module and a recursion management module. The configuration management module is equivalent to an authoritative server, receives domain name configuration initiated by a legal user and broadcasts the domain name configuration to the block chain network. The response management module is used for monitoring the client requests and responding, and mainly performs rotation or weight scheduling on response items. The cache management module is used for caching the domain name and the network address, and reducing direct access to the database file. The tracking management module is used for recording the nodes of the domain names which are not in the local database so as to quickly find the target. The recursive management module is used for acquiring a target node from the tracking management module and inquiring when a local database has no record or recursively inquiring a traditional domain name resolution server or a block chain network when the tracking management module has no record.
In detail, the inputting the domain name into a pre-constructed blockchain system for querying a network address includes:
storing the network address in the cache management module;
recording the domain name on a block chain to obtain a legal domain name, and storing the legal domain name in a cache management module for storing the network address in a block form;
and utilizing a tracking management module to inquire the network address of the legal domain name in the cache management module.
And step four, if the network address corresponding to the domain name is inquired in the block chain system, returning the network address to the client.
In the preferred embodiment of the present invention, the blockchain system may comprise a plurality of BNS servers according to the needs of the user. Preferably, in the present invention, a blockchain system including only a first BNS server and a second BNS server is taken as an example, and the first BNS server is preset to be closer to the client, so that the first BNS server preferentially responds to the domain name to be accessed. In detail: the first BNS server receives a domain name to be accessed, records the domain name on a block chain through the configuration management module to obtain a legal domain name, requests the legal domain name to the cache management module through the response management module, stores the legal domain name in the cache management module in a block form and stores a network address in the cache management module, utilizes the tracking management module to query the legal domain name in the cache management module for the network address, directly returns the network address to the client if the network address corresponding to the legal domain name is queried, and performs domain name resolution on the second BNS server through the recursion management module if the network address corresponding to the legal domain name is not queried. Wherein the block comprises: a block head and a block body, and the block head includes: the domain name generation time, the domain name hash, and the hash pointer, etc. are associated with the block of the domain name block, i.e. the address record.
Preferably, the storing the legal domain name in the cache management module in a block form according to the present invention includes: and constructing a dictionary (Trie) tree according to the domain name hash of the legal domain name, and enabling each leaf node in the Trie tree to correspond to a hash function of the legal domain name to finish the storage of the legal domain name. Wherein the Trie tree is a tree structure and is a variation of a hash tree.
Preferably, the network address query of the legal domain name in the cache management module by using the tracking management module in the present invention includes: obtaining a hash value of a legal domain name to be resolved in the cache management module, performing traversal query on the established dictionary tree according to a Tracker instruction of the tracking management module to obtain a leaf node corresponding to the legal domain name to be resolved, obtaining a network address of the legal domain name to be resolved according to the direction query of the leaf node, and directly returning the network address to the client, wherein the leaf node is a hash pointer of the legal domain name address; and if the leaf node corresponding to the legal domain name to be analyzed is not queried after traversing query, performing legal domain name analysis on a second BNS server through the recursive management module.
Further, when the second BNS server receives the legal domain name resolution query request initiated by the first server, since the second BNS server and the first BNS server have the same structure but contain different domain names and addresses thereof, the response management of the second BNS server responds to the legal domain name resolution query request initiated by the first BNS server and queries the legal domain name address. In the query process, the second BNS server receives the hash value of the legal domain name to be resolved, and performs traversal query on the established dictionary tree according to a Tracker instruction to obtain a leaf node corresponding to the legal domain name to be resolved, obtains the network address of the legal domain name to be resolved according to the direction query of the leaf node, and directly returns the network address to the first BNS server so as to return the network address to the client. And if the leaf node corresponding to the legal domain name to be analyzed is not queried after traversing query, directly returning a query result to the first BNS server.
And step five, if the network address corresponding to the domain name is not inquired in the block chain system, inputting the domain name to be accessed into a domain name resolution server to perform the inquiry operation of the network address, and returning the obtained inquiry result to the client so as to finish the intelligent resolution of the domain name.
The Domain Name System (DNS) is used to resolve and convert Domain names into corresponding IP addresses. Preferably, the domain name resolution server in the present invention includes: forward parsers and recursive parsers. In detail, the query operation includes: the DNS receives the domain name, the forwarding resolver is used for forwarding the domain name to the recursion resolver, iteration analysis is carried out on the domain name through the recursion resolver to obtain the response message, the response message refers to a network address obtained through query, namely a query result, the obtained query result is returned to the client, and therefore intelligent resolution of the domain name is completed. Wherein the iterative analysis comprises: and acquiring the address information of the client, calculating the network topology position of the client according to the address information, and analyzing the response message of the domain name according to the network topology position.
Further, referring to fig. 3, a functional module diagram of an intelligent domain name resolution device according to an embodiment of the present invention is shown.
Alternatively, the intelligent domain name resolution device may be divided into one or more modules, and one or more modules are stored in the memory 11 and executed by one or more processors (in this embodiment, the processor 12) to implement the present invention.
For example, in the embodiment of the present invention, the domain name intelligent resolution program may be divided into a local query module 10, a blockchain query module 20, and a server query module 30, which exemplarily:
the local query module 10 is configured to: the method comprises the steps of obtaining a domain name to be accessed by a client, searching a network address corresponding to the domain name in a local cache of the client, and directly obtaining the network address from the local cache of the client if the network address is searched in the local cache of the client.
The blockchain query module 20 is configured to: if the local cache of the client does not find the network address, inputting the domain name into a pre-constructed block chain system for inquiring the network address, and if the network address corresponding to the domain name is inquired in the block chain system, returning the network address to the client, wherein the pre-constructed block chain system comprises a legal domain name stored in a block and a corresponding network address.
The server query module 30 is configured to: if the network address corresponding to the domain name is not inquired in the block chain system, the domain name to be accessed is input into a domain name resolution server to inquire the network address, and the obtained inquiry result is returned to the client, so that the intelligent resolution of the domain name is completed.
The functions or operation steps of the local query module 10, the blockchain query module 20, the server query module 30 and other program modules implemented by the program modules are substantially the same as those of the above embodiments, and are not repeated herein.
In addition, the embodiment of the invention also provides a computer readable storage medium. The computer readable storage medium may be a non-volatile computer readable storage medium or a volatile computer readable storage medium. The computer-readable storage medium has stored thereon a domain name intelligent resolution program executable by one or more processors to:
acquiring a domain name to be accessed by a client, and searching a network address corresponding to the domain name in a local cache of the client;
if the network address is found in the local cache of the client, the network address is obtained from the local cache of the client;
if the local cache of the client does not find the network address, inputting the domain name into a pre-constructed block chain system for inquiring the network address, wherein the pre-constructed block chain system comprises a legal domain name stored in a block and a corresponding network address;
if the network address corresponding to the domain name is inquired in the block chain system, returning the network address to the client;
if the network address corresponding to the domain name is not inquired in the block chain system, the domain name to be accessed is input into a domain name resolution server to inquire the network address, and the obtained inquiry result is returned to the client, so that the intelligent resolution of the domain name is completed.
Embodiments of the computer-readable storage medium of the present invention are substantially the same as the embodiments of the electronic device and method described above, and will not be described herein in detail.
It should be noted that the above-mentioned numbers of the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An intelligent domain name resolution method is characterized by comprising the following steps:
acquiring a domain name to be accessed by a client, and searching a network address corresponding to the domain name in a local cache of the client;
if the network address is found in the local cache of the client, the network address is obtained from the local cache of the client;
if the local cache of the client does not find the network address, inputting the domain name into a pre-constructed block chain system for inquiring the network address, wherein the pre-constructed block chain system comprises a legal domain name stored in a block and a corresponding network address;
if the network address corresponding to the domain name is inquired in the block chain system, returning the network address to the client;
if the network address corresponding to the domain name is not inquired in the block chain system, the domain name to be accessed is input into a domain name resolution server to inquire the network address, and an obtained inquiry result is returned to the client.
2. The intelligent domain name resolution method according to claim 1, wherein the network address comprises an IP address, a wallet address and/or a memory address, wherein the memory address is distinguished by a pointer.
3. The intelligent domain name resolution method according to claim 1, wherein the inputting the domain name into a pre-constructed blockchain system for querying a network address comprises:
storing the network address in the cache management module;
recording the domain name on a block chain to obtain a legal domain name, and storing the legal domain name in a cache management module for storing the network address in a block form;
and utilizing a tracking management module to inquire the network address of the legal domain name in the cache management module.
4. The intelligent domain name resolution method according to claim 3, wherein the using of the tracking management module to perform the network address query on the legal domain name in the cache management module comprises:
obtaining the hash value of the legal domain name in the cache management module, and constructing a dictionary tree according to the hash value of the legal domain name;
traversing and querying the established dictionary tree by using a Tracker instruction to obtain a leaf node corresponding to the legal domain name, wherein the leaf node is a hash pointer of a legal domain name address;
and obtaining the network address corresponding to the legal domain name according to the pointing query of the leaf node, and returning the network address to the client.
5. The intelligent domain name resolution method according to claim 1, wherein the inputting the domain name to be accessed into a domain name resolution server for querying a network address comprises:
forwarding the domain name to a recursive resolver of the domain name resolution server by using a forwarding resolver of the domain name resolution server, and performing iterative analysis on the domain name by using the recursive resolver to obtain a response message, wherein the response message comprises a network address obtained by query to obtain a query result;
wherein the iterative analysis comprises:
and acquiring the address information of the client, calculating the network topology position of the client according to the address information, and analyzing the response message of the domain name according to the network topology position.
6. An intelligent domain name resolution device, comprising:
the local query module is used for acquiring a domain name to be accessed by a client, searching a network address corresponding to the domain name in a local cache of the client, and acquiring the network address from the local cache of the client if the network address is found in the local cache of the client;
the block chain query module is used for inputting the domain name into a pre-constructed block chain system for querying the network address if the local cache of the client does not find the network address, and returning the network address to the client if the network address corresponding to the domain name is queried in the block chain system, wherein the pre-constructed block chain system comprises a legal domain name stored in a block and a corresponding network address;
and the server query module is used for inputting the domain name to be accessed into a domain name resolution server to query the network address if the network address corresponding to the domain name is not queried in the block chain system, and returning the obtained query result to the client so as to finish the intelligent resolution of the domain name.
7. The intelligent domain name resolution device according to claim 6, wherein the inputting the domain name into a pre-constructed blockchain system for querying a network address comprises:
storing the network address in the cache management module;
recording the domain name on a block chain to obtain a legal domain name, and storing the legal domain name in a cache management module for storing the network address in a block form;
and utilizing a tracking management module to inquire the network address of the legal domain name in the cache management module.
8. The intelligent domain name resolution device according to claim 7, wherein the utilizing trace management module to perform network address query on the legal domain name in the cache management module includes:
obtaining the hash value of the legal domain name in the cache management module, and constructing a dictionary tree according to the hash value of the legal domain name;
traversing and querying the established dictionary tree by using a Tracker instruction to obtain a leaf node corresponding to the legal domain name, wherein the leaf node is a hash pointer of a legal domain name address;
and obtaining the network address corresponding to the legal domain name according to the pointing query of the leaf node, and returning the network address to the client.
9. An electronic device, characterized in that it comprises one or more functional modules stored in a memory of a data processing device and implementing, when executed by a processor of said data processing device, the steps of a data synchronization method of a microservice according to any one of claims 1 to 5.
10. A computer-readable storage medium having stored thereon a domain name intelligent resolution program executable by one or more processors to perform the steps of the domain name intelligent resolution method of any one of claims 1 to 5.
CN202010186678.9A 2020-03-17 2020-03-17 Intelligent domain name resolution method and device and computer readable storage medium Pending CN111475704A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010186678.9A CN111475704A (en) 2020-03-17 2020-03-17 Intelligent domain name resolution method and device and computer readable storage medium
PCT/CN2020/099090 WO2021184580A1 (en) 2020-03-17 2020-06-30 Intelligent domain name resolution method and apparatus, electronic device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010186678.9A CN111475704A (en) 2020-03-17 2020-03-17 Intelligent domain name resolution method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111475704A true CN111475704A (en) 2020-07-31

Family

ID=71748255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010186678.9A Pending CN111475704A (en) 2020-03-17 2020-03-17 Intelligent domain name resolution method and device and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN111475704A (en)
WO (1) WO2021184580A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112040022A (en) * 2020-08-25 2020-12-04 成都安恒信息技术有限公司 DNS cache processing method
CN112612816A (en) * 2020-12-01 2021-04-06 网易(杭州)网络有限公司 Service result query method, device, equipment and medium for Ether house alliance chain
CN112653760A (en) * 2020-12-22 2021-04-13 平安银行股份有限公司 Cross-server file transmission method and device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105978697A (en) * 2016-07-25 2016-09-28 宁圣金融信息服务(上海)有限公司 Block chain domain name resolution method
CN106161674A (en) * 2016-07-25 2016-11-23 宁圣金融信息服务(上海)有限公司 A kind of block chain domain name mapping device
CN109714446A (en) * 2018-12-20 2019-05-03 全链通有限公司 Domain name analytic method, equipment, system and storage medium
CN109688239A (en) * 2018-12-20 2019-04-26 全链通有限公司 Domain name analytic method, equipment, system and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112040022A (en) * 2020-08-25 2020-12-04 成都安恒信息技术有限公司 DNS cache processing method
CN112612816A (en) * 2020-12-01 2021-04-06 网易(杭州)网络有限公司 Service result query method, device, equipment and medium for Ether house alliance chain
CN112653760A (en) * 2020-12-22 2021-04-13 平安银行股份有限公司 Cross-server file transmission method and device, electronic equipment and storage medium
CN112653760B (en) * 2020-12-22 2023-03-24 平安银行股份有限公司 Cross-server file transmission method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2021184580A1 (en) 2021-09-23

Similar Documents

Publication Publication Date Title
CN110674432B (en) Second-level caching method, device and computer readable storage medium
CN108062413B (en) Web data processing method, device, computer equipment and storage medium
US7987509B2 (en) Generation of unique significant key from URL get/post content
CN111475704A (en) Intelligent domain name resolution method and device and computer readable storage medium
US9219705B2 (en) Scaling network services using DNS
US7895176B2 (en) Entry group tags
CN101431539B (en) Domain name resolution method, system and apparatus
CN103891247B (en) Method and system for domain name system based discovery of devices and objects
US20090070470A1 (en) Priority Based LDAP Service Publication Mechanism
US20020161749A1 (en) Identifier code translation system
US20150100563A1 (en) Method for retaining search engine optimization in a transferred website
CN114205330A (en) Domain name resolution method, domain name resolution device, server, and storage medium
US10171415B2 (en) Characterization of domain names based on changes of authoritative name servers
CN101924799A (en) Method and system for querying information of domain name
CN108063835B (en) Outer net domain name analytic method, server and system
CN104253796B (en) Quick area's recognition methods based on network address binding region layer level in domain name system
US20090234858A1 (en) Use Of A Single Service Application Instance For Multiple Data Center Subscribers
KR20060043499A (en) Korean internet contents address service method and system using original dns
CN103220379A (en) Domain name reverse-resolution method and device
CN104253875A (en) DNS (domain name system) flow analysis method
CN111209325B (en) Service system interface identification method, device and storage medium
EP2426894B1 (en) System and method of processing DNS request and DNS reply
CN115858590A (en) Domain name query request processing method, computer device, apparatus, medium, and product
CN111478984B (en) Server IP address obtaining method and device and computer readable storage medium
CN105245626B (en) The method for realizing website addressing using quick domain name in private network

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