CN111866198A - Link access method, system, device and computer readable storage medium - Google Patents
Link access method, system, device and computer readable storage medium Download PDFInfo
- Publication number
- CN111866198A CN111866198A CN201910362989.3A CN201910362989A CN111866198A CN 111866198 A CN111866198 A CN 111866198A CN 201910362989 A CN201910362989 A CN 201910362989A CN 111866198 A CN111866198 A CN 111866198A
- Authority
- CN
- China
- Prior art keywords
- link
- address
- original link
- original
- replaced
- 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
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000004590 computer program Methods 0.000 claims description 12
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
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
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a link access method, a system, a device and a computer storage medium, wherein the method comprises the following steps: when an access request for the replaced link in the target website is received, the original link is determined according to the replaced link, the IP address of the original link is analyzed through accessing the DNS server, the access request is forwarded to the address corresponding to the original link, the address of the replaced link is the address of the intermediate device, and the address type is the same as the address type of the target website. Because the links quoted in the target website are all addresses with the same address type as the target website, the skylight problem can be avoided. In the scheme, the intermediate device accesses the DNS server to acquire the address of the original link, so that the corresponding relation between the address of the original link and the address of the replaced link does not need to be configured in the intermediate device in advance, and the cost of configuration operation on the intermediate device can be saved.
Description
Technical Field
The present invention relates to IPv6 transition technology, and more particularly, to a link access method, system, apparatus, and computer-readable storage medium.
Background
IPv4(Internet Protocol version 4, fourth edition) is the first widely used Protocol that forms the basis of the Internet technology today. IPv4 may operate on a wide variety of underlying networks.
IPv6(Internet Protocol version 6, sixth version of the Internet Protocol) is the latest version of the Internet Protocol, and is used to replace IPv4, mainly to solve the problem of IPv4 address exhaustion.
At present, the IPv4 protocol address and the IPv6 protocol address cannot be directly intercommunicated, that is, the IPv4 address cannot be directly used to access the content corresponding to the IPv6 address, and vice versa. However, in the current network environment, although more and more users have upgraded the IP address to the IPv6 address, the number of users in IPv4 is also large, and thus, in the current situation where IPv4 and IPv6 coexist, a problem of many data accesses occurs.
The 'skylight' problem is that when a website contains links of other websites, the IP protocol of the website is the same as that of a user, but the IP protocol of the other websites contained in the website is different from that of the user, when the user visits the website, the content of the website can normally respond, but the content of the contained website responds very slowly, even part of functions cannot be used, and the like, so that a module which has no response locally appears in the whole page, and the module which cannot be displayed is similar to a 'skylight', which seriously affects the visiting and using of the website by the user.
Therefore, how to solve the skylight problem caused by the inability of the IPv4 protocol address to intercommunicate with the IPv6 protocol address is a problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a link access method, a system, a device and a computer readable storage medium, which aim to solve the skylight problem caused by the incapability of intercommunication between an IPv4 protocol address and an IPv6 protocol address.
In order to achieve the above purpose, the embodiment of the present invention provides the following technical solutions:
a link access method, comprising:
receiving an access request for the replaced link in the target website; the replaced link is a link obtained after original link in the target website is replaced, the IP address of the replaced link is the IP address of the intermediate equipment and is the same as the IP address type of the target website, and the IP address of the original link is different from the IP address type of the target website;
determining an original link corresponding to the access request according to a preset rule; the preset rule corresponds to a rule for generating a replaced link for the original link;
accessing a DNS server, and inquiring an IP address corresponding to the original link by using the DNS server;
forwarding the access data in the access request to the IP address of the original link;
And receiving an access result of the access data, and forwarding the access result to the target website.
Optionally, after querying the IP address corresponding to the original link by using the DNS server, the accessing the DNS server further includes:
and adding the corresponding relation between the original link and/or the replaced link and the IP address of the original link to a local DNS cache so as to query the IP address of the original link by utilizing the DNS cache.
Optionally, the adding the correspondence between the original link and/or the replaced link and the IP address of the original link to a local DNS cache includes:
adding the corresponding relation between the original link and the IP address of the original link to a local DNS cache;
correspondingly, before the accessing the DNS server, using the DNS server to query the IP address corresponding to the original link, the method further includes:
reading a local DNS cache, and judging whether the DNS cache stores the corresponding relation between the original link and the IP address of the original link;
if yes, inquiring an IP address corresponding to the original link in the DNS cache, accessing a DNS server, and inquiring the IP address corresponding to the original link by using the DNS server;
And if not, executing the step of accessing the DNS server and inquiring the IP address corresponding to the original link by using the DNS server.
Optionally, the adding the correspondence between the original link and/or the replaced link and the IP address of the original link to a local DNS cache includes:
adding the corresponding relation between the replaced connection corresponding to the original link and the IP address of the original connection to a local DNS cache;
correspondingly, before determining the original link corresponding to the access request according to the preset rule, the method further includes:
reading a local DNS cache, and judging whether the DNS cache stores the corresponding relation between the replaced link and the IP address of the original link;
if yes, inquiring the IP address corresponding to the replaced link in the DNS cache;
if not, executing the original link corresponding to the access request determined according to the preset rule; and accessing a DNS server, and inquiring the IP address corresponding to the original link by using the DNS server.
Optionally, the intermediate device comprises an application gateway.
Optionally, the determining, according to a preset rule, an original link corresponding to the access request includes:
And determining resource information carried after the domain name of the replaced link, wherein the resource information is the original link.
To achieve the above object, the present application also provides a link access system, including:
the access request receiving module is used for receiving an access request for the replaced link in the target website; the replaced link is a link obtained after original link in the target website is replaced, the IP address of the replaced link is the IP address of the intermediate equipment and is the same as the IP address type of the target website, and the IP address of the original link is different from the IP address type of the target website;
the original link determining module is used for determining an original link corresponding to the access request according to a preset rule; the preset rule corresponds to a rule for generating a replaced link for the original link;
the first IP address query module is used for accessing a DNS server and querying an IP address corresponding to the original link by using the DNS server;
the first forwarding module is used for forwarding the access data in the access request to the IP address of the original link;
and the second forwarding module is used for receiving the access result of the access data and forwarding the access result to the target website.
Optionally, the system further comprises:
and the DNS cache adding module is used for accessing a DNS server, and after the DNS server is used for inquiring the IP address corresponding to the original link, adding the corresponding relation between the original link and/or the replaced link and the IP address of the original link to a local DNS cache so as to inquire the IP address of the original link by using the DNS cache.
Optionally, the DNS cache adding module includes:
a first cache adding unit, configured to add, to a local DNS cache, a correspondence between the original link and the IP address of the original link after querying, by using the DNS server, the IP address corresponding to the original link;
correspondingly, the system further comprises:
the first judgment module is used for reading a local DNS cache and judging whether the DNS cache stores the corresponding relation between the original link and the IP address of the original link; if not, calling the first IP address query module;
and the second IP address query module is used for querying the IP address corresponding to the original link in the DNS cache when the corresponding relation between the original link and the IP address of the original link is stored in the DNS cache, accessing the DNS server and querying the IP address corresponding to the original link by using the DNS server.
Optionally, the DNS cache adding module includes:
a second cache adding unit, configured to add the correspondence between the original link and the IP address of the original link to a local DNS cache;
correspondingly, the system further comprises a second judging module, configured to read a local DNS cache, and judge whether the DNS cache stores the correspondence between the original link and the IP address of the original link; if not, calling the first IP address query module;
and the third IP address query module is used for querying the IP address corresponding to the original link in the DNS cache when the corresponding relation between the original link and the IP address of the original link is stored in the DNS cache.
Optionally, the intermediate device comprises an application gateway.
Optionally, the original link determining module is specifically configured to determine resource information carried after the domain name of the replaced link is determined, where the resource information is the original link.
To achieve the above object, the present application also provides a link access apparatus, including:
a memory for storing a computer program;
a processor for implementing the steps of the link access method according to any one of the preceding claims when executing said computer program.
To achieve the above object, the present application further provides a computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the link access method according to any one of the above.
Therefore, according to the link access method provided by the application, original links different from the IP address type of the target website in the target website are replaced to replaced links, the IP addresses of the replaced links are the IP addresses of the intermediate device, the IP addresses are the same as the IP address type of the target website, the access requests of users to the original links are drained to the intermediate device by the replaced links, when the intermediate device receives the access requests to the replaced links, the intermediate device does not return resources corresponding to the access requests from the intermediate device, but only realizes forwarding operation, namely the original links are determined according to the replaced links, the IP addresses of the original links are analyzed through accessing a DNS server, and the access requests are forwarded to the IP addresses corresponding to the original links. In summary, when the user accesses the target website, the links referenced in the target website are all IP addresses of the same type as the IP address of the target website, so that the skylight problem can be avoided. In the scheme, the intermediate device accesses the DNS server to acquire the IP address of the original link, so that the IP address can be acquired without configuring the corresponding relation between the replaced link and the IP address of the original link in advance in the intermediate device, and the forwarding of the access request is realized. Therefore, the cost of configuration operation on the intermediate equipment can be saved, and even if the original link changes, the IP address corresponding to the current original link can be dynamically found by inquiring the DNS server.
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, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a link access method disclosed in an embodiment of the present invention;
FIG. 2 is a flowchart of a specific link access method disclosed in an embodiment of the present invention;
FIG. 3 is a flowchart of a specific link access method disclosed in an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a link access system according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a link access apparatus according to an embodiment of the present invention.
Detailed Description
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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
The embodiment of the invention discloses a link access method, a system, a device and a computer readable storage medium, which aim to solve the skylight problem caused by the incapability of intercommunication between an IPv4 protocol address and an IPv6 protocol address.
Referring to fig. 1, a link access method provided in an embodiment of the present invention specifically includes:
s101, receiving an access request for the replaced link in the target website; the replaced link is a link obtained after original link in the target website is replaced, the IP address of the replaced link is the IP address of the intermediate device and is the same as the IP address type of the target website, and the IP address of the original link is different from the IP address type of the target website.
Specifically, if the IP address type of the link referenced in the target website is different from that of the target website, the link is replaced in the target website with a replaced link, the IP address of the replaced link being the IP address of the intermediary device and being of the same type as the IP address of the target website.
When the user wants to access the link referenced in the target website, if the link is the replaced link, the access request is guided to the intermediate device, and the intermediate device receives the access request.
S102, determining an original link corresponding to the access request according to a preset rule; the preset rule corresponds to a rule for generating a replaced link for the original link.
It should be noted that the replaced link is a link generated by the original link according to a preset rule. The specific preset rule is not limited in the scheme, as long as the replaced link can be set as the IP address of the intermediate device, the type of the IP address is the same as that of the target website, and the replaced link can be reversely deduced by using the preset rule to obtain the original link.
For example, the process of creating a new link may be:
determining an intermediate equipment IP address of the intermediate equipment and an intermediate equipment domain name corresponding to the intermediate equipment IP address;
combining the domain name of the intermediate device with the original link to obtain a new link, wherein the new link replaces the original link to obtain a replaced link; the domain name of the intermediate device is used as the domain name of the new link, and the original link is used as the resource of the domain name of the intermediate device. If the domain name of the intermediate device is a.com, the original link is b.com/c.html, and then the new link is a.com/b.com/c.html.
According to the rule, the determining of the original link corresponding to the access request according to the preset rule comprises the following steps:
And determining resource information carried after the domain name of the replaced link, wherein the resource information is the original link. All contents after the first "/" after the domain name can be used as the original link.
Since the replaced link is a link generated by the original link according to a preset rule, the replaced link can be converted into the original link according to the preset rule.
S103, accessing a DNS server, and inquiring an IP address corresponding to the original link by using the DNS server.
S104, forwarding the access data in the access request to the IP address of the original link.
In the scheme, after the intermediate device determines the original link, the intermediate device can access a Domain Name System (DNS) server to resolve the IP address of the original link, and the intermediate device forwards the access request to the IP address of the original link.
It should be noted that, the scheme is applied to the intermediate device capable of forwarding the access request, the intermediate device may specifically be an application gateway, and the intermediate device only needs to have the functions of querying the DNS server and forwarding the access request to solve the skylight problem, so the requirement on the intermediate device is low; and the intermediate equipment in the scheme can be applied to a single target website, and the problem of skylight in the single website is solved, so that the use and configuration of the intermediate equipment are simpler and more flexible.
S105, receiving the access result of the access data, and forwarding the access result to the target website.
Therefore, according to the link access method provided by the embodiment of the application, the original links different from the IP address type of the target website in the target website are replaced to be replaced links, the IP addresses of the replaced links are the IP addresses of the intermediate device, and are the same as the IP address type of the target website, the access requests of the user to the original links are drained to the intermediate device by the replaced links, when the intermediate device receives the access requests to the replaced links, the intermediate device does not return the resources corresponding to the access requests from the intermediate device, but only realizes forwarding operation, that is, the original links are determined according to the replaced links, the IP addresses of the original links are analyzed by accessing the DNS server, and the access requests are forwarded to the IP addresses corresponding to the original links. In summary, when the user accesses the target website, the links referenced in the target website are all IP addresses of the same type as the IP address of the target website, so that the skylight problem can be avoided. In the scheme, the intermediate device accesses the DNS server to acquire the IP address of the original link, so that the IP address can be acquired without configuring the corresponding relation between the replaced link and the IP address of the original link in advance in the intermediate device, and the forwarding of the access request is realized. Therefore, the cost of configuration operation on the intermediate equipment can be saved, and even if the original link changes, the IP address corresponding to the current original link can be dynamically found by inquiring the DNS server.
On the basis of the above embodiments, the present embodiment further expands and explains the technical solution. The method comprises the following specific steps:
in the above embodiment, after querying, by using the DNS server, the IP address corresponding to the original link, the accessing the DNS server further includes:
and adding the corresponding relation between the original link and/or the replaced link and the IP address of the original link to a local DNS cache so as to query the IP address of the original link by utilizing the DNS cache.
Specifically, in this solution, after the IP address of the original link is queried by using the DNS server, the corresponding relationship between the IP address and the original link and/or the replaced connection may be added to the DNS cache. For example, the corresponding relationship between the original link and the IP address of the original link, the corresponding relationship between the replaced connection and the IP address of the original link, and the corresponding relationship between the original link and the IP address of the replaced connection and the original link. When the replaced link is accessed again, the DNS server does not need to be accessed again, the IP address can be obtained directly in the DNS cache, and compared with the condition that the DNS server is accessed for analysis, the efficiency of obtaining the IP address of the original link can be improved by accessing the local cache.
A specific link access method provided in the embodiments of the present application is described below, and a link access method described below and the embodiments described above may be referred to each other.
Referring to fig. 2, a link access method provided in an embodiment of the present application specifically includes:
s201, receiving an access request for the replaced link in the target website; the replaced link is a link obtained after original link in the target website is replaced, the IP address of the replaced link is the IP address of the intermediate device and is the same as the IP address type of the target website, and the IP address of the original link is different from the IP address type of the target website.
S202, determining an original link corresponding to the access request according to a preset rule; the preset rule corresponds to a rule for generating a replaced link for the original link.
S203, reading a local DNS cache, and judging whether the DNS cache stores the corresponding relation between the original link and the IP address of the original link.
In this scheme, if the intermediate device has searched the IP address of the original link in the DNS server, the intermediate device will store the correspondence between the original link and its IP address in the local DNS cache. When the IP address of the original link needs to be determined, whether the original link has the corresponding relation with the IP address of the original link is searched from a local DNS cache.
And S204, if yes, inquiring the IP address corresponding to the original link in the DNS cache.
If the local DNS cache has the corresponding relation between the original link and the IP address thereof, the IP address of the original link can be directly determined in the local DNS cache.
S205, if not, accessing a DNS server, and inquiring the IP address corresponding to the original link by using the DNS server.
In the scheme, if the local DNS cannot inquire the IP address of the original link, the DNS server is accessed for inquiry.
S206, adding the corresponding relation between the original link and the IP address of the original link to a local DNS cache.
S207, the access data in the access request is forwarded to the IP address of the original link.
S208, receiving the access result of the access data, and forwarding the access result to the target website.
It should be noted that, the step of adding the correspondence between the original link and its IP address to the local DNS cache may be performed before or after this step, or may be performed simultaneously, that is, the execution order of S206 and S207 may be changed with each other, or performed simultaneously, and is not limited specifically herein.
Therefore, in the application, after the intermediate device queries the IP address corresponding to the original link in the DNS server, the intermediate device adds the correspondence between the original link and the IP address thereof to the local cache, so that the IP address of the original link can be obtained directly from the local cache without accessing the DNS server when the IP address of the original link is obtained next time.
A specific link access method provided in the embodiments of the present application is described below, and a link access method described below and the embodiments described above may be referred to each other.
Referring to fig. 3, a specific link access method provided in the embodiment of the present application specifically includes:
s301, receiving an access request for the replaced link in the target website; the replaced link is a link obtained after original link in the target website is replaced, the IP address of the replaced link is the IP address of the intermediate equipment and is the same as the IP address type of the target website, and the IP address of the original link is different from the IP address type of the target website;
s302, reading a local DNS cache, and judging whether the DNS cache stores the corresponding relation between the replaced link and the IP address of the original link; if so, S303 is performed, and if not, S305 is performed.
S303, inquiring the IP address corresponding to the replaced link in the DNS cache.
In the scheme, the correspondence relationship cached in the DNS cache pool is a relationship between the replaced connection and the IP address of the original link of the replaced link, that is, the correspondence relationship can directly find the IP address of the original link through the replaced connection.
S305, determining an original link corresponding to the access request according to a preset rule; the preset rule corresponds to a rule for generating a replaced link for the original link.
S306, accessing a DNS server, and inquiring the IP address corresponding to the original link by using the DNS server.
S307, adding the corresponding relation between the replaced connection corresponding to the original link and the IP address of the original connection to a local DNS cache.
After the DNS server is accessed to obtain the IP address of the original link, the corresponding relation between the replaced link corresponding to the original link and the IP address is directly added into the DNS cache for convenient searching, when the IP address is searched next time, the replaced link is not required to be converted into the original link first, and then the corresponding IP address is found, so that the step of converting the replaced link into the original link can be omitted, and the IP address can be directly found.
S308, forwarding the access data in the access request to the IP address of the original link;
s309, receiving the access result of the access data, and forwarding the access result to the target website.
It should be noted that, in this embodiment, the execution sequence of S307 is not limited as long as it is guaranteed to be executed after step S306, and it may be executed after step S308 or 309, or may be executed simultaneously with step S308 or 309.
A link access system provided in the embodiments of the present application is described below, and a link access system described below and any one of the embodiments described above may be referred to with each other.
Referring to fig. 4, a link access system provided in an embodiment of the present application specifically includes:
an access request receiving module 401, configured to receive an access request for a replaced link in a target website; the replaced link is a link obtained after original link in the target website is replaced, the IP address of the replaced link is the IP address of the intermediate equipment and is the same as the IP address type of the target website, and the IP address of the original link is different from the IP address type of the target website;
an original link determining module 402, configured to determine an original link corresponding to the access request according to a preset rule; the preset rule corresponds to a rule for generating a replaced link for the original link;
a first IP address query module 403, configured to access a DNS server, and query, by using the DNS server, an IP address corresponding to the original link;
a first forwarding module 404, configured to forward the access data in the access request to the IP address of the original link.
A second forwarding module 405, configured to receive an access result of the access data, and forward the access result to the target website.
Optionally, the system further comprises:
and the DNS cache adding module is used for accessing a DNS server, and after the DNS server is used for inquiring the IP address corresponding to the original link, adding the corresponding relation between the original link and/or the replaced link and the IP address of the original link to a local DNS cache so as to inquire the IP address of the original link by using the DNS cache.
Optionally, the DNS cache adding module includes:
a first cache adding unit, configured to add, to a local DNS cache, a correspondence between the original link and the IP address of the original link after querying, by using the DNS server, the IP address corresponding to the original link;
correspondingly, the system further comprises:
the first judgment module is used for reading a local DNS cache and judging whether the DNS cache stores the corresponding relation between the original link and the IP address of the original link; if not, calling the first IP address query module;
and the second IP address query module is used for querying the IP address corresponding to the original link in the DNS cache when the corresponding relation between the original link and the IP address of the original link is stored in the DNS cache, accessing the DNS server and querying the IP address corresponding to the original link by using the DNS server.
Optionally, the DNS cache adding module includes:
a second cache adding unit, configured to add the correspondence between the original link and the IP address of the original link to a local DNS cache;
correspondingly, the system further comprises a second judging module, configured to read a local DNS cache, and judge whether the DNS cache stores the correspondence between the original link and the IP address of the original link; if not, calling the first IP address query module;
and the third IP address query module is used for querying the IP address corresponding to the original link in the DNS cache when the corresponding relation between the original link and the IP address of the original link is stored in the DNS cache.
Optionally, the intermediate device comprises an application gateway.
Optionally, the original link determining module is specifically configured to determine resource information carried after the domain name of the replaced link is determined, where the resource information is the original link.
The link access system of this embodiment is configured to implement the aforementioned link access method, and therefore a specific implementation manner in the link access system may be found in the foregoing embodiment portions of the link access method, for example, the access request receiving module 401, the original link determining module 402, the first IP address querying module 403, the first forwarding module 404, and the second forwarding module 405 are respectively configured to implement steps S101, S102, S103, S104, and S105 in the aforementioned link access method, so that the specific implementation manner thereof may refer to descriptions of corresponding respective embodiment portions, and is not described herein again.
A link access device provided in the embodiments of the present application is described below, and a link access device described below and any one of the embodiments described above may be referred to with each other.
Referring to fig. 4, a link access apparatus provided in an embodiment of the present application specifically includes:
a memory 100 for storing a computer program;
a processor 200 for implementing the steps of any of the above-described link access methods when executing the computer program.
Specifically, the memory 100 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run.
Further, the link access apparatus in this embodiment may further include:
the input interface 300 is configured to obtain a computer program imported from the outside, store the obtained computer program in the memory 100, and further obtain various instructions and parameters transmitted by an external terminal device, and transmit the instructions and parameters to the processor 200, so that the processor 200 performs corresponding processing by using the instructions and parameters. In this embodiment, the input interface 300 may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, and the like.
An output interface 400, configured to output various data generated by the processor 200 to a terminal device connected thereto, so that other terminal devices connected to the output interface 400 can acquire various data generated by the processor 200. In this embodiment, the output interface 400 may specifically include, but is not limited to, a USB interface, a serial interface, and the like.
A communication unit 500 for establishing a remote link between the link access device and other nodes to facilitate receiving transactions and synchronizing block data.
And the keyboard 600 is used for acquiring various parameter data or instructions input by a user through real-time key cap knocking.
And the display 700 is used for displaying relevant information of the link access process in real time so that a user can know the current link access situation in time.
The mouse 800 may be used to assist a user in inputting data and to simplify the user's operation.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, may implement the steps provided by the above-described embodiments. The storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (14)
1. A link access method, comprising:
receiving an access request for the replaced link in the target website; the replaced link is a link obtained after original link in the target website is replaced, the IP address of the replaced link is the IP address of the intermediate equipment and is the same as the IP address type of the target website, and the IP address of the original link is different from the IP address type of the target website;
Determining an original link corresponding to the access request according to a preset rule; the preset rule corresponds to a rule for generating a replaced link for the original link;
accessing a DNS server, and inquiring an IP address corresponding to the original link by using the DNS server;
forwarding the access data in the access request to the IP address of the original link;
and receiving an access result of the access data, and forwarding the access result to the target website.
2. The method of claim 1, wherein the accessing the DNS server, after querying the IP address corresponding to the original link with the DNS server, further comprises:
and adding the corresponding relation between the original link and/or the replaced link and the IP address of the original link to a local DNS cache so as to query the IP address of the original link by utilizing the DNS cache.
3. The method according to claim 2, wherein the adding the correspondence between the original link and/or the replaced link and the IP address of the original link to a local DNS cache comprises:
adding the corresponding relation between the original link and the IP address of the original link to a local DNS cache;
Correspondingly, before the accessing the DNS server, using the DNS server to query the IP address corresponding to the original link, the method further includes:
reading a local DNS cache, and judging whether the DNS cache stores the corresponding relation between the original link and the IP address of the original link;
if yes, inquiring an IP address corresponding to the original link in the DNS cache;
and if not, executing the step of accessing the DNS server and inquiring the IP address corresponding to the original link by using the DNS server.
4. The method according to claim 2, wherein the adding the correspondence between the original link and/or the replaced link and the IP address of the original link to a local DNS cache comprises:
adding the corresponding relation between the replaced connection corresponding to the original link and the IP address of the original connection to a local DNS cache;
correspondingly, before determining the original link corresponding to the access request according to the preset rule, the method further includes:
reading a local DNS cache, and judging whether the DNS cache stores the corresponding relation between the replaced link and the IP address of the original link;
if yes, inquiring the IP address corresponding to the replaced link in the DNS cache;
If not, executing the original link corresponding to the access request determined according to the preset rule; and accessing a DNS server, and inquiring the IP address corresponding to the original link by using the DNS server.
5. The method of claim 1, wherein the intermediary device comprises an application gateway.
6. The method according to claim 1, wherein the determining the original link corresponding to the access request according to the preset rule comprises:
and determining resource information carried after the domain name of the replaced link, wherein the resource information is the original link.
7. A linked access system, comprising:
the access request receiving module is used for receiving an access request for the replaced link in the target website; the replaced link is a link obtained after original link in the target website is replaced, the IP address of the replaced link is the IP address of the intermediate equipment and is the same as the IP address type of the target website, and the IP address of the original link is different from the IP address type of the target website;
the original link determining module is used for determining an original link corresponding to the access request according to a preset rule; the preset rule corresponds to a rule for generating a replaced link for the original link;
The first IP address query module is used for accessing a DNS server and querying an IP address corresponding to the original link by using the DNS server;
the first forwarding module is used for forwarding the access data in the access request to the IP address of the original link;
and the second forwarding module is used for receiving the access result of the access data and forwarding the access result to the target website.
8. The system of claim 6, further comprising:
and the DNS cache adding module is used for accessing a DNS server, and after the DNS server is used for inquiring the IP address corresponding to the original link, adding the corresponding relation between the original link and/or the replaced link and the IP address of the original link to a local DNS cache so as to inquire the IP address of the original link by using the DNS cache.
9. The system of claim 8, wherein the DNS cache adding module comprises:
a first cache adding unit, configured to add, to a local DNS cache, a correspondence between the original link and the IP address of the original link after querying, by using the DNS server, the IP address corresponding to the original link;
Correspondingly, the system further comprises:
the first judgment module is used for reading a local DNS cache and judging whether the DNS cache stores the corresponding relation between the original link and the IP address of the original link; if not, calling the first IP address query module;
and the second IP address query module is used for querying the IP address corresponding to the original link in the DNS cache when the corresponding relation between the original link and the IP address of the original link is stored in the DNS cache, accessing the DNS server and querying the IP address corresponding to the original link by using the DNS server.
10. The system of claim 8, wherein the DNS cache adding module comprises:
a second cache adding unit, configured to add the correspondence between the original link and the IP address of the original link to a local DNS cache;
correspondingly, the system further comprises a second judging module, configured to read a local DNS cache, and judge whether the DNS cache stores the correspondence between the original link and the IP address of the original link; if not, calling the first IP address query module;
and the third IP address query module is used for querying the IP address corresponding to the original link in the DNS cache when the corresponding relation between the original link and the IP address of the original link is stored in the DNS cache.
11. The system of claim 7, wherein the intermediary device comprises an application gateway.
12. The system according to claim 7, wherein the original link determining module is specifically configured to determine resource information carried after the domain name of the replaced link, where the resource information is the original link.
13. A link access apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the link access method according to any one of claims 1 to 6 when executing said computer program.
14. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the link access method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910362989.3A CN111866198A (en) | 2019-04-30 | 2019-04-30 | Link access method, system, device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910362989.3A CN111866198A (en) | 2019-04-30 | 2019-04-30 | Link access method, system, device and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111866198A true CN111866198A (en) | 2020-10-30 |
Family
ID=72965668
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910362989.3A Pending CN111866198A (en) | 2019-04-30 | 2019-04-30 | Link access method, system, device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111866198A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118590871A (en) * | 2024-08-06 | 2024-09-03 | 天翼视联科技有限公司 | Data access method, device, electronic device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106790503A (en) * | 2016-12-16 | 2017-05-31 | 广东睿哲科技股份有限公司 | It is a kind of to realize the IPv4 websites without skylight using the device upgraded to IPv6 based on HTTP reverse proxys |
CN109451097A (en) * | 2019-01-02 | 2019-03-08 | 北京宏图佳都通信设备有限公司 | IPv4/IPv6 address conversion system |
CN109543121A (en) * | 2018-11-09 | 2019-03-29 | 深圳万物云联科技有限公司 | A kind of exterior chain url resource transfer method and device |
-
2019
- 2019-04-30 CN CN201910362989.3A patent/CN111866198A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106790503A (en) * | 2016-12-16 | 2017-05-31 | 广东睿哲科技股份有限公司 | It is a kind of to realize the IPv4 websites without skylight using the device upgraded to IPv6 based on HTTP reverse proxys |
CN109543121A (en) * | 2018-11-09 | 2019-03-29 | 深圳万物云联科技有限公司 | A kind of exterior chain url resource transfer method and device |
CN109451097A (en) * | 2019-01-02 | 2019-03-08 | 北京宏图佳都通信设备有限公司 | IPv4/IPv6 address conversion system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118590871A (en) * | 2024-08-06 | 2024-09-03 | 天翼视联科技有限公司 | Data access method, device, electronic device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104202360B (en) | The method of accessed web page, device and router | |
WO2017114206A1 (en) | Method and device for processing short link, and short link server | |
CN101355565B (en) | Method and server for providing page service for various browsers | |
CN107154963B (en) | Request processing method and device and electronic equipment | |
CN109639748B (en) | Cache updating method, device and system of DNS (Domain name Server) and domain name system | |
CN109729187B (en) | Proxy communication method, system, device and storage medium | |
CN103281409A (en) | Domain name resolution method of mobile internet and DNS server based on TCP protocol | |
US20170289243A1 (en) | Domain name resolution method and electronic device | |
WO2017166524A1 (en) | Domain name parsing method and apparatus | |
WO2020088170A1 (en) | Domain name system configuration method and related apparatus | |
CN103368977A (en) | Network connection method and terminal equipment | |
CN111586201A (en) | Domain name resolution system, method, device and storage medium | |
US20230216825A1 (en) | Gateway based ip address translation in communication networks | |
CN102867056A (en) | Method and system for searching keyword | |
US8761046B2 (en) | Communication system and method | |
CN105279156A (en) | Network information communication method and network information browsing device | |
CN111866198A (en) | Link access method, system, device and computer readable storage medium | |
CN104836864A (en) | Domain name access error correction method and device | |
JP6484166B2 (en) | Name resolution device, name resolution method, and name resolution program | |
KR101524733B1 (en) | A mobile terminal for connecting to website through ip network and a method for reducing connection time to the website | |
KR100818200B1 (en) | The Method and System of Connecting Internet Using Keyword Based on DNS | |
JP4757063B2 (en) | Cache server device, cache control method, and program for cache server device | |
JP2007214671A (en) | Client device and program | |
CN110855782B (en) | Service calling system, method, electronic equipment and readable storage medium | |
KR102093166B1 (en) | A method for reducing connection time to website and an apparatus for the method |
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: 20201030 |