CN111404885B - IPv6 domain name resolution method and system - Google Patents

IPv6 domain name resolution method and system Download PDF

Info

Publication number
CN111404885B
CN111404885B CN202010139102.7A CN202010139102A CN111404885B CN 111404885 B CN111404885 B CN 111404885B CN 202010139102 A CN202010139102 A CN 202010139102A CN 111404885 B CN111404885 B CN 111404885B
Authority
CN
China
Prior art keywords
domain name
ipv6
domain
resolution
ipv6 address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010139102.7A
Other languages
Chinese (zh)
Other versions
CN111404885A (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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CN202010139102.7A priority Critical patent/CN111404885B/en
Publication of CN111404885A publication Critical patent/CN111404885A/en
Application granted granted Critical
Publication of CN111404885B publication Critical patent/CN111404885B/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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides an IPv6 domain name resolution method and a system, wherein the method comprises the following steps: the system receives a domain name to be resolved sent by a client; determining an address corresponding to a domain name to be resolved; the IPv6 address comprises an IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and an analysis character string which is obtained by mapping based on a hash function and corresponds to the domain name to be analyzed; the IPv6 address is returned to the client. According to the method and the system provided by the embodiment of the invention, the IPv6 address is additionally arranged for the domain name in the autonomous domain or the autonomous domain federation, and the IPv6 address does not need to be communicated with the external Internet, so that all clients in the autonomous domain or the autonomous domain federation can still access the server in the autonomous domain or the autonomous domain federation through the IPv6 address even under the condition that the clients are disconnected from the external Internet, and the network service failure caused by the domain name system when part of networks are disconnected is avoided.

Description

IPv6 domain name resolution method and system
Technical Field
The invention relates to the technical field of internet, in particular to an IPv6 domain name resolution method and system.
Background
Domain name resolution services are currently a very important infrastructure in the internet. Through the domain name resolution service, people can resolve internet domain names into corresponding IP addresses, and therefore the internet access process is completed.
At present, the internet domain name resolution usually applies a centralized hierarchical recursive resolution mode, and a domain name recursive resolution server recursively requests domain name resolution through authority resolution servers on a layer by layer basis. In which root nodes distributed around the globe play an important role. This has led to the current domain name resolution architecture being strictly centralized.
However, the initiative of modern internet is around the concept of distributed, and the strictly centralized domain name resolution conflicts with the mechanism of distributed internet. Specifically, for a network autonomous domain, the IP layer may completely perform internal communication when disconnected from the external internet, however, since the recursive resolution process of the domain name may involve participation of a domain name server outside the domain, the domain name resolution path may not complete normal network communication under the condition of partial network outage, and finally the network system may fail.
Disclosure of Invention
The embodiment of the invention provides an IPv6 domain name resolution method and system, which are used for solving the problems that a domain name resolution chain is uncontrollable, and network service is possibly invalid due to a domain name system when a part of networks are disconnected.
In a first aspect, an embodiment of the present invention provides an IPv6 domain name resolution method, including:
the system receives a domain name to be resolved sent by a client;
determining an IPv6 address corresponding to the domain name to be resolved; the IPv6 address comprises an IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and an analysis character string which is obtained by mapping based on a hash function and corresponds to the domain name to be analyzed;
returning the IPv6 address to the client.
Preferably, the determining the IPv6 address corresponding to the domain name to be resolved specifically includes:
mapping the domain name to be analyzed based on a hash function to obtain an analysis character string;
and determining the IPv6 address corresponding to the domain name to be resolved based on the IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and the resolution character string.
Preferably, the determining, based on the IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and the resolution character string, an IPv6 address corresponding to the domain name to be resolved specifically includes:
sequentially splicing the IPv6 prefix and the analysis character string, and filling zero to a preset address length after the character string is analyzed to obtain the IPv6 address corresponding to the domain name to be analyzed.
Preferably, the IPv6 address is 128 bits long, wherein the IPv6 prefix occupies the first 32 bits of the IPv6 address, and the resolution string occupies bits 33 to 96 of the IPv6 address.
Preferably, the determining the IPv6 address corresponding to the domain name to be resolved specifically includes:
performing conventional recursive resolution on the domain name to be resolved to obtain a universal IP address subjected to recursive resolution, and returning the universal IP address to the client;
and if the recursive resolution fails, determining the IPv6 address corresponding to the domain name to be resolved.
Preferably, the determining the IPv6 address corresponding to the domain name to be resolved specifically includes:
inquiring the domain name to be analyzed from a prestored analysis record to obtain an IPv6 address corresponding to the domain name to be analyzed; and the resolution record is established based on the historical resolution domain name and the IPv6 address corresponding to the domain name.
In a second aspect, an embodiment of the present invention provides an IPv6 domain name resolution system, including:
the domain name determining unit is used for receiving a domain name to be analyzed sent by a client;
the domain name resolution unit is used for determining an IPv6 address corresponding to the domain name to be resolved; the IPv6 address comprises an IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and an analysis character string which is obtained by mapping based on a hash function and corresponds to the domain name to be analyzed;
an address returning unit, configured to return the IPv6 address to the client.
Preferably, the domain name resolution unit includes:
the mapping subunit is used for mapping the domain name to be analyzed based on a hash function to obtain an analysis character string;
and the generating subunit is used for determining the IPv6 address corresponding to the domain name to be resolved based on the IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and the resolution character string.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a bus, where the processor and the communication interface, the memory complete mutual communication through the bus, and the processor may call a logic command in the memory to perform the steps of the method provided in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method as provided in the first aspect.
According to the IPv6 domain name resolution method and system provided by the embodiment of the invention, the IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and the IPv6 address of the resolution character string corresponding to the domain name are additionally arranged, and the IPv6 address is acquired without being communicated with the external Internet, so that all clients in the autonomous domain or the federation of the autonomous domain can still access the server in the autonomous domain or the federation of the autonomous domain through the IPv6 address even under the condition that the clients are disconnected with the external Internet, and the network service failure caused by the reason of a domain name system when partial network is disconnected is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an IPv6 domain name resolution method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an IPv6 domain name resolution system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flowchart of an IPv6 domain name resolution method according to an embodiment of the present invention, and as shown in fig. 1, an execution subject of the method may be any domain name recursive resolution server in the autonomous domain or the autonomous domain federation, which may be denoted as a system herein, where the method includes:
in step 110, the system receives the domain name to be resolved sent by the client.
Specifically, for any client in the autonomous domain or the federation of the autonomous domain, when the client needs to access a website server in the autonomous domain or the federation of the autonomous domain, the domain name of the website server may be sent to the domain name recursive resolution server to request the domain name recursive resolution server to perform domain name resolution.
The domain name to be resolved is sent to the domain name recursive resolution server by the client to request the domain name recursive resolution server to perform domain name resolution.
It should be noted that the federation of autonomous domains refers to an autonomous domain complex formed by a plurality of autonomous domains that can be controlled or negotiated with each other, and network breaks do not occur between different autonomous domains within the federation of autonomous domains, so that the reachability of data packets can be ensured, and a policy of consistency is provided for domain name services.
Step 120, determining an IPv6 address corresponding to the domain name to be resolved; the IPv6 address comprises an IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and an analysis character string which is mapped on the basis of a hash function and corresponds to the domain name to be analyzed.
Specifically, after receiving the domain name to be resolved, performing domain name resolution on the domain name to be resolved to obtain an IPv6 address corresponding to the domain name to be resolved, where the IPv6 address is an IPv6 address that can be used without being communicated with the external internet in addition to a general IP address corresponding to the domain name to be resolved. Here, the general IP address refers to an IP address corresponding to a conventional hierarchical recursive resolution method.
In the IPv6 address, the IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain is an IPv6 prefix commonly reserved by the autonomous domain or the federation of the autonomous domain, and the IPv6 prefix allows mutually advertising a detailed route with a prefix length of 96 within the autonomous domain or the federation of the autonomous domain. The resolution character string corresponding to the domain name to be resolved may be mapped based on a preset hash function, or may be obtained by mapping the domain name to be resolved by using a preset mapping algorithm, or may be obtained by storing a large number of domain names and resolution character strings corresponding to the domain names in advance, and directly matching the stored domain names and the resolution character strings to obtain the resolution character string corresponding to the domain name to be resolved.
After obtaining the IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and the resolution character string corresponding to the domain name to be resolved, the full IPv6 address corresponding to the domain name to be resolved can be constructed. The lengths of the resolution character strings corresponding to different domain names are consistent.
At step 130, the IPv6 address is returned to the client.
Specifically, after obtaining the IPv6 address corresponding to the domain name to be resolved, returning the IPv6 address to the client, so that the client can access the web server corresponding to the domain name to be resolved through the IPv6 address.
Before the above steps are performed, for the website servers in the autonomous domain or the federation of the autonomous domain, including the IPv 6-only website server and the dual-stack website server, in addition to the general IP address corresponding to the domain name, an IPv6 address is additionally added, and a detailed route of the IPv6 prefix corresponding to the IPv6 address is issued in the autonomous domain or the federation of the autonomous domain. The IPv6 address here is consistent with the structural composition of the IPv6 address obtained in step 120.
The method provided by the embodiment of the invention is additionally provided with the IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and the IPv6 address of the resolution character string corresponding to the domain name, and the IPv6 address is used without being communicated with the external Internet, so that all clients in the autonomous domain or the federation of the autonomous domain can still access the server in the autonomous domain or the federation of the autonomous domain through the Pv6 address even under the condition of disconnection from the external Internet, and the network service failure caused by the reason of a domain name system when partial network disconnection occurs is avoided.
Based on the above embodiment, step 120 specifically includes:
and step 121, mapping the domain name to be analyzed based on the hash function to obtain an analysis character string.
In particular, a hash function is a mapping function that transforms an input of arbitrary length to a fixed length output, which can maintain the well-distributed nature of the output string. The hash function is applied to the generation of the domain name corresponding analysis character string, so that the conversion from the domain name with any length to the analysis character string with the fixed length can be realized, and the IPv6 address with the fixed length can be obtained.
And step 122, determining an IPv6 address corresponding to the domain name to be analyzed based on the IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and the analysis character string.
Specifically, after the analysis character string is obtained, the reserved IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain may be combined with the analysis character string to obtain the IPv6 address. It should be noted that the IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain is the prefix of the IPv6 address, and the parsing character string is set behind the IPv6 prefix.
According to the method provided by the embodiment of the invention, due to the good distribution property of the hash function, the hash collision of different domain names is very slight, and the conversion from the domain name with any length to the resolution character string with the fixed length is realized based on the hash function, so that the IPv6 address with the fixed length is obtained.
Based on any of the above embodiments, step 122 specifically includes: and sequentially splicing the IPv6 prefix and the analysis character string, and completing the zero to the preset address length after the character string is analyzed to obtain the IPv6 address corresponding to the domain name to be analyzed.
Specifically, the preset address length is the length of the preset IPv6 address. When the sum of the lengths of the IPv6 prefix and the analysis character string determined by the autonomous domain or the federation of the autonomous domain is less than the preset address length, the length of the IPv6 address generated based on the IPv6 prefix and the analysis character string can reach the preset address length by zero padding. The IPv6 address comprises three parts, wherein the first part is an IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain, the second part is an analysis character string corresponding to the domain name, the third part is an all-zero character string, and the three parts are sequentially arranged in the IPv6 address.
Based on any one of the above embodiments, the length of the IPv6 address is 128 bits, wherein the IPv6 prefix occupies the first 32 bits of the IPv6 address, and the parsing string occupies the 33 th to 96 th bits of the IPv6 address.
Specifically, the first part of the IPv6 addresses, namely the IPv6 prefix determined by the first 32 bits of the address for the autonomous domain or the federal of the autonomous domain, the IPv6 prefix is a/32 prefix, all/96 subsets within the prefix allow mutual advertisement within the autonomous domain or the federal of the autonomous domain, and within the autonomous domain or the federal of the autonomous domain, the routing behavior of the part of the website addresses can be configured according to/96 as the prefix length.
The second part of the IPv6 address, namely bits 33 to 96, is the resolution string corresponding to the domain name. The fixed length of the parsing string is 64 bits.
The third part of the IPv6 address, positions 96 through 128, defaults to zero.
In the embodiment of the present invention, the length of the analysis string is set to 64 bits. Aiming at the mainstream website (website with the access amount of 100 tens of thousands) for providing services for China at present, the number of massive IPv6 addresses brought by 64-bit address space is considered, the hash collision probability of carrying out hash operation on domain names is very small, and the hash collision problem does not exist. If the hash collision phenomenon occurs in the resolution character string obtained by the method for the new domain name in the future, the more important server domain name can be preferably selected to provide emergency service according to the importance of the server.
Based on any of the above embodiments, step 120 specifically includes: performing conventional recursive resolution on the domain name to be resolved to obtain a universal IP address subjected to recursive resolution, and returning the universal IP address to the client; and if the recursive resolution fails, determining the IPv6 address corresponding to the domain name to be resolved.
Here, recursive resolution, that is, a conventional domain name resolution method, recursively requests domain name resolution through a hierarchy of authority resolution servers by a domain name recursive resolution server. If the recursive resolution of the domain name to be resolved involves the participation of a domain name server outside the domain, and the autonomous domain or the federation of the autonomous domain is disconnected with the external Internet, the recursive resolution fails, at this time, the IPv6 address corresponding to the domain name to be resolved can be determined, and the connection between the client and the website server corresponding to the domain name to be resolved is realized through the IPv6 address; if the recursive resolution of the domain name to be resolved is successful, the universal IP address corresponding to the domain name to be resolved can be obtained, and the universal IP address can be returned to the client so that the client can access the website server corresponding to the domain name to be resolved through the universal IP address.
The method provided by the embodiment of the invention combines the recursive analysis method with the analysis method aiming at the external internet disconnection scene, thereby solving the problem that the recursive analysis method fails when part of the internet is disconnected and avoiding the network service failure caused by the failure.
Based on any of the above embodiments, step 120 specifically includes: inquiring the domain name to be analyzed from a prestored analysis record to obtain an IPv6 address corresponding to the domain name to be analyzed; the resolution record is established based on the historical resolution domain name and the IPv6 address corresponding to the domain name.
Specifically, the history domain name resolution refers to performing domain name resolution by using the method in step 120 and obtaining a domain name corresponding to the IPv6 address. In the IPv6 domain name resolution process, the domain name for which the domain name resolution is completed and the IPv6 address corresponding thereto may be stored, thereby constructing a resolution record.
When a new domain name to be resolved is received, the domain name to be resolved can be directly inquired in the resolution record, if the domain name to be resolved exists in the resolution record, the IPv6 address corresponding to the domain name to be resolved can be extracted from the resolution record, the IPv6 address of the domain name to be resolved does not need to be generated again, the calculation amount of domain name resolution can be effectively saved, and the domain name resolution efficiency is improved.
Based on any of the above embodiments, it is assumed that the domain name of any website server is www.itest.com within the autonomous domain or federal of the autonomous domain. If the autonomous domain or the federal of the autonomous domain is disconnected from the outside, the situation that the website cannot be accessed is caused because the com authoritative domain name server cannot access.
To solve this problem, the IPv6 address of the domain name may be constructed in advance, and the specific construction method is as follows:
the IPv6 prefix reserved by the autonomous domain or the autonomous domain federation is used as 1 to 32 bits of the IPv6 address; here, assume IPv6 prefix is 2001:251:: 32.
Assuming that the domain name is www.itest.com, a hash function is used to calculate the resolution string corresponding to the domain name. The resolution string here is a 64-bit string ab07:3869:2e10: f377, and the resolution string is 33-96 bits of the IPv6 address.
0000:0000 as bits 97-128 of the IPv6 address. Therefore, the IPv6 address corresponding to the domain name www.itest.com is obtained:
2001:251:ab07:3869:2e10:f377:0000:0000
the address is added to a website server, and routing information of 2001:251: ab07:3869:2e10: f 377:/96 is issued in the autonomous domain or the federal of the autonomous domain. Since the prefix is in the autonomous domain or the federation of the autonomous domain, the address route can be ensured to reach the corresponding server. At the moment, the server is added with an IPv6 address 2001:251: ab07:3869:2e10: f377:0000:0000 in addition to the original general IP address 2001: da8: f000:1273: 3008.
When a client side in the autonomous domain or the autonomous domain federation carries out a domain name resolution request, the recursive resolution server in the autonomous domain or the autonomous domain federation executes the following processes:
the domain name www.itest.com is recursively resolved to an authority server;
if the analysis is successful, returning the universal IP address obtained by the recursive analysis to the client; if the resolution is unsuccessful, according to the construction method of the IPv6 address, the IPv6 address 2001:251: ab07:3869:2e10: f377:0000:0000 is constructed according to the domain name www.itest.com. Because the algorithm of the construction process is disclosed, and the corresponding/32-prefix refined route can be reached in the self-administration domain or the federation of the self-administration domain, the condition that the domain name resolution process is uncontrollable due to disconnection with the external Internet does not exist.
The recursive resolution server returns the address to the client. The client initiates a network request to the address, and the corresponding server is configured with the IPv6 address corresponding to the domain name, so that the network service can be accessed normally.
The method provided by the embodiment of the invention can solve the problem of uncontrollable domain name resolution chains in the domain name resolution process through a hash algorithm, so that all clients in the autonomous domain or the federation of the autonomous domain can access the server in the autonomous domain or the federation of the autonomous domain through the method, and the network service failure caused by the reason of a domain name system when partial network is disconnected is avoided.
Based on any of the above embodiments, fig. 2 is a schematic structural diagram of an IPv6 domain name resolution system provided in the embodiment of the present invention, and as shown in fig. 2, the IPv6 domain name resolution system includes a domain name determining unit 210, a domain name resolution unit 220, and an address returning unit 230;
the domain name determining unit 210 is configured to receive a domain name to be resolved, which is sent by a client;
the domain name resolution unit 220 is configured to determine an IPv6 address corresponding to the domain name to be resolved; the IPv6 address comprises an IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and an analysis character string which is obtained by mapping based on a hash function and corresponds to the domain name to be analyzed;
the address return unit 230 is used to return the IPv6 address to the client.
The system provided by the embodiment of the invention is additionally provided with the IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and the IPv6 address IPv6 address of the resolution character string corresponding to the domain name, which is not required to be communicated with the external Internet, so that all clients in the autonomous domain or the federation of the autonomous domain can still access the server in the autonomous domain or the federation of the autonomous domain through the IPv6 address even under the condition of disconnection from the external Internet, and the network service failure caused by the reason of a domain name system when partial network disconnection occurs is avoided.
Based on any of the above embodiments, the domain name resolution unit 220 includes:
the mapping subunit is used for mapping the domain name to be analyzed based on a hash function to obtain an analysis character string;
and the generating subunit is used for determining the IPv6 address corresponding to the domain name to be resolved based on the IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and the resolution character string.
Based on any of the embodiments above, the generating subunit is specifically configured to:
sequentially splicing the IPv6 prefix and the analysis character string, and filling zero to a preset address length after the character string is analyzed to obtain the IPv6 address corresponding to the domain name to be analyzed.
Based on any one of the above embodiments, the length of the IPv6 address is 128 bits, wherein the IPv6 prefix occupies the first 32 bits of the IPv6 address, and the resolution string occupies the 33 th to 96 th bits of the IPv6 address.
Based on any of the above embodiments, the domain name resolution unit 220 is specifically configured to:
performing conventional recursive resolution on the domain name to be resolved to obtain a universal IP address subjected to recursive resolution, and returning the universal IP address to the client;
and if the recursive resolution fails, determining the IPv6 address corresponding to the domain name to be resolved.
Based on any of the above embodiments, the domain name resolution unit 220 is specifically configured to:
inquiring the domain name to be analyzed from a prestored analysis record to obtain an IPv6 address corresponding to the domain name to be analyzed; and the resolution record is established based on the historical resolution domain name and the IPv6 address corresponding to the domain name.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 3, the electronic device may include: a processor (processor)310, a communication Interface (communication Interface)320, a memory (memory)330 and a communication bus 340, wherein the processor 310, the communication Interface 320 and the memory 330 communicate with each other via the communication bus 340. The processor 310 may call logical commands in the memory 330 to perform the following method: receiving a domain name to be resolved sent by a client; determining an IPv6 address corresponding to the domain name to be resolved; the IPv6 address comprises an IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and an analysis character string which is obtained by mapping based on a hash function and corresponds to the domain name to be analyzed; returning the IPv6 address to the client.
In addition, the logic commands in the memory 330 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic commands are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of commands for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the method provided in the foregoing embodiments when executed by a processor, and the method includes: receiving a domain name to be resolved sent by a client; determining an IPv6 address corresponding to the domain name to be resolved; the IPv6 address comprises an IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and an analysis character string which is obtained by mapping based on a hash function and corresponds to the domain name to be analyzed; returning the IPv6 address to the client.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes commands for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. An IPv6 domain name resolution method is characterized by comprising the following steps:
the system receives a domain name to be resolved sent by a client;
determining an IPv6 address corresponding to the domain name to be resolved; the IPv6 address comprises an IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and an analysis character string which is obtained by mapping based on a hash function and corresponds to the domain name to be analyzed;
returning the IPv6 address to the client;
the determining the IPv6 address corresponding to the domain name to be resolved specifically includes:
performing conventional recursive resolution on the domain name to be resolved to obtain a universal IP address subjected to recursive resolution, and returning the universal IP address to the client;
and if the recursive resolution fails, determining the IPv6 address corresponding to the domain name to be resolved.
2. The IPv6 domain name resolution method according to claim 1, wherein determining the IPv6 address corresponding to the domain name to be resolved specifically includes:
mapping the domain name to be analyzed based on a hash function to obtain an analysis character string;
and determining the IPv6 address corresponding to the domain name to be resolved based on the IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and the resolution character string.
3. The IPv6 domain name resolution method according to claim 2, wherein the determining, based on the IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and the resolution string, the IPv6 address corresponding to the domain name to be resolved specifically includes:
sequentially splicing the IPv6 prefix and the analysis character string, and filling zero to a preset address length after the character string is analyzed to obtain a full IPv6 address corresponding to the domain name to be analyzed.
4. The IPv6 domain name resolution method of claim 3, wherein the IPv6 address is 128 bits in length, wherein the IPv6 prefix occupies the first 32 bits of the IPv6 address, and wherein the resolution string occupies the 33 th to 96 th bits of the IPv6 address.
5. The IPv6 domain name resolution method of any one of claims 1-4, wherein the determining the IPv6 address corresponding to the domain name to be resolved specifically includes:
inquiring the domain name to be analyzed from a prestored analysis record to obtain an IPv6 address corresponding to the domain name to be analyzed; and the resolution record is established based on the historical resolution domain name and the IPv6 address corresponding to the domain name.
6. An IPv6 domain name resolution system, comprising:
the domain name determining unit is used for receiving a domain name to be analyzed sent by a client;
the domain name resolution unit is used for determining an IPv6 address corresponding to the domain name to be resolved; the IPv6 address comprises an IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and an analysis character string which is obtained by mapping based on a hash function and corresponds to the domain name to be analyzed;
an address returning unit for returning the IPv6 address to the client;
the determining the IPv6 address corresponding to the domain name to be resolved specifically includes:
performing conventional recursive resolution on the domain name to be resolved to obtain a universal IP address subjected to recursive resolution, and returning the universal IP address to the client;
and if the recursive resolution fails, determining the IPv6 address corresponding to the domain name to be resolved.
7. The IPv6 domain name resolution system of claim 6, wherein the domain name resolution unit includes:
the mapping subunit is used for mapping the domain name to be analyzed based on a hash function to obtain an analysis character string;
and the generating subunit is used for determining the IPv6 address corresponding to the domain name to be resolved based on the IPv6 prefix determined by the autonomous domain or the federation of the autonomous domain and the resolution character string.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the steps of the IPv6 domain name resolution method of any one of claims 1 to 5.
9. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor, performs the steps of the IPv6 domain name resolution method according to any one of claims 1 to 5.
CN202010139102.7A 2020-03-03 2020-03-03 IPv6 domain name resolution method and system Active CN111404885B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010139102.7A CN111404885B (en) 2020-03-03 2020-03-03 IPv6 domain name resolution method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010139102.7A CN111404885B (en) 2020-03-03 2020-03-03 IPv6 domain name resolution method and system

Publications (2)

Publication Number Publication Date
CN111404885A CN111404885A (en) 2020-07-10
CN111404885B true CN111404885B (en) 2021-02-09

Family

ID=71432173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010139102.7A Active CN111404885B (en) 2020-03-03 2020-03-03 IPv6 domain name resolution method and system

Country Status (1)

Country Link
CN (1) CN111404885B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866432B (en) * 2021-01-21 2022-08-30 清华大学 Domain name resolution method, system, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016168504A1 (en) * 2015-04-15 2016-10-20 Hughes Network Systems, Llc Preferential selection of ip protocol version with domain name matching on proxy servers
CN108449444A (en) * 2018-03-29 2018-08-24 江苏省未来网络创新研究院 Local data transport method, self-loopa domain name analysis system and method
CN110392128A (en) * 2019-08-20 2019-10-29 清华大学 The quasi- zero-address IPv6 method and system for disclosing web services are provided
CN110493367A (en) * 2019-08-20 2019-11-22 清华大学 The non-public server of unaddressed IPv6, client computer and communication means

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016168504A1 (en) * 2015-04-15 2016-10-20 Hughes Network Systems, Llc Preferential selection of ip protocol version with domain name matching on proxy servers
CN108449444A (en) * 2018-03-29 2018-08-24 江苏省未来网络创新研究院 Local data transport method, self-loopa domain name analysis system and method
CN110392128A (en) * 2019-08-20 2019-10-29 清华大学 The quasi- zero-address IPv6 method and system for disclosing web services are provided
CN110493367A (en) * 2019-08-20 2019-11-22 清华大学 The non-public server of unaddressed IPv6, client computer and communication means

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
FlowLAN_ A non-tunneling distributed virtual network based on IPv6 - IEEE Conference Publication;Bai Yi 等;《2016 IEEE Information Technology, Networking, Electronic and Automation Control Conference》;20160905;全文 *
采用分段哈希方法的IPv6路由查找算法研究;高莹 等;《计算机工程与设计》;20200225;全文 *

Also Published As

Publication number Publication date
CN111404885A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN103856569B (en) A kind of method and apparatus of synchronous domain name system asset information
CN103780715B (en) Domain name mapping implementation method, client and Cloud Server
CN101981572B (en) Request routing
US10630781B2 (en) SMB2 scaleout
CN102859960B (en) Method and apparatus for correlating nameserver IPv6 and IPv4 addresses
CN110392130B (en) Information processing method based on network, electronic equipment and network system
US20080288470A1 (en) Method and System for Distributed Dns Resolution
CN111917900B (en) Domain name agent request processing method and device
CN105530324A (en) Request routing based on class
CN109155793A (en) Network mapping in content distributing network
CN112866432B (en) Domain name resolution method, system, electronic equipment and storage medium
CN106790746B (en) Distributed domain name storage and analysis method and system
CN105338128B (en) Domain name analytic method and domain name mapping device
CN109743414B (en) Method for improving address translation availability using redundant connections and computer readable storage medium
US8732281B2 (en) Actively updating clients with selected data
JP2006277570A (en) Load distribution system, load distribution device, real server and load distribution method
CN111404885B (en) IPv6 domain name resolution method and system
CN108243265A (en) A kind of dns resolution processing method and processing device
CN112468602B (en) Block chain-based decentralised domain name registration system and method
WO2021218984A1 (en) Data routing method and related apparatus
CN112688995B (en) System migration method and device
CN105049463A (en) Distributed database, method of sharing data, and apparatus for a distributed database
US11522995B2 (en) Number management system, number management method, and number management device
CN112015818B (en) UUID (unified user identifier) generation method, device, equipment and medium for distributed graph database
CN116170403A (en) Method and device for decentralized domain name resolution based on Handle system

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