CN111010462A - IPv6 domain name resolution method based on TRANS record - Google Patents
IPv6 domain name resolution method based on TRANS record Download PDFInfo
- Publication number
- CN111010462A CN111010462A CN201911392968.2A CN201911392968A CN111010462A CN 111010462 A CN111010462 A CN 111010462A CN 201911392968 A CN201911392968 A CN 201911392968A CN 111010462 A CN111010462 A CN 111010462A
- Authority
- CN
- China
- Prior art keywords
- record
- trans
- ipv6
- cname
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/659—Internet protocol version 6 [IPv6] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to the technical field of computer IP address management and distribution, and discloses an IPv6 domain name resolution method based on a TRANS record, which simultaneously sends an AAAA record and a CNAME/A record in a DNS server to a user by defining the TRANS record, thereby not only realizing the simultaneous existence of the CNAME and the IPv6 addresses, but also avoiding the step of inquiring the IPv4 address or the CNAME from the DNS server again after the IPv6 address access of the user fails, saving the address resolution time and improving the internet access speed of the user.
Description
Technical Field
The invention relates to the field of computer IP address management and distribution, in particular to an IPv6 domain name resolution method based on TRANS records.
Background
With the rapid development of science and technology in China, computer internet technology has already entered various fields and industries of society, and the IPv6 technology plays an important role in the construction process of mobile internet. The IPv6 technology has strong mobility, and is applied to internet construction to widen the range of internet services, and also provide more opportunities for internet-related users and internet service providers.
CNAME records allow multiple names to be mapped to the same computer. When a plurality of domain names are required to point to the same server IP, one domain name can be pointed to the server IP by making an a record, and then other domain names are aliased (namely, CNAME) to the domain name of the a record. When the IP address of the server is changed, it is not necessary to change the direction of a domain name, only the domain name recorded in a needs to be changed to the new IP address of the server, and the directions of the domain names of other aliases (i.e., CNAME) will be automatically changed to the new IP address.
CDN (content Delivery network) refers to a content Delivery network, also called a content Delivery network, and the basic principle of the CDN is to widely use various cache servers, distribute the cache servers to a region or a network where user access is relatively concentrated, and when a user accesses a website, point the user access to a cache server that is closest to the user and is working normally by using a global load technology, and directly respond to a user request by the cache server. The application of CDN also relates to the use of CNAME.
In order to provide better access experience for users, a CDN is deployed in many websites before, and with the development of IPv6, a full IPv4 to IPv6 upgrade will be implemented in the near future, but many CDN providers cannot provide the CDN service of IPv6 at present. For domain names with a CDN, a CDN vendor will provide a CNAME to the customer. Therefore, if the enterprise is upgraded with IPv6 internally, but the CDN vendor cannot provide IPv6 service, the enterprise will be troubled.
The invention aims to provide an IPv6 domain name resolution method based on a TRANS record, wherein the TRANS record is stored in a DNS server to provide DNS resolution service for IPv4 and IPv6 users.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide an IPv6 domain name resolution method based on TRANS record to meet the requirement of IPv6 user service access, so that an IPv6 address and a CNAME coexist in a DNS server, and at the same time, IPv6 and IPv4 services are considered, and the speed of user surfing the internet is increased:
the technical scheme adopted by the invention for solving the technical problems is to provide an IPv6 domain name resolution method based on the TRANS record, which comprises the following steps:
step one, defining a TRANS record;
further, three types of records are included in the TRANS records: a record, CNAME record, AAAA record. And the CNAME record may coexist with the AAAA record but not the a record.
Step two, acquiring a request address message sent by a client;
step three, judging whether a DNS server has a corresponding TRANS record;
step four, if yes, the TRANS record is returned to the client;
further, if there is no TRANS record in the server, the DNS service may be performed according to the existing DNS query logic, which is not specifically described here. The invention only discusses the domain name resolution process recorded by the TRANS in the server;
step five, the client checks whether the TRANS record has an IPv6 address and also configures an IPv6 network;
step six, if the two conditions are met, the client firstly accesses the IPv6 address in the TRANS record;
step seven, if the condition in the step five is not met or the IPv6 address access fails, the user continues to use the IPv4 address/CNAME record in the TRANS to access;
compared with the prior art, the IPv6 domain name resolution method based on the TRANS records of the invention simultaneously sends the AAAA records and the CNAME/A records in the DNS server to the user by defining the TRANS records, thereby not only realizing the simultaneous existence of the CNAME and the IPv6 addresses, but also avoiding the step of inquiring the IPv4 address or the CNAME from the DNS server again after the IPv6 address access of the user fails, saving the address resolution time and improving the internet speed of the user.
Drawings
FIG. 1 is a flow diagram of a domain name resolution method based on a TRANS record in an embodiment of the present invention;
fig. 2 is a schematic diagram of an IPv6 user performing DNS resolution and service access in the embodiment of the present invention;
FIG. 3 is a diagram illustrating DNS resolution and service access performed by an IPv6 user in an embodiment of the present invention
Fig. 4 is a schematic diagram of DNS resolution and service access performed by an IPv4 user in the embodiment of the present invention.
Detailed Description
The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby. The following description is of the preferred embodiment for carrying out the invention, and is made for the purpose of illustrating the general principles of the invention and not for the purpose of limiting the scope of the invention. The scope of the present invention is defined by the appended claims.
The invention is described in further detail below with reference to the figures and specific embodiments.
As shown in fig. 1, an IPv6 domain name resolution method disclosed in the embodiment of the present invention based on a TRANS record includes the following steps:
s101, defining a TRANS record, wherein the TRANS record comprises three types of records: a record, CNAME record, AAAA record; the a record is the record used to create the IP address, the CNAME record is also an alias record that allows you to map multiple records onto the same computer, and the AAAA record is a record that points to the IPv6 address.
S102, a client initiates DNS query on the A/AAAA record of the domain name;
s103, judging whether a corresponding TRANS record exists in the DNS; if yes, returning the TRANS record to the client;
s104, the client firstly inquires whether an IPv6 address exists in the TRANS record and whether the client configures an IPv6 network;
s105, if the two conditions in the step S104 are met, the client firstly uses the IPv6 address in the TRANS record to access;
s106, if the IPv6 address access fails, the user continues to use the IPv4/CNAME in the TRANS to access;
s107, according to the step S104, if the TRANS record has no IPv6 address or the client does not configure the IPv6 network, the client uses the CNAME/IPv4 address in the TRANS record for access;
s108, the service of the service access to the user is finally completed in the steps;
in step S103, if there is no TRANS record in the server, the DNS service may be performed according to the existing DNS query logic, which is not specifically described here. The present implementation discusses in detail the domain name resolution process that is recorded by TRANS in the server.
In steps S105 and S106, it can be seen that the present mechanism can provide DNS services to both IPv6 users and IPv4 users. And the CNAMEA and the IPv6 address are simultaneously stored in the TRANS record, so that the user can flexibly upgrade the IPv6 service without influencing the existing IPv4 service.
In the embodiment, the characteristics of the TRANS record are utilized, the compatibility of the DNS server to the IPv6 user and the IPv4 user is realized, the domain name resolution process is optimized, the query delay is reduced, and the internet speed of the user is increased.
Fig. 2 and fig. 3 are schematic diagrams of DNS resolution and service access performed by an IPv6 user according to an embodiment of the present invention.
Com sends a request for AAAA record of domain name example to the DNS server first, where the relevant TRANS record is queried and the whole record is sent back to the client, as shown in fig. 2. The client uses the IPv6 address in the TRANS record for service access because the client itself also performs configuration of the IPv6 network.
As shown in fig. 3, another description of the case when an IPv6 user performs DNS resolution and service access in the embodiment of the present invention is given, where after a client fails to access an IPv6 address, the client accesses the address through a CNAME record in a TRANS record, and after a final server IP address 127.0.0.1 is obtained in a DNS server, service access is performed.
This embodiment describes the service access process of IPv6 user, in which the case of AAAA record and CNAME record of example. It is noted that the existence of the TRANS record can enable the CNAME and the IPv6 addresses to exist simultaneously, so that the user can flexibly upgrade the IPv6 service without affecting the existing IPv4 service. In addition, after the TRANS records are sent to the client by the DNS server for the first time, the client fails to access the network service through the IPv6, and a second resolution request does not need to be performed to the DNS server, so that delay of one query is saved by such optimization.
Fig. 4 is a schematic diagram of DNS resolution and service access by an IPv4 user in the embodiment of the present invention.
Com, the DNS server sends the TRANS record to the client, and the client uses the A record in the TRANS record to perform service access.
In this embodiment, a process of service access by an IPv4 user is described, in which a case where an AAAA record and an IPv4 record of example. It is noted that the DNS server need only send the TRANS record back to the client, whether the client makes an a record or an AAAA access. The invention is compatible with the domain name resolution service for IPv4 users and IPv6 users.
Compared with the prior art, the IPv6 domain name resolution method based on the TRANS record disclosed by the embodiment of the invention can enable the CNAME and the IPv6 addresses to simultaneously exist in a DNS server through the design of the TRANS record, so that a user can flexibly upgrade the IPv6 service without influencing the existing IPv4 service. And when the user requests domain name resolution, the TRANS record returns the IPv6 address and an IPv4 related address (IPv4 address or CDN address) to the client together, and compared with the existing method of searching the IPv6 address first, if the IPv6 cannot access, the IPv4 address is accessed again, so that delay of one query is saved, and the speed of accessing the internet of the user is increased.
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 (5)
1. An IPv6 domain name resolution method based on TRANS record is characterized by comprising the following steps:
s1, defining a TRANS record;
s2, acquiring a request address message sent by a client;
s3, judging whether a corresponding TRANS record exists in the DNS;
s4, if yes, returning the TRANS record to the client;
s5, the client checks whether the TRANS record has IPv6 address and configures IPv6 network;
s6, if the two conditions are met, the client firstly accesses the IPv6 address in the TRANS record;
and S7, if the condition in S5 is not met or the IPv6 address access fails, accessing the IPv4/CNAME record in the TRANS and returning the record to the user.
2. The method of claim 1 wherein the defined TRANS records include three types of records, an a record, a CNAME record, and an AAAA record.
3. The method of claim 2, wherein a CNAME record coexists with an AAAA record, but not with an A record.
4. The method of claim 1 wherein the TRANS record returns the IPv6 address to the client along with an IPv4 related address.
5. The method of claim 3 wherein the A record and the CNAME record in the TRANS record do not exist simultaneously, and the TRANS record has only one of the A record or the CNAME record.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911392968.2A CN111010462A (en) | 2019-12-30 | 2019-12-30 | IPv6 domain name resolution method based on TRANS record |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911392968.2A CN111010462A (en) | 2019-12-30 | 2019-12-30 | IPv6 domain name resolution method based on TRANS record |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111010462A true CN111010462A (en) | 2020-04-14 |
Family
ID=70119347
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911392968.2A Pending CN111010462A (en) | 2019-12-30 | 2019-12-30 | IPv6 domain name resolution method based on TRANS record |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111010462A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1756263A (en) * | 2004-09-27 | 2006-04-05 | 上海贝尔阿尔卡特股份有限公司 | Domain name analytic method, domain name server and domain name system |
CN102859960A (en) * | 2009-08-14 | 2013-01-02 | 阿卡麦科技公司 | Method and apparatus for correlating nameserver IPv6 and IPv4 addresses |
CN105681491A (en) * | 2016-04-08 | 2016-06-15 | 网宿科技股份有限公司 | DNS (Domain Name Resolution) acceleration method, system and device |
US20170244667A1 (en) * | 2016-02-23 | 2017-08-24 | Level 3 Communications, Llc | Systems and methods for content server rendezvous in a dual stack protocol network |
CN108848205A (en) * | 2018-07-27 | 2018-11-20 | 北京网瑞达科技有限公司 | A kind of CNAME domain name analytic method for distinguishing IPv4, IPv6 |
CN109462668A (en) * | 2018-10-25 | 2019-03-12 | 维沃移动通信有限公司 | A kind of method and apparatus of processing domain name mapping request |
CN109936632A (en) * | 2019-03-07 | 2019-06-25 | 杭州又拍云科技有限公司 | A kind of CNAME accelerated method applied to DNS authority server |
US20190306111A1 (en) * | 2018-03-29 | 2019-10-03 | Akamai Technologies, Inc. | High precision mapping with intermediary dns filtering |
-
2019
- 2019-12-30 CN CN201911392968.2A patent/CN111010462A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1756263A (en) * | 2004-09-27 | 2006-04-05 | 上海贝尔阿尔卡特股份有限公司 | Domain name analytic method, domain name server and domain name system |
CN102859960A (en) * | 2009-08-14 | 2013-01-02 | 阿卡麦科技公司 | Method and apparatus for correlating nameserver IPv6 and IPv4 addresses |
US20170244667A1 (en) * | 2016-02-23 | 2017-08-24 | Level 3 Communications, Llc | Systems and methods for content server rendezvous in a dual stack protocol network |
CN105681491A (en) * | 2016-04-08 | 2016-06-15 | 网宿科技股份有限公司 | DNS (Domain Name Resolution) acceleration method, system and device |
US20190306111A1 (en) * | 2018-03-29 | 2019-10-03 | Akamai Technologies, Inc. | High precision mapping with intermediary dns filtering |
CN108848205A (en) * | 2018-07-27 | 2018-11-20 | 北京网瑞达科技有限公司 | A kind of CNAME domain name analytic method for distinguishing IPv4, IPv6 |
CN109462668A (en) * | 2018-10-25 | 2019-03-12 | 维沃移动通信有限公司 | A kind of method and apparatus of processing domain name mapping request |
CN109936632A (en) * | 2019-03-07 | 2019-06-25 | 杭州又拍云科技有限公司 | A kind of CNAME accelerated method applied to DNS authority server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10148612B2 (en) | Method and system for increasing speed of domain name system resolution within a computing device | |
CN108370391B (en) | Shared multi-tenant Domain Name System (DNS) server for virtual networks | |
US10348674B2 (en) | Domain name system CNAME record management | |
CN111245972B (en) | Domain name resolution method, device, medium and equipment | |
EP2556438B1 (en) | Reverse dns lookup with modified reverse mappings | |
US9231903B2 (en) | System and method for resolving a DNS request using metadata | |
US9219705B2 (en) | Scaling network services using DNS | |
US7529231B2 (en) | Routing methods and systems using ENUM servers internal and external to a service provider network | |
US9264358B2 (en) | Alias resource record sets | |
US9225613B2 (en) | Method for accessing content in networks and a corresponding system | |
JP2001519607A (en) | Method and apparatus for transforming a static identifier into a dynamically assigned network address | |
US20230022183A1 (en) | Systems and methods for processing requests for content of a content distribution network | |
US20190364012A1 (en) | Managing Domain Name System (DNS) Record Cache Across Multiple DNS Servers Using Multicast Communication | |
CN112235408A (en) | Network system, reverse proxy method and reverse proxy server | |
CN113992626A (en) | Method, device and storage medium for realizing DNS | |
CN115668889A (en) | Domain Name System (DNS) service for Variable Length Address (VLA) networks | |
JP4757063B2 (en) | Cache server device, cache control method, and program for cache server device | |
CN111010462A (en) | IPv6 domain name resolution method based on TRANS record | |
EP2647179B1 (en) | Service access apparatus, method, computer program and computer program product for selective initiation of communication | |
CN111447297B (en) | IPv4 and IPv6 DNS unified access management method and system | |
WO2016074148A1 (en) | Method and system for domain name load balancing | |
JP3708085B2 (en) | DNS inquiry device and DNS inquiry method | |
KR20110132141A (en) | Query processing system and method using forward zone |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200414 |