CN104079682B - A kind of address conversion method and device based on domain name system DNS - Google Patents
A kind of address conversion method and device based on domain name system DNS Download PDFInfo
- Publication number
- CN104079682B CN104079682B CN201410320813.9A CN201410320813A CN104079682B CN 104079682 B CN104079682 B CN 104079682B CN 201410320813 A CN201410320813 A CN 201410320813A CN 104079682 B CN104079682 B CN 104079682B
- Authority
- CN
- China
- Prior art keywords
- address
- domain name
- ipv4
- domain
- destination 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
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 68
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000013519 translation Methods 0.000 claims abstract description 5
- 238000004458 analytical method Methods 0.000 claims description 60
- 238000000605 extraction Methods 0.000 claims description 4
- 230000009977 dual effect Effects 0.000 abstract description 24
- 238000005516 engineering process Methods 0.000 abstract description 6
- 238000004891 communication Methods 0.000 abstract description 2
- 239000013256 coordination polymer Substances 0.000 description 9
- 239000000203 mixture Substances 0.000 description 5
- 238000013507 mapping Methods 0.000 description 3
- 238000013508 migration Methods 0.000 description 3
- 230000005012 migration Effects 0.000 description 3
- 230000015572 biosynthetic process Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000003786 synthesis reaction Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of address conversion method and device based on domain name system DNS, it is related to field of communication technology, provide a kind of new address translation scheme, when IPv4/IPv6 dual stack user accesses IPv4 service resources, the problem of this couple of stack user cannot access IPv4 service resources is alleviated, significantly improves the service resources access ability of IPv4/IPv6 dual stack user.The specific embodiment of the present invention includes:After the destination address for getting user terminal requests inquiry, when the definite destination address is contained in preset address domain, IP address conversion is carried out, obtains the corresponding IPv6 addresses of destination address, the destination address set corresponding to IPv4 service resources which supports for NAT64.Technical solution provided by the invention is mainly used in IPv4 and IPv6 address conversion flows.
Description
Technical field
The present invention relates to field of communication technology, more particularly to one kind to be based on DNS (Domain Name System, domain name system
System) address conversion method and device.
Background technology
At present, it is in IPv4 (Internet Protocol version4, Internet Protocol Version 4) to IPv6
(Internet Protocol version6, Internet Protocol Version 6) transition stage.Business and the abundant of application are to promote IPv6
The vital part of industrial chain, only there is abundant IPv6 service applications, can drive network and user
IPv6 develops, correspondingly, only there are during numerous IPv6 users, CP/SP (Content Provider/Service
Provider, content supplier/service provider) dynamic it can realize to IPv6 migrations.However, CP/SP is to IPv6's
Migration there are it is many problem of.First, CP/SP is numerous, including all kinds such as large, medium and small, and the service class provided
Type be also it is various, still, current most of CP/SP impotentias, No Assets bulk migration IPv6.Secondly, it is mutual between CP/SP
Nested service link is complicated, is related to mutual a series of problems, such as changing when a large amount of IPv4 interlink nested with IPv6.Cause
This, really is able to drive using the scheme of the service resources of IPv6 agreement stack addressings IPv6 and/or IPv4 there is an urgent need for a kind of at present
The development of IPv6 industrial chains.
Specifically, during IPv4/IPv6 dual stack user asks to access the realization of IPv4 servers, domain name mapping is being carried out
When, that is, according to domain Name acquisition IP address corresponding with the domain name during, and the domain name resolution process is including DNS64
Realized in the DNS of server capability, will be according to the domain after the domain name that DNS gets IPv4/IPv6 dual stack user's requesting query
The IPv4 addresses that name is got all carry out IP address conversion, get IPv6 addresses corresponding with the IPv4 addresses, and then make
Obtain IPv4/IPv6 dual stack user and IPv4 service resources are accessed according to transformed IPv6 addresses.But actually realizing process
In, what is received due to IPv4/IPv6 dual stack user is transformed IPv6 addresses, causes to access by IPv6 addresses
During IPv4 service resources, whole service messages are carried out with the mutual conversion of IPv6, IPv4, but for the business of extensive application
Message can not realize the conversion of IPv6, IPv4, so as to cause IPv4/IPv6 dual stack user to access the failure of IPv4 service resources.
Above-mentioned technology is then used, when realizing that IPv4/IPv6 dual stack user accesses IPv4 service resources, can only be visited after carrying out IP address conversion
Ask the IPv4 service resources of minority, cause the service resources access ability of IPv4/IPv6 dual stack user poor.
The content of the invention
The embodiment of the present invention provides a kind of address conversion method and device based on DNS, there is provided a kind of new address
Conversion plan, when IPv4/IPv6 dual stack user accesses IPv4 service resources, IPv4 industry cannot be accessed by alleviating this couple of stack user
The problem of resource of being engaged in, significantly improve the service resources access ability of IPv4/IPv6 dual stack user.
To reach above-mentioned purpose, the embodiment of the present invention adopts the following technical scheme that:
A kind of address conversion method based on domain name system DNS, including:
The destination address of user terminal requests inquiry is obtained, the destination address is corresponding for domain name and/or domain name
Internet Protocol Version 4 IPv4 addresses, and the destination address is corresponding with IPv4 service resources;
When the destination address is contained in preset address domain, IP address conversion is carried out, the destination address is obtained and corresponds to
Internet Protocol Version 6 IPv6 addresses;
Wherein, the mesh corresponding to IPv4 service resources that the preset address domain is supported for network address translation 64NAT64
Address set.
A kind of address converting device based on domain name system DNS, it is characterised in that including:
Acquiring unit, for obtaining the destination address of user terminal requests inquiry, the destination address is domain name or described
The corresponding Internet Protocol Version 4 IPv4 addresses of domain name, and the destination address is corresponding with IPv4 service resources;
Converting unit, when the destination address for being obtained when the acquiring unit is contained in preset address domain, carries out
IP address conversion, obtains the corresponding Internet Protocol Version 6 IPv6 addresses of the destination address;
Wherein, the mesh corresponding to IPv4 service resources that the preset address domain is supported for network address translation 64NAT64
Address set.
A kind of address conversion method and device based on DNS provided in an embodiment of the present invention, please getting user terminal
After the destination address for asking inquiry, when the definite destination address is contained in preset address domain, IP address conversion is carried out, obtains mesh
Address corresponding IPv6 addresses, which is NAT64 (NetworkAddress Translation64, network
64) the destination address set corresponding to IPv4 service resources that location conversion is supported.And in the prior art, it is double in IPv4/IPv6
When stack user asks to access IPv4 service resources, a small number of IPv4 service resources can only be accessed after IP address conversion.Compared to
The prior art, technical solution provided by the invention, which alleviates IPv4/IPv6 dual stack user, cannot access asking for IPv4 service resources
Topic, significantly improves the service resources access ability of IPv4/IPv6 dual stack user.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of address conversion method flow chart based on DNS that one embodiment of the invention provides;
Fig. 2 is a kind of address conversion method flow chart based on DNS that another embodiment of the present invention provides;
Fig. 3 is a kind of composition schematic diagram for address converting device based on DNS that another embodiment of the present invention provides;
Fig. 4 is the composition schematic diagram for another address converting device based on DNS that another embodiment of the present invention provides.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment, belongs to the scope of protection of the invention.
One embodiment of the invention provides a kind of address conversion method based on DNS, and this method is applied to possess DNS64 clothes
Be engaged in device function DNS in, and the present embodiments relate to user terminal be IPv4/IPv6 dual stack user.As shown in Figure 1, should
Method includes:
101st, DNS64 servers obtain the destination address of user terminal requests inquiry.
Wherein, destination address refers to the object to be judged before IP address conversion is carried out, the destination address for domain name and/or
The corresponding IPv4 addresses of the domain name, and the destination address is corresponding with IPv4 service resources.
What deserves to be explained is method provided in an embodiment of the present invention, the destination address is corresponding for domain name and/or the domain name
IPv4 addresses, are properly termed as the specific manifestation form of the destination address, in these specific manifestation forms and hereafter preset address domain
Comprising content correspond to.And by the destination address specific manifestation form, different determination methods can be divided accordingly, with
Determine the need for carrying out IP address conversion by judging result, it specifically divides and judge flow will be in following Fig. 2 institutes
Describe in detail in corresponding embodiment.
102nd, when destination address is contained in preset address domain, IP address conversion is carried out by DNS64 servers, obtaining should
The corresponding IPv6 addresses of destination address.
What deserves to be explained is the IP address conversion in 102 refers to, by the flow that IPv4 address conversions are IPv6 addresses.
Wherein, the destination address set corresponding to IPv4 service resources that preset address domain is supported for NAT64.Namely
Say, the address set in the preset address domain, be after getting IPv6 addresses by IP address conversion, it is transformed by this
The destination address set corresponding to IPv4 service resources that IPv6 addresses are able to access that.
In addition what deserves to be explained is, DNS64 servers and NAT64 are two independent equipment, and mutual cooperation realizes
IPv4/IPv6 dual stack user accesses the requirements for access between the different agreement stack equipment of IPv4 service resources.NAT64 carries out IPv6
Mutual conversion between service message and IPv4 service messages, can succeed what the service message mutually changed was supported into NAT64
Service resources.
In a kind of optional implementation of the embodiment of the present invention, the IPv4 service resources which supports can basis
Whether IPv4 applications are set with CP/SP signings, such as, the business with CP/SP signings is that the IPv4 for the condition that meets is applied,
IPv4 applications are the IPv4 service resources that NAT64 is supported.For example, intuitively in one video network of user terminal access
When standing, and when user terminal is by IPv6 agreement stack addressings, it can show that webpage cannot still play video, this IPv4 business
Resource is the IPv4 service resources that NAT64 is not supported.
Address conversion method provided in an embodiment of the present invention based on DNS, is getting the mesh of user terminal requests inquiry
Address after, when the definite destination address is contained in preset address domain, carry out IP address conversion, obtain destination address correspond to
IPv6 addresses, the preset address domain for NAT64 support IPv4 service resources corresponding to destination address set.And existing
In technology, when IPv4/IPv6 dual stack user asks to access IPv4 service resources, minority can only be accessed after IP address conversion
IPv4 service resources.Compared with the prior art, technical solution provided by the invention alleviates IPv4/IPv6 dual stack user and cannot visit
The problem of asking IPv4 service resources, significantly improves the service resources access ability of IPv4/IPv6 dual stack user.
Another embodiment of the present invention provides a kind of address conversion method based on DNS, with reference to above-mentioned side as shown in Figure 1
Method, describes the specific execution flow for obtaining destination address, as shown in Fig. 2, this method flow includes in the present embodiment:
First, in order to get the destination address of user terminal requests inquiry, before above-mentioned steps 101 are performed,
Need to perform following flows 201.
201st, DNS64 servers receive the AAAA analysis requests and A analysis requests that user terminal is sent.
Wherein, the domain name that user terminal requests are inquired about is included in AAAA analysis requests and A analysis requests.AAAA analysis requests
For IPv6 analysis requests, IPv6 addresses are returned to by domain name for request;A analysis requests are IPv4 analysis requests, for asking
IPv4 addresses are returned to by domain name.
202nd, the destination address of requesting query is obtained according to AAAA analysis requests and A analysis requests.
Wherein, the description of the destination address describes identical with the related content in a upper embodiment 101, is not repeated herein
Explanation.
Specifically, the acquisition destination address includes following two aspects:
In a first aspect, when destination address is domain name, domain name is extracted respectively from AAAA analysis requests and A analysis requests.
Second aspect, when destination address IPv4 addresses corresponding for domain name, from AAAA analysis requests and A analysis requests
Domain name is extracted respectively, according to A analysis requests, A parsings is carried out to the domain name of extraction, obtain IPv4 addresses corresponding with domain name.
What deserves to be explained is wherein carrying out A parsings, i.e. DNS64 servers extract the domain of requesting query from A analysis requests
Name, and then IPv4 addresses corresponding with domain name whether there is according to inquiry of the domain name, when in the presence of IPv4 addresses corresponding with the domain name
When, the IPv4 addresses are fed back to user terminal, when there is no during IPv4 addresses corresponding with the domain name, feeding back A to user terminal
Parse failed message.Wherein, in the case of IPv4 addresses corresponding there is no domain name, accessed for user terminal requests
It is the situation of IPv6 service resources, since it directly has IPv6 addresses corresponding with domain name, then A parsings at this time are failures
, i.e., to user terminal feedback A parsing failed messages.
Further, after destination address is got, it is also necessary to judge whether to need to carry out IP address to the destination address
Conversion, when determining to carry out IP address conversion, so that user terminal can go to access IPv4 by transformed IP address
Service resources, that is, the above-mentioned 102 specific execution flows being related to.
What deserves to be explained is with reference to the above-mentioned description to destination address, which includes the content of two aspects, phase
Answer, following two execution flows are included during specifically performing above-mentioned 102, and the first performs flow and corresponds to destination
Location be domain name situation, second perform flow corresponds to destination address be the corresponding IPv4 addresses of domain name situation, specifically this
Two kinds perform flow and include:
The first performs flow:
The first step:Judge whether domain name is contained in the first address field.
Wherein, the set of domains corresponding to IPv4 service resources that the first address field is supported for NAT64.
Further, when domain name is contained in the first address field, following second steps are performed, when domain name is not included in first
During address field, following 4th steps are performed.
Second step:A parsings are carried out to domain name according to A analysis requests, obtain IPv4 addresses corresponding with domain name.
3rd step:According to the AAAA analysis requests, corresponding to domain name IPv4 addresses carry out IP address conversion, obtain with
The corresponding IPv6 addresses of domain name.
What deserves to be explained is AAAA parsings extract domain name from AAAA analysis requests, first look for whether there is and this
The corresponding primary destination IP v6 addresses of domain name, and if so, directly to user terminal with feeding back the primary destination IP v6
Location, if there is no the primary destination IP v6 addresses, then searches whether there is IPv4 addresses corresponding with the domain name, if deposited
In IPv4 addresses, then judge whether to need to carry out IP address conversion, if there is no IPv4 addresses corresponding with domain name, Huo Zhecun
In IPv4 addresses but by judging that the existing IP address is unsatisfactory for preset address domain, under both of these case with need not carrying out IP
Location is changed, then to user terminal feedback AAAA parsing failed messages.
With reference to the above-mentioned specific descriptions to AAAA process of analysis, primary destination IP v6 addresses therein refer to domain name
Only by AAAA parsings without carrying out IP address conversion, the IPv6 addresses that can be directly obtained, these are with primary
The domain name of IPv6 addresses is the corresponding domain name of IPv6 service resources, the embodiment of the present invention to this access case no longer specifically
It is bright.
What deserves to be explained is above-mentioned carry out IP address conversion, i.e., form domain name by the corresponding IPv4 addresses of domain name and correspond to
IPv6 addresses, and include, but are not limited to following two kinds of forms of the composition:
The first form of the composition:" well-known prefix+domain name corresponding IPv4 addresses " forms IPv6 addresses.
Second of form of the composition:" self-defined prefix+domain name corresponding IPv4 addresses " forms IPv6 addresses.
The situation of the first address field is contained in reference to the domain name, the DNS comprising DNS64 servers can will pass through IPv4 addresses
The IPv6 addresses of synthesis are sent to user terminal, are provided so that the user's terminal accesses the corresponding IPv4 of domain name by IPv6 addresses
Source.
4th step:When domain name is not included in the first address field, without IP address conversion.
The situation of the first address field is not included in reference to the domain name, the DNS comprising DNS64 servers can be corresponding by domain name
IPv4 addresses are sent to user terminal, so that the user's terminal accesses the corresponding IPv4 resources of domain name by IPv4 addresses.
In the present embodiment the first is performed under flow conditions, is so first sentenced before IP address conversion is carried out
It is disconnected, the IPv4 addresses for the condition that meets only are subjected to IP address conversion, are converted to IPv6 addresses, and for being unsatisfactory for the IPv4 of condition
Then without IP address conversion, the IP address most obtained at last feeds back to user terminal for address, so as to ensure that user terminal can
IPv4 service resources are accessed by the IP address received.
Second of execution flow:
The first step:Judge whether the corresponding IPv4 addresses of domain name are contained in the second address field.
Wherein, the IPv4 address sets corresponding to IPv4 service resources that the second address field is supported for NAT64.
Further, when the corresponding IPv4 addresses of domain name are contained in the second address field, following second steps is performed, work as domain
When name is not included in the second address field, following 3rd steps are performed.
Second step:According to the AAAA analysis requests, corresponding to domain name IPv4 addresses carry out IP address conversion, obtain with
The corresponding IPv6 addresses of domain name.
What deserves to be explained is this second perform flow in carry out IP address conversion description with it is above-mentioned the first hold
Related content is identical in row flow, and this will not be repeated here.
The situation of the second address field is contained in reference to the domain name, the DNS comprising DNS64 servers can will pass through IPv4 addresses
The IPv6 addresses of synthesis are sent to user terminal, are provided so that the user's terminal accesses the corresponding IPv4 of domain name by IPv6 addresses
Source.
3rd step:When domain name is not included in the second address field, without IP address conversion.
The situation of the second address field is not included in reference to the domain name, the DNS comprising DNS64 servers can be corresponding by domain name
IPv4 addresses are sent to user terminal, so that the user's terminal accesses the corresponding IPv4 resources of domain name by IPv4 addresses.
What deserves to be explained is performing the description of flow with reference to above two, in the first execution flow, domain is being got
After name, first domain name is judged, and then directly determines according to judging result the analysis mode of the domain name and whether carries out
IP address conversion, is directly able to determine whether to carry out IP address conversion by definite analysis mode.Accordingly can be by domain name
Three classes are divided into, such as, for when the domain name got is there are during primary destination IP v6 addresses, only carrying out AAAA parsings, and
The first classification that the domain name for meeting this case is judged as domain name;IPv4 addresses after domain name mapping are contained in the second ground
During the domain of location, carry out AAAA parsings and carry out IP address conversion, and second that the domain name for meeting this case is judged as domain name
Classification;When the IPv4 addresses after domain name mapping are not included in the second address field, AAAA parsings are no longer carried out, and will meet this
The 3rd classification that the domain name of situation judges as domain name.
Although the embodiment of the present invention has highlighted the situation that IPv4/IPv6 dual stack user accesses IPv4 service resources,
It is to equally exist this couple of stack user in actual application to access IPv6 service resources or access IPv4/IPv6 dual stack business
The situation of resource, i.e., the domain name received in DNS64 services can be the corresponding domain name of any one service resources, then domain name is fitted
Judgement for three kinds of above-mentioned classification.
, can be according to supports of the NAT64 to service resources in the present embodiment DNS with reference to the foregoing description of the embodiment of the present invention
Ability decides whether execution DNS64, i.e., whether carries out IP address conversion, and then IPv4/IPv6 dual stack user service is effectively ensured
Experience, is avoided the tenability deficiency to service resources due to NAT64, causes partial service to be visited using business after NAT64 conversions
Ask situation of the quality not as directly accessing IPv4 resources., can be with furthermore, it is possible to be supplied to CP/SP using NAT64 as a service
Assist CP/SP externally to provide IPv6 service ability, promote the development of IPv6, while as a service, can be carried to operator
For new revenue source.
Another embodiment of the present invention provides a kind of address converting device based on DNS, as shown in figure 3, the device includes:
Acquiring unit 31, converting unit 32.
Acquiring unit 31, for obtaining the destination address of user terminal requests inquiry.
Wherein, destination address refers to the object to be judged before IP address conversion is carried out, the destination address for domain name and/or
The corresponding IPv4 addresses of the domain name, and the destination address is corresponding with IPv4 service resources.
What deserves to be explained is the destination address is domain name and/or the corresponding IPv4 addresses of the domain name, the purpose is properly termed as
The specific manifestation form of address, these specific manifestation forms are corresponding with the content included in hereafter preset address domain.And pass through
The destination address specific manifestation form, can perform different judgement flows in the apparatus, with true by judging result accordingly
It is fixed whether to need to carry out IP address conversion.
Converting unit 32, when the destination address for being obtained when acquiring unit 31 is contained in preset address domain, with carrying out IP
Location is changed, and obtains the corresponding IPv6 addresses of destination address.
Wherein, the destination address set corresponding to IPv4 service resources that preset address domain is supported for NAT64.
In a kind of optional building form of the present apparatus, as shown in figure 4, acquiring unit 31 further includes:Receiving subelement
311st, subelement 312 is extracted;The device further includes:Resolution unit 33.
Receiving subelement 311, for receiving the AAAA analysis requests and A analysis requests of user terminal transmission.
Wherein, the domain name that user terminal requests are inquired about is included in AAAA analysis requests and A analysis requests.AAAA analysis requests
For IPv6 analysis requests, IPv6 addresses are returned to by domain name for request;A analysis requests are IPv4 analysis requests, for asking
IPv4 addresses are returned to by domain name.
Subelement 312 is extracted, the AAAA parsings for when destination address is domain name, being received from receiving subelement 311 please
Domain name is extracted respectively in summation A analysis requests, alternatively, when destination address IPv4 addresses corresponding for domain name, it is single from son is received
Domain name is extracted in AAAA analysis requests and A analysis requests that member 311 receives respectively, and is obtained and domain name pair according to A analysis requests
The IPv4 addresses answered.
What deserves to be explained is AAAA analysis requests and A parsings that extraction subelement 312 is received from receiving subelement 311 please
Ask the domain name of middle extraction identical.
With reference to the description of the above-mentioned destination address obtained to acquiring unit 31, on the one hand, when destination address is domain name, in advance
If address field is the first address field, which further includes:
Resolution unit 33, for when domain name is contained in the first address field, A parsings to be carried out to domain name according to A analysis requests,
Obtain IPv4 addresses corresponding with domain name.
Wherein, the set of domains corresponding to IPv4 service resources that the first address field is supported for NAT64.
Converting unit 32, is additionally operable to according to AAAA analysis requests, and IPv4 addresses corresponding to domain name carry out IP address conversion,
Obtain IPv6 addresses corresponding with domain name.
On the other hand, when destination address IPv4 addresses corresponding for domain name, preset address domain is the second address field, at this
In the case of one:
Converting unit 32, is additionally operable to, when the corresponding IPv4 addresses of domain name are contained in the second address field, be parsed according to AAAA
Request, IPv4 addresses corresponding to domain name carry out IP address conversion, obtain the corresponding IPv6 addresses of domain name.
Wherein, the IPv4 address sets corresponding to IPv4 service resources that the second address field is supported for NAT64.
In another implementation of the present embodiment, converting unit 32, is additionally operable to the purpose obtained when acquiring unit 31
When address is not included in preset address domain, without IP address conversion.
What deserves to be explained is the device of the embodiment of the present invention as shown in Figure 3, Figure 4 be used for realization it is above-mentioned as shown in Figure 1, Figure 2 pair
The method flow answered.
Address converting device provided in an embodiment of the present invention based on DNS, user terminal requests are got in acquiring unit
After the destination address of inquiry, when the definite destination address is contained in preset address domain, IP address is carried out by converting unit
Conversion, obtains the corresponding IPv6 addresses of destination address, the preset address domain is corresponding to the IPv4 service resources of NAT64 supports
Destination address set.And in the prior art, when IPv4/IPv6 dual stack user asks to access IPv4 service resources, by IP
A small number of IPv4 service resources can only be accessed after address conversion.Compared with the prior art, technical solution provided by the invention alleviates
IPv4/IPv6 dual stack user cannot access the problem of IPv4 service resources, significantly improve the business of IPv4/IPv6 dual stack user
Resource access ability.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can borrow
Software is helped to add the mode of required common hardware to realize, naturally it is also possible to which by hardware, but the former is more preferably in many cases
Embodiment.Based on such understanding, portion that technical scheme substantially in other words contributes the prior art
Dividing can be embodied in the form of software product, which is stored in the storage medium that can be read, and such as be counted
The floppy disk of calculation machine, hard disk or CD etc., including some instructions are used so that computer equipment (can be personal computer,
Server, or network equipment etc.) perform method described in each embodiment of the present invention.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (8)
- A kind of 1. address conversion method based on domain name system DNS, it is characterised in that including:The destination address of user terminal requests inquiry is obtained, the destination address is domain name or the corresponding Internet protocol of domain name Edition 4 IPv4 addresses, and the destination address is corresponding with IPv4 service resources;When the destination address is contained in preset address domain, IP address conversion is carried out, obtains the corresponding net of the destination address Border protocol edition 6 IPv6 addresses;Wherein, the destination corresponding to IPv4 service resources that the preset address domain is supported for 64 NAT64 of network address translation Gather location;The method further includes:When the destination address is not included in the preset address domain, turn without the IP address Change.
- 2. the address conversion method according to claim 1 based on DNS, it is characterised in that the acquisition user terminal please The destination address of inquiry is sought, including:Receive AAAA analysis requests and A analysis requests that the user terminal is sent;When the destination address is domain name, institute is extracted respectively from the AAAA analysis requests and the A analysis requests Domain name is stated, alternatively,, please from the AAAA analysis requests and A parsings when destination address IPv4 addresses corresponding for domain name Ask middle and extract domain name respectively, IPv4 addresses corresponding with domain name are obtained according to the A analysis requests;It is identical with the domain name that is extracted in the A analysis requests from the AAAA analysis requests.
- 3. the address conversion method according to claim 2 based on DNS, it is characterised in that when the destination address is institute When stating domain name, the preset address domain is the first address field, and first address field provides for the NAT64 IPv4 business supported Set of domains corresponding to source, the described method includes:When domain name is contained in first address field, A parsings are carried out to domain name according to the A analysis requests, are obtained Take IPv4 addresses corresponding with domain name;According to the AAAA analysis requests, IPv4 addresses corresponding to domain name carry out the IP address conversion, acquisition and institute State the corresponding IPv6 addresses of domain name.
- 4. the address conversion method according to claim 2 based on DNS, it is characterised in that when the destination address is institute When stating the corresponding IPv4 addresses of domain name, the preset address domain is the second address field, and second address field is the NAT64 branch The IPv4 address sets corresponding to IPv4 service resources held, the described method includes:When the corresponding IPv4 addresses of domain name are contained in second address field, according to the AAAA analysis requests, to institute State the corresponding IPv4 addresses of domain name and carry out the IP address conversion, obtain the corresponding IPv6 addresses of domain name.
- A kind of 5. address converting device based on domain name system DNS, it is characterised in that including:Acquiring unit, for obtaining the destination address of user terminal requests inquiry, the destination address is domain name or domain name Corresponding Internet Protocol Version 4 IPv4 addresses, and the destination address is corresponding with IPv4 service resources;Converting unit, when the destination address for being obtained when the acquiring unit is contained in preset address domain, with carrying out IP Location is changed, and obtains the corresponding Internet Protocol Version 6 IPv6 addresses of the destination address;Wherein, the destination corresponding to IPv4 service resources that the preset address domain is supported for 64 NAT64 of network address translation Gather location;The converting unit, is additionally operable to when the destination address that the acquiring unit obtains is not included in the preset address domain When, without the IP address conversion.
- 6. the address converting device according to claim 5 based on DNS, it is characterised in that the acquiring unit includes:Receiving subelement, the AAAA analysis requests and A analysis requests sent for receiving the user terminal;Subelement is extracted, for the AAAA parsings when destination address is domain name, received from the receiving subelement Domain name is extracted respectively in request and the A analysis requests, alternatively, when the destination address is the corresponding IPv4 of domain name During address, the domain is extracted respectively from the AAAA analysis requests and the A analysis requests that the receiving subelement receives Name, and IPv4 addresses corresponding with domain name are obtained according to the A analysis requests;The extraction subelement is extracted from the AAAA analysis requests and the A analysis requests that the receiving subelement receives Domain name it is identical.
- 7. the address converting device according to claim 6 based on DNS, it is characterised in that when the destination address is institute When stating domain name, the preset address domain is the first address field, and first address field provides for the NAT64 IPv4 business supported Set of domains corresponding to source, described device further include:Resolution unit, for when domain name is contained in first address field, according to the A analysis requests to domain name A parsings are carried out, obtain IPv4 addresses corresponding with domain name;The converting unit, is additionally operable to according to the AAAA analysis requests, described in IPv4 addresses corresponding to domain name carry out IP address conversion, obtains IPv6 addresses corresponding with domain name.
- 8. the address converting device according to claim 6 based on DNS, it is characterised in that when the destination address is institute When stating the corresponding IPv4 addresses of domain name, the preset address domain is the second address field, and second address field is the NAT64 branch The IPv4 address sets corresponding to IPv4 service resources held,The converting unit, is additionally operable to when the corresponding IPv4 addresses of domain name are contained in second address field, according to institute AAAA analysis requests are stated, IPv4 addresses corresponding to domain name carry out the IP address conversion, and it is corresponding to obtain domain name IPv6 addresses.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410320813.9A CN104079682B (en) | 2014-07-07 | 2014-07-07 | A kind of address conversion method and device based on domain name system DNS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410320813.9A CN104079682B (en) | 2014-07-07 | 2014-07-07 | A kind of address conversion method and device based on domain name system DNS |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104079682A CN104079682A (en) | 2014-10-01 |
CN104079682B true CN104079682B (en) | 2018-04-20 |
Family
ID=51600722
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410320813.9A Active CN104079682B (en) | 2014-07-07 | 2014-07-07 | A kind of address conversion method and device based on domain name system DNS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104079682B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106302845B (en) * | 2015-05-29 | 2020-07-17 | 西安中兴新软件有限责任公司 | Domain name system address configuration method and device of data channel product |
CN106559505A (en) * | 2015-09-25 | 2017-04-05 | 中兴通讯股份有限公司 | IP method for parameter configuration, network address processing method and processing device |
CN107623693B (en) * | 2017-09-30 | 2021-03-19 | 北京奇虎科技有限公司 | Domain name resolution protection method, device, system, computing equipment and storage medium |
CN113992629B (en) * | 2021-09-09 | 2023-11-07 | 新华三信息安全技术有限公司 | Address allocation method and device |
CN114422469B (en) * | 2022-01-25 | 2023-10-24 | 北京天维信通科技有限公司 | IPv4/IPv6 flow intelligent scheduling method, device and scheduling system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101801059A (en) * | 2010-03-03 | 2010-08-11 | 中兴通讯股份有限公司 | Data access method used for CPE (central processing element) and CPE |
WO2011018775A1 (en) * | 2009-08-14 | 2011-02-17 | Telefonaktiebolaget L M Ericsson (Publ) | A method and host node for multiple nat64 environments |
CN103004173A (en) * | 2012-09-29 | 2013-03-27 | 华为技术有限公司 | Address allocation method, device and system thereof |
-
2014
- 2014-07-07 CN CN201410320813.9A patent/CN104079682B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011018775A1 (en) * | 2009-08-14 | 2011-02-17 | Telefonaktiebolaget L M Ericsson (Publ) | A method and host node for multiple nat64 environments |
CN101801059A (en) * | 2010-03-03 | 2010-08-11 | 中兴通讯股份有限公司 | Data access method used for CPE (central processing element) and CPE |
CN103004173A (en) * | 2012-09-29 | 2013-03-27 | 华为技术有限公司 | Address allocation method, device and system thereof |
Also Published As
Publication number | Publication date |
---|---|
CN104079682A (en) | 2014-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104079682B (en) | A kind of address conversion method and device based on domain name system DNS | |
CN108353095B (en) | Domain name resolution method, client, edge node and domain name resolution system | |
US9680791B2 (en) | Facilitating content accessibility via different communication formats | |
CN105681491A (en) | DNS (Domain Name Resolution) acceleration method, system and device | |
US8458303B2 (en) | Utilizing a gateway for the assignment of internet protocol addresses to client devices in a shared subset | |
CN111314499B (en) | Domain name proxy method, device, equipment and readable storage medium | |
US9882866B2 (en) | Address allocating method, apparatus, and system | |
US20110302298A1 (en) | Method and system for testing multiple components of a multi-tenant, multi-domain, multi-tiered website | |
CN103095783B (en) | A kind of method and device debugging Web application | |
US20140112345A1 (en) | Service access method and device for conducting the same | |
WO2015120750A1 (en) | Dns-based ipv6 and ipv4 interworking method | |
CN109729187B (en) | Proxy communication method, system, device and storage medium | |
CN107613037B (en) | Domain name redirection method and system | |
CN110225150B (en) | Method, system and storage medium for communication between different network protocols | |
WO2017161965A1 (en) | Method, device, and system for dynamic domain name system (dns) redirection | |
CN109347997A (en) | Domain name analytic method, device, server and storage medium | |
CN108040134A (en) | A kind of method and device of DNS Transparent Proxies | |
CN105359458A (en) | Network device communication method and network device | |
CN115225606B (en) | Domain name access method and system of cross-network protocol of container cloud platform | |
CN112019641B (en) | Data transmission method and device | |
CN111147621B (en) | Method for supporting IPv6 service access of external network user | |
CN112702441B (en) | Container-based access data processing method, device, system and storage medium | |
Livingood | Considerations for transitioning content to ipv6 | |
CN104378301B (en) | A kind of data processing method and data processing equipment | |
CN106254576A (en) | A kind of message forwarding method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |