CN109067930B - Domain name access method, domain name resolution method, server, terminal and storage medium - Google Patents

Domain name access method, domain name resolution method, server, terminal and storage medium Download PDF

Info

Publication number
CN109067930B
CN109067930B CN201810670268.4A CN201810670268A CN109067930B CN 109067930 B CN109067930 B CN 109067930B CN 201810670268 A CN201810670268 A CN 201810670268A CN 109067930 B CN109067930 B CN 109067930B
Authority
CN
China
Prior art keywords
domain name
block chain
address
node
cdn
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810670268.4A
Other languages
Chinese (zh)
Other versions
CN109067930A (en
Inventor
林土木
陈雄霖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201810670268.4A priority Critical patent/CN109067930B/en
Publication of CN109067930A publication Critical patent/CN109067930A/en
Application granted granted Critical
Publication of CN109067930B publication Critical patent/CN109067930B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The embodiment of the invention relates to the field of Internet and discloses a domain name access method, a domain name resolution method, a server, a terminal and a storage medium. The domain name access method comprises the following steps: acquiring corresponding information of a first domain name and an Internet Protocol (IP) library provided by a Content Delivery Network (CDN); generating a block in which the corresponding information is stored according to the corresponding information; and issuing the blocks stored with the corresponding information to other block chain nodes in the block chain network, and updating the blocks stored with the corresponding information to the respective block chains by the other block chain nodes. In the method, the first domain name and the corresponding information of the IP library are synchronized to the user end block chain node, so that the user end block chain node can determine the access IP address through the query block chain, the time for querying the access IP address is shortened, the influence of the persistence time on the query result is avoided, and the access IP address corresponding to the first domain name can be continuously queried when the authoritative domain name server is attacked.

Description

Domain name access method, domain name resolution method, server, terminal and storage medium
Technical Field
The embodiment of the invention relates to the field of internet, in particular to a domain name access method, a domain name resolution method, a server, a terminal and a storage medium.
Background
The basic idea of a Content Delivery Network (CDN) is to avoid bottlenecks and links on the internet that may affect the data transmission speed and stability as much as possible, so that Content transmission is faster and more stable. The CDN is a layer of intelligent virtual network on the basis of the existing Internet, which is formed by placing node servers at all positions of the network. The CDN can redirect the request of the user to the service node closest to the user in real time according to the network traffic and the comprehensive information such as the connection of each node, the load condition, the distance to the user, and the response time. The method aims to enable the user to obtain the required content nearby, solve the problem of congestion of the Internet network and improve the response speed of the user for accessing the website. The current CDN mainly relies on the existing Domain Name System (DNS) technology to access and resolve a Domain Name, that is, determines the most appropriate Internet Protocol (IP) address corresponding to the Domain Name through recursive query, and then returns the IP address to the user.
However, the inventors found that at least the following problems exist in the prior art: the domain name access and resolution method of the CDN based on the DNS technology has the following problems:
1. the query speed is low; in the worst case, it needs to go through many times of recursive operations to query the IP information corresponding to the domain name.
2. The query result is influenced by the caching time of the edge node; sometimes the domain name has changed, but the domain name change cannot be effective in real Time due To Time To Live (TTL) of domain name resolution in the DNS server, resulting in an error in query result.
3. Since the authoritative domain name server is easily attacked, a large-area service fault is caused, and the use of the CDN system is seriously influenced.
Disclosure of Invention
Embodiments of the present invention provide a domain name access method, a domain name resolution method, a server, a terminal, and a storage medium, so that a user-side block chain node can determine an access IP address through a query block chain, shorten the time for querying the access IP address, avoid the influence of the persistence time on a query result, and continue to query the access IP address corresponding to a first domain name when an authoritative domain name server is attacked.
To solve the above technical problem, an embodiment of the present invention provides a domain name access method for a super block chain node, including: acquiring corresponding information of a first domain name and an Internet Protocol (IP) library provided by a Content Delivery Network (CDN); the first domain name is a domain name of a website needing to be accessed to the CDN; generating a block in which the corresponding information is stored according to the corresponding information; the block stored with the corresponding information is issued to other block chain nodes in the block chain network, and the other block chain nodes update the blocks stored with the corresponding information to respective block chains; the block chain network comprises user terminal block chain nodes and super block chain nodes.
The embodiment of the invention also provides a domain name resolution method, which is used for the user terminal block chain node and comprises the following steps: acquiring a first domain name, wherein the first domain name is a domain name of a website needing to be accessed to a Content Delivery Network (CDN); determining an IP library corresponding to a first domain name according to the corresponding information of the first domain name and an Internet protocol IP library stored in a block chain of a user-side block chain node; the IP library comprises an IP address of the CDN service node; and determining an access IP address according to the IP library corresponding to the first domain name.
An embodiment of the present invention further provides a server, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the domain name access method mentioned in the above embodiments.
An embodiment of the present invention further provides a terminal, including: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the domain name resolution method according to the above embodiments.
The embodiment of the present invention also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the domain name access method mentioned in the above embodiment.
The embodiment of the present invention also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the domain name resolution method mentioned in the above embodiment.
Compared with the prior art, the super block chain node issues the block storing the first domain name and the corresponding information of the IP base to the block chain network, so that the corresponding information can be synchronized to the user end block chain node. Because the corresponding information is stored in the block chain of the user-side block chain node, the user-side block chain node can determine the access IP address by inquiring the block chain, and the inquiring speed is improved. In addition, because the corresponding information of the first domain name and the IP base is stored by adopting the block chain technology, the corresponding information of the first domain name and the IP base cannot be tampered, and the condition of domain name hijacking can be prevented. Due to the characteristics of the block chain, the user-side block chain nodes can be immediately synchronized to the corresponding information when networking is carried out, and the influence of the persistence time on the query result is avoided. Because the corresponding information is stored in the block chain of the user-side block chain node, even if the authoritative domain name server is attacked, the user-side block chain node can still determine the access IP address and acquire the information of the website accessed by the user.
In addition, before or after obtaining the corresponding information between the first domain name provided by the content delivery network CDN and the internet protocol IP library, the domain name access method further includes: acquiring fault information provided by the CDN, wherein the fault information comprises an IP address of a failed CDN service node; generating a block storing fault information according to the fault information; and the blocks stored with the fault information are issued to other block chain nodes in the block chain network, and the other block chain nodes update the blocks stored with the fault information to respective block chains. In the method, the fault information is updated to the user terminal block chain node, so that the user terminal block chain node is prevented from accessing the failed CDN service node.
In addition, the corresponding information is determined by the CDN according to the corresponding relationship between the first domain name and the second domain name, and the corresponding relationship between the second domain name and the IP library. In this way, after the CDN allocates the second domain name to the first domain name, the IP library corresponding to the first domain name can be determined, so that the speed of accessing the first domain name to the CDN is increased.
In addition, determining an access IP address according to the IP library corresponding to the first domain name specifically includes: determining an IP address of a user terminal block chain node; and selecting the IP address of one CDN service node from an IP library corresponding to the first domain name as an access IP address according to the IP address of the user terminal block chain node.
In addition, determining the IP address of the user-side blockchain node specifically includes: sending a request for acquiring an IP address of the user terminal block chain node to an IP address detection device, wherein the IP address detection device determines the IP address of the user terminal block chain node according to the request; determining response information to the request according to the IP address of the user terminal block chain node; and acquiring response information of the IP address detection device to the request, and determining the IP address of the user terminal block link node according to the response information. In the method, the real IP address of the user terminal block chain node is determined, so that the user configures the local domain name server of the user terminal block chain node as an authoritative domain name server, and the most appropriate access IP address can still be determined according to the real IP address of the user terminal block chain node.
In addition, before selecting an IP address of a CDN service node from an IP library corresponding to the first domain name as an access IP address according to an IP address of the user-side block chain node, the domain name resolution method further includes: according to fault information stored in the block chain, the IP address of a CDN service node with a fault in an IP library corresponding to the first domain name is removed; the fault information includes an IP address of the failed CDN service node. In the method, the IP address of the failed CDN service node is removed, and the user end block chain node is prevented from accessing the CDN service node which sends the failure.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a schematic structural diagram of a domain name resolution system of a CDN of a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a domain name information management module according to a first embodiment of the present invention;
fig. 3 is a flowchart of a domain name access method of the first embodiment of the present invention;
fig. 4 is a flowchart of a domain name access method of a second embodiment of the present invention;
fig. 5 is a flowchart of a synchronization method of scheduling information of a second embodiment of the present invention;
fig. 6 is a flowchart of a domain name resolution method according to a third embodiment of the present invention;
fig. 7 is a flowchart of a domain name resolution method according to a fourth embodiment of the present invention;
fig. 8 is a schematic configuration diagram of a server according to a fifth embodiment of the present invention;
fig. 9 is a schematic configuration diagram of a terminal according to a sixth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
The domain name access method and the domain name resolution method provided by the embodiment of the invention are applied to a domain name resolution system of the CDN, and the structure of the domain name resolution system of the CDN is shown in fig. 1 and includes a domain name information management module 101, a user end block chain node 102, a super block chain node management module 103, and a super block chain node 104. The domain name information management module 101 is configured to manage and maintain relevant information, such as corresponding information between the first domain name and the IP library. As shown in fig. 2, the domain name information management module 101 includes a domain name maintenance module 201, a second domain name chain maintenance module 202, and an IP scheduling module 203. The domain name maintenance module 201 is configured to maintain a first domain name and a corresponding relationship between the first domain name and a second domain name chain, where the corresponding relationship between the second domain name and an IP library is stored in the second domain name chain. The domain name maintenance module 201 can interact with the super block link point, so that the CDN can send the first domain name and the information corresponding to the IP library to the super block link node. The second domain name chain maintenance module 202 is configured to maintain a corresponding relationship between the second domain name and the IP library. The IP scheduling module 203 is used for scheduling faults of CDN service nodes. The user-side blockchain node 102 is configured to resolve the first domain name input by the user to obtain the access IP address. The super block chain node management module 103 is configured to manage information of the super block chain node. The super block chain node is used for generating a block according to the first domain name and the corresponding information of the IP library and issuing the block to the block chain network.
It should be noted that the domain name access method, the domain name resolution method, and other related methods mentioned in this embodiment may be implemented by an intelligent contract composed of automated script codes, where the intelligent contract is installed on a block chain of a super block chain node, and the super block chain node and a user-side block chain node execute the method mentioned in this embodiment through the intelligent contract.
It should be noted that, in practical applications, the CDN further includes other modules such as CDN service nodes, as will be understood by those skilled in the art. Each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of a plurality of physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
The first embodiment of the invention relates to a domain name access method, which is used for a super block chain node. By executing the domain name access method, the first domain name is accessed to the CDN, so that the response speed of a user for accessing the website is improved. The specific flow of the domain name access method is shown in fig. 3.
Step 301: and acquiring corresponding information of the first domain name and the IP library provided by the CDN.
Specifically, the first domain name is a domain name of a website that needs to access the CDN, and the correspondence information between the first domain name and the IP library may be a correspondence between the first domain name and the IP library, or a correspondence between the first domain name and a second domain name chain.
Step 302: and generating a block in which the corresponding information is stored according to the corresponding information of the first domain name and the IP library.
Specifically, in the process of generating a block storing the first domain name and the corresponding information of the IP base, the super block chain node may encrypt the corresponding information by using an encryption technique.
It is worth mentioning that, since the corresponding information of the first domain name and the IP base is stored by using the block chain technology, the corresponding information cannot be tampered with, and the domain name hijacking can be prevented.
Step 303: and issuing the block in which the corresponding information of the first domain name and the IP base is stored to other block chain nodes in the block chain network.
In particular, the blockchain network includes user-side blockchain nodes and super blockchain nodes. After other block chain nodes of the block chain network receive the blocks stored with the corresponding information, the blocks stored with the corresponding information are updated to the respective block chains.
In a specific implementation, it may be preset that data of the super block chain node is completely trusted, so that each node in the block chain network can add a block issued by the super block chain node to its respective block chain.
It is worth mentioning that, because the block chain has a high synchronization speed, the information synchronization can be completed when the user-side block chain node accesses the network, thereby avoiding the influence of the persistence time on the query result.
It should be noted that the corresponding information is recorded in the block chain of the user-side block chain node, so that when the authoritative domain name server is attacked, the user-side block chain node can determine the access IP address by inquiring the local block chain, and further obtain the information of the accessed website.
The above description is only for illustrative purposes and does not limit the technical aspects of the present invention.
Compared with the prior art, in the domain name access method provided by the embodiment, the super-block chain node issues the block storing the corresponding information of the first domain name and the IP base to the block chain network, so that the corresponding information can be synchronized to the user-side block chain node. Because the corresponding information is stored in the block chain of the user-side block chain node, the user-side block chain node can determine the access IP address by inquiring the block chain, and the inquiring speed is improved. In addition, due to the characteristics of the block chain, the user-side block chain nodes can be immediately synchronized to the corresponding information when networking is carried out, and the influence of the persistence time on the query result is avoided. And because the corresponding information is stored in the block chain of the user-side block chain node, even if the authoritative domain name server is attacked, the user-side block chain node can still determine the access IP address and acquire the information of the accessed website.
A second embodiment of the present invention relates to a domain name access method. The present embodiment is further detailed with respect to the first embodiment, and specifically describes a process in which the CDN determines the corresponding information of the first domain name and the IP repository according to the corresponding relationship between the first domain name and the second domain name and the corresponding relationship between the second domain name and the IP repository.
Specifically, as shown in fig. 4, the domain name access method of the present embodiment includes steps 401 to 408, wherein steps 405 to 407 are substantially the same as steps 301 to 303 of the first embodiment, and are not repeated herein. The following mainly introduces the differences:
step 401: the CDN acquires a domain name access request of the website.
Specifically, when requesting to access the CDN, the website sends a domain name access request to the CDN. The domain name access request includes a first domain name of the website. And after determining that the website meets the preset conditions, the CDN executes the subsequent steps. The preset condition comprises that the website is already recorded and/or the website pays the service fee.
Step 402: and the CDN allocates a second domain name for the website according to the service type of the website.
Specifically, the second domain name is an internal domain name assigned by the CDN to a website that needs to access the CDN.
It should be noted that, in practical applications, the CDN may also allocate the second domain name to the website that needs to access the CDN according to other principles, and this embodiment does not limit the manner in which the CDN allocates the second domain name to the website that needs to access the CDN.
Step 403: and the CDN determines an IP library corresponding to the second domain name according to the allocated second domain name.
Specifically, a second domain name chain of the CDN stores a correspondence between the second domain name and the IP repository, and determines the correspondence between the second domain name and the IP repository according to the second domain name chain.
Step 404: and the CDN determines corresponding information of the first domain name and the IP library according to the corresponding relation between the first domain name and the second domain name and the corresponding relation between the second domain name and the IP library, and sends the corresponding information to the super block chain node.
Step 405: and the super block chain node acquires corresponding information of the first domain name and the IP library provided by the CDN.
Step 406: and the super block chain node generates a block in which the corresponding information is stored according to the corresponding information of the first domain name and the IP library.
Step 407: the super block chain node issues the block in which the corresponding information of the first domain name and the IP base is stored to other block chain nodes in the block chain network.
Step 408: and other block chain nodes update the blocks in which the corresponding information of the first domain name and the IP base is stored to the respective block chains.
It should be noted that, as can be understood by those skilled in the art, in practical application, the CDN may further send other scheduling information to the super block chain node, and the super block chain node generates a block in which the scheduling information is stored according to the received scheduling information, and sends the block to the block chain, so that the scheduling information is synchronized to the user end block chain node.
The following describes a process of synchronizing the scheduling information to the block chain, taking a case where a CDN service node of the CDN fails as an example. As shown in fig. 5, the method for synchronizing scheduling information includes steps 501 to 506.
Step 501: and after finding that a certain CDN service node has a fault, an IP scheduling module of the CDN marks the IP address of the CDN service node.
Step 502: and the CDN determines fault information according to the marked IP address. The fault information includes an IP address of the failed CDN service node.
Step 503: and the CDN sends the fault information to the super block chain node.
Step 504: and the super block chain node acquires the fault information provided by the CDN, and generates a block for storing the fault information according to the fault information.
Step 505: the super blockchain node issues the block in which the fault information is stored to other blockchain network nodes in the blockchain network.
Step 506: and other block chain nodes update the blocks stored with the fault information into respective block chains.
The above description is only for illustrative purposes and does not limit the technical aspects of the present invention.
Compared with the prior art, in the domain name access method provided in this embodiment, the CDN sends scheduling information to the super block chain node, and the super block chain node synchronizes the information to the user end block chain node, so that the user end block chain node can obtain the scheduling information of the CDN in time, and provide an effective access IP address for the user according to the scheduling information.
The third embodiment of the present invention relates to a domain name resolution method, which is used for a user-side block chain node, wherein the user-side block chain node requests to access a terminal of a certain website through a browser or a browser plug-in, etc. As shown in fig. 6, the domain name resolution method includes:
step 601: and acquiring the first domain name. The first domain name is a domain name of a website needing to be accessed to the CDN.
Specifically, the user-side blockchain node may obtain the first domain name sent by the user-side blockchain node through a browser plug-in or a special browser issued by a CDN manufacturer, or by using some system-level resolution hijacking software.
It should be noted that, because the domain name resolution method and the domain name resolution method according to the embodiments of the present invention have the aforementioned advantages, a user is more willing to select a CDN vendor that uses the domain name access method and the domain name resolution method according to the embodiments of the present invention. When the first CDN manufacturer uses the domain name access method and the domain name resolution method according to the embodiments of the present invention, if a user wants to deliver traffic of a part of a region to other CDN manufacturers, the user needs to coordinate with the first CDN manufacturer to change the domain name resolution method of the user website, which increases operation difficulty and cost, and is beneficial to maintaining user stickiness.
Step 602: and determining the IP library corresponding to the first domain name according to the corresponding information of the first domain name and the IP library stored in the block chain of the user-side block chain node.
Specifically, the IP library includes an IP address of the CDN service node. The user terminal block chain node judges whether the block chain has corresponding information of a first domain name input by a user or not by inquiring data on a local block chain, if yes, an IP library corresponding to the first domain name is determined according to the data stored in the block chain, and if not, the user terminal block chain node prompts the user that a website requested to be accessed is not accessed to the CDN, or the user terminal block chain node analyzes the first domain name based on a DNS technology to determine an IP address to be accessed. The domain name resolution process of the user terminal block chain node based on the DNS technology is as follows: the user terminal block chain node requests a local DNS server for resolving the first domain name, the local DNS server sends the resolving request for the first domain name to an authoritative domain name server of the website, the authoritative domain name server determines the most appropriate CDN service node according to a series of strategies, the IP address of the most appropriate CDN service node is sent to the user terminal block chain node, and the user terminal block chain node requests information of the website from the CDN service node.
It should be noted that, after determining that the corresponding information corresponding to the first domain name input by the user is not stored in the blockchain, the user-side blockchain node resolves the first domain name based on the DNS technology, so that the domain name resolution method provided by the embodiment can be integrated with the existing DNS resolution system.
It is worth mentioning that, because the user-side blockchain node determines the corresponding information through the local blockchain, the access IP address corresponding to the first domain name does not need to be queried from the local domain name server, and the query speed of the user-side blockchain node is improved.
Step 603: and determining an access IP address according to the IP library corresponding to the first domain name.
Compared with the prior art, in the domain name resolution method provided by the embodiment, the corresponding information is stored in the block chain of the user-side block chain node, and the user-side block chain node can determine the access IP address by inquiring the block chain, so that the inquiry speed is improved. In addition, due to the characteristics of the block chain, the user-side block chain nodes can be immediately synchronized to the corresponding information when networking is carried out, and the influence of the persistence time on the query result is avoided. And because the corresponding information is stored in the block chain of the user-side block chain node, even if the authoritative domain name server is attacked, the user-side block chain node can still determine the access IP address, and the information of the accessed website is obtained by accessing the CDN service node corresponding to the IP address.
The fourth embodiment of the present invention relates to a domain name resolution method, which is a further refinement of the third embodiment, and specifically describes a process for determining an access IP address by a user-side block chain node.
Specifically, as shown in fig. 7, the present embodiment includes steps 701 to 704, where step 701 and step 702 are substantially the same as step 601 and step 602, and are not described herein again. The following mainly introduces the differences:
step 701 and step 702 are performed.
Step 703: the IP address of the user-side blockchain node is determined.
Specifically, the user-side blockchain node transmits a request for acquiring an IP address of the user-side blockchain node to the IP address detection apparatus. The IP address detection device determines the IP address of the user terminal block chain node according to the request, determines response information to the request according to the IP address of the user terminal block chain node, and sends the response information to the user terminal block chain node. And the user-side block chain node acquires response information of the IP address detection device to the request, and determines the IP address of the user-side block chain node according to the response information.
For example, the user-side blockchain node sends a mail to the IP address detection device, the IP address detection device determines the IP address of the user-side blockchain node according to the mail attribute, and sends response information including the IP address of the user-side blockchain node to the user-side blockchain node, and the user-side blockchain node determines its own IP address according to the response information.
It should be noted that, in practical applications, the IP address of the user-side blockchain node may also be determined in other manners, and this embodiment does not limit the manner of determining the IP address of the user-side blockchain node.
It is worth mentioning that the traffic scheduling is performed according to the own IP address of the user-side blockchain node, so that the query result is not affected by the IP address of the authoritative server configured by the user at the user-side blockchain node, and the accuracy is high.
Step 704: and selecting the IP address of one CDN service node from an IP library corresponding to the first domain name as an access IP address according to the IP address of the user terminal block chain node.
In specific implementation, the user-side blockchain node selects an IP address of a CDN service node as an access IP address according to its own IP address and other conditions such as network traffic, and requests information of an access website from the access IP address.
It should be noted that before the user-side blockchain node is selected, the IP addresses in the IP library may be screened first, and the IP addresses corresponding to the CDN service nodes that cannot normally operate are removed from the IP library. The screening process comprises the following specific steps: and the user terminal block chain node eliminates the IP address of the failed CDN service node in the IP library corresponding to the first domain name according to the fault information stored in the block chain. The fault information includes an IP address of the failed CDN service node.
It is worth mentioning that the IP address of the CDN service node that cannot normally work is removed from the IP library, so as to avoid the user end block link node from initiating a request to the failed CDN service node.
Compared with the prior art, in the domain name resolution method provided by the embodiment, the corresponding information is stored in the block chain of the user-side block chain node, and the user-side block chain node can determine the access IP address by inquiring the block chain, so that the inquiry speed is improved. In addition, due to the characteristics of the block chain, the user-side block chain nodes can be immediately synchronized to the corresponding information when networking is carried out, and the influence of the persistence time on the query result is avoided. And because the corresponding information is stored in the block chain of the user-side block chain node, even if the authoritative domain name server is attacked, the user-side block chain node can still determine the access IP address, and the information of the accessed website is obtained by accessing the CDN service node corresponding to the IP address. In addition, the IP of the user-side block chain node is detected to obtain the real IP address of the user-side block chain node, and the traffic scheduling is carried out according to the IP address, so that the query result is not influenced by the IP address of an authoritative server configured by the user at the user-side block chain node, and the accuracy is high.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A fifth embodiment of the present invention relates to a server, as shown in fig. 8, including at least one processor 801; and a memory 802 communicatively coupled to the at least one processor 801; the memory 802 stores instructions executable by the at least one processor 801, and the instructions are executed by the at least one processor 801, so that the at least one processor 801 can execute the domain name access method according to the first embodiment and the second embodiment.
A sixth embodiment of the present invention is directed to a terminal, as shown in fig. 9, including at least one processor 901; and memory 902 communicatively connected to the at least one processor 901; the memory 902 stores instructions executable by the at least one processor 901, and the instructions are executed by the at least one processor 901, so that the at least one processor 901 can execute the domain name resolution methods mentioned in the third and fourth embodiments.
It should be noted that the server and the terminal include at least one processor, and one processor is taken as an example in fig. 8 and 9. The processor and the memory may be connected by a bus or other means, and fig. 8 and 9 illustrate the connection by a bus. The memory, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the corresponding information stored in the memory in the embodiments of the present application. The processor implements the above method by executing the nonvolatile software programs, instructions, and modules stored in the memory to execute various functional applications of the device and data processing.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store a list of options, etc. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the external device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory and, when executed by the one or more processors, perform the methods of any of the method embodiments described above.
The product can execute the method provided by the embodiment of the application, has corresponding functional modules and beneficial effects of the execution method, and can refer to the method provided by the embodiment of the application without detailed technical details in the embodiment.
A seventh embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program, when executed by a processor, implements the above-described domain name access method.
An eighth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program, when executed by a processor, implements the above domain name resolution method.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (11)

1. A domain name access method is used for a super block chain node, and comprises the following steps:
acquiring corresponding information of a first domain name and an Internet Protocol (IP) library provided by a Content Delivery Network (CDN); the first domain name is a domain name of a website needing to be accessed to the CDN;
generating a block in which the corresponding information is stored according to the corresponding information;
the block stored with the corresponding information is issued to other block chain nodes in a block chain network, and the other block chain nodes update the block stored with the corresponding information to respective block chains;
wherein the blockchain network comprises user-side blockchain nodes and the super blockchain nodes.
2. The domain name access method according to claim 1, wherein before or after the obtaining of the information corresponding to the first domain name and the internet protocol IP library provided by the content delivery network CDN, the domain name access method further comprises:
acquiring fault information provided by the CDN, wherein the fault information comprises an IP address of a failed CDN service node;
generating a block in which the fault information is stored according to the fault information;
and issuing the block stored with the fault information to other block chain nodes in the block chain network, and updating the block stored with the fault information to respective block chains by the other block chain nodes.
3. The domain name access method according to claim 1 or 2, wherein the correspondence information is determined by the CDN according to a correspondence between the first domain name and a second domain name, and a correspondence between the second domain name and the IP repository; the second domain name is an internal domain name allocated by the CDN to the website that needs to access the CDN.
4. A domain name resolution method is used for a user terminal block chain node, and comprises the following steps:
acquiring a first domain name, wherein the first domain name is a domain name of a website needing to be accessed to a Content Delivery Network (CDN);
determining an IP library corresponding to a first domain name according to corresponding information of the first domain name and an Internet protocol IP library stored in a block chain of the user-side block chain node; the block chain network comprises a user end block chain node and a super block chain node, the super block chain node acquires corresponding information of a first domain name and an Internet Protocol (IP) library provided by the CDN, generates a block stored with the corresponding information according to the corresponding information, and releases the block stored with the corresponding information of the first domain name and the IP library to other block chain nodes in the block chain network, wherein the IP library comprises an IP address of a CDN service node;
and determining an access IP address according to the IP library corresponding to the first domain name.
5. The domain name resolution method according to claim 4, wherein the determining an access IP address according to the IP library corresponding to the first domain name specifically includes:
determining an IP address of the user-side blockchain node;
and selecting an IP address of a CDN service node from an IP library corresponding to the first domain name as an access IP address according to the IP address of the user terminal block chain node.
6. The domain name resolution method according to claim 5, wherein the determining the IP address of the user-side blockchain node specifically includes:
sending a request for acquiring an IP address of a user terminal block chain node to an IP address detection device, wherein the IP address detection device determines the IP address of the user terminal block chain node according to the request; determining response information to the request according to the IP address of the user terminal block chain node;
and acquiring response information of the IP address detection device to the request, and determining the IP address of the user terminal block chain node according to the response information.
7. The domain name resolution method according to claim 5 or 6, wherein before selecting an IP address of a CDN service node from an IP pool corresponding to the first domain name as an access IP address according to the IP address of the user-side blockchain node, the domain name resolution method further includes:
according to the fault information stored in the block chain, the IP address of the CDN service node with the fault in the IP base corresponding to the first domain name is removed; the fault information includes an IP address of the failed CDN service node.
8. A server, comprising: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the domain name access method of any one of claims 1-3.
9. A terminal, comprising: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the domain name resolution method of any of claims 4-7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the domain name access method according to any one of claims 1 to 3.
11. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the domain name resolution method according to any one of claims 4 to 7.
CN201810670268.4A 2018-06-26 2018-06-26 Domain name access method, domain name resolution method, server, terminal and storage medium Active CN109067930B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810670268.4A CN109067930B (en) 2018-06-26 2018-06-26 Domain name access method, domain name resolution method, server, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810670268.4A CN109067930B (en) 2018-06-26 2018-06-26 Domain name access method, domain name resolution method, server, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109067930A CN109067930A (en) 2018-12-21
CN109067930B true CN109067930B (en) 2021-09-17

Family

ID=64821619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810670268.4A Active CN109067930B (en) 2018-06-26 2018-06-26 Domain name access method, domain name resolution method, server, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109067930B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618003B (en) * 2019-01-14 2022-02-22 网宿科技股份有限公司 Server planning method, server and storage medium
US11095705B2 (en) * 2019-04-05 2021-08-17 International Business Machines Corporation Content distributed over secure channels
CN112468602B (en) * 2019-09-06 2023-09-22 傲为有限公司 Block chain-based decentralised domain name registration system and method
CN112468603B (en) * 2019-09-06 2022-01-11 傲为信息技术(江苏)有限公司 Domain name query system and method based on block chain
CN110636072B (en) * 2019-09-26 2021-05-14 腾讯科技(深圳)有限公司 Target domain name scheduling method, device, equipment and storage medium
CN111371914A (en) * 2020-02-25 2020-07-03 网宿科技股份有限公司 IP library generation method, domain name resolution method, electronic device and readable storage medium
CN111901447B (en) * 2020-05-27 2022-09-20 伏羲科技(菏泽)有限公司 Domain name data management method, device, equipment and storage medium
CN111901319A (en) * 2020-07-16 2020-11-06 广州大学 Client DNS cache verification method, system, device and medium
CN111970337B (en) * 2020-07-30 2024-02-20 天翼电子商务有限公司 P2P network communication construction method, system, medium and terminal under cross-cloud environment
CN111966967A (en) * 2020-08-07 2020-11-20 北京网聚云联科技有限公司 Copyright storage method and system based on block chain technology and CDN
CN114945014A (en) * 2021-02-08 2022-08-26 中国电信股份有限公司 Domain name resolution method and system, micro server cluster node and storage medium
CN114629956B (en) * 2021-11-26 2024-04-16 中国银联股份有限公司 Method and blockchain network for enabling edge computing network acceleration

Citations (2)

* 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
CN107613041A (en) * 2017-09-22 2018-01-19 中国互联网络信息中心 DNS management system, domain name management method and domain name analytic method based on block chain

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10230526B2 (en) * 2014-12-31 2019-03-12 William Manning Out-of-band validation of domain name system records

Patent Citations (2)

* 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
CN107613041A (en) * 2017-09-22 2018-01-19 中国互联网络信息中心 DNS management system, domain name management method and domain name analytic method based on block chain

Also Published As

Publication number Publication date
CN109067930A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN109067930B (en) Domain name access method, domain name resolution method, server, terminal and storage medium
US11451472B2 (en) Request routing based on class
US10715485B2 (en) Managing dynamic IP address assignments
CN108702397B (en) Method and system for acquiring and collecting local DNS (Domain name Server) server of client
CN108494755B (en) Method and device for transmitting Application Programming Interface (API) request
CN111182089B (en) Container cluster system, method and device for accessing big data assembly and server
JP2007207231A (en) Method for accessing distributed service in network
CN103780714A (en) Method and apparatus for probing DNS server
CN111787129A (en) Method and system for configuring local DNS server for client
KR101846778B1 (en) Method for ID Resolution Service and M2M System applying the same
US11297131B2 (en) Method and apparatus for multi-vendor GTM fabric
JP6233846B2 (en) Variable-length nonce generation
CN111125580B (en) Network resource acquisition method and device, electronic equipment and storage medium
CN114520784A (en) Dynamic content accelerated access method and device
CN113708992B (en) Reverse proxy test method, device, electronic equipment and storage medium
CN111147618B (en) Communication method, communication device, electronic equipment and storage medium
CN113839938B (en) Method and device for detecting domain name takeover vulnerability
CN113676562B (en) Short-chain request convergence method and device, computer equipment and storage medium
CN116233127A (en) CDN network request scheduling method and device, electronic equipment and storage medium
CN115706722A (en) Domain name request method, domain name request device, storage medium and electronic equipment
CN117614938A (en) Address allocation method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant