CN114710560A - Data processing method, system, proxy device, and terminal device - Google Patents
Data processing method, system, proxy device, and terminal device Download PDFInfo
- Publication number
- CN114710560A CN114710560A CN202210247850.6A CN202210247850A CN114710560A CN 114710560 A CN114710560 A CN 114710560A CN 202210247850 A CN202210247850 A CN 202210247850A CN 114710560 A CN114710560 A CN 114710560A
- Authority
- CN
- China
- Prior art keywords
- domain name
- terminal
- address
- name server
- network card
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本申请涉及计算机技术领域,尤其涉及一种数据处理方法、系统及代理设备、终端设备。The present application relates to the field of computer technology, and in particular, to a data processing method, system, proxy device, and terminal device.
背景技术Background technique
域名解析,是指域名到IP(Internet Protocol,网络互连协议)地址的转换过程,常由DNS服务器(即域名服务器)完成。VPN(Virtual Private Network,虚拟专网)是在公用网络中虚拟出来的私有内网专线,终端接入VPN网络后,在访问VPN内网资源时,通常是由终端中的虚拟网卡将DNS请求(即域名解析请求)发送至其配置的内网DNS服务器,由内网DNS服务器将需解析的NPV内网域名解析为内网IP地址后反馈给终端,使得终端可通过该内网IP地址访问内网资源。Domain name resolution refers to the process of converting a domain name to an IP (Internet Protocol, Internet Protocol) address, which is often completed by a DNS server (ie, a domain name server). VPN (Virtual Private Network, virtual private network) is a private intranet dedicated line virtualized in the public network. After the terminal is connected to the VPN network, when accessing the VPN intranet resources, the virtual network card in the terminal usually sends the DNS request ( Namely, the domain name resolution request) is sent to its configured intranet DNS server, and the intranet DNS server parses the NPV intranet domain name to be resolved into an intranet IP address and feeds it back to the terminal, so that the terminal can access the internal network through the intranet IP address. web resources.
但是,由于部分终端的操作系统存在限制,无法设置发送DNS请求的网卡,而终端中的物理网卡的优先级又默认高于虚拟网卡,这也就导致了针对VPN内网域名的DNS请求由物理网卡发送至其配置的公网DNS服务器进行解析,使得内网域名无法解析或被错误解析成公网IP地址,从而造成终端无法正确访问内网资源。However, due to the limitation of the operating system of some terminals, the network card for sending DNS requests cannot be set, and the priority of the physical network card in the terminal is higher than that of the virtual network card by default. The network card sends it to its configured public network DNS server for resolution, so that the intranet domain name cannot be resolved or is incorrectly resolved to a public network IP address, thus preventing the terminal from correctly accessing intranet resources.
发明内容SUMMARY OF THE INVENTION
本申请提供一种解决上述问题或至少部分地解决上述问题的数据处理方法、系统及代理设备、终端设备。The present application provides a data processing method, system, proxy device, and terminal device that solve the above problems or at least partially solve the above problems.
在本申请的一个实施例中,提供了一种数据处理方法。该方法包括:In one embodiment of the present application, a data processing method is provided. The method includes:
配置终端对应的参数,以实现在所述终端接入虚拟专网后,将所述终端发起的域名解析请求都定向至所述终端的虚拟网卡进行发出;Configuring the parameters corresponding to the terminal, so that after the terminal accesses the virtual private network, all domain name resolution requests initiated by the terminal are directed to the virtual network card of the terminal for sending;
截获所述虚拟网卡发出的所述域名解析请求;intercepting the domain name resolution request sent by the virtual network card;
根据预置所述参数与域名服务器地址的对应关系信息,将所述域名解析请求发送至相应的域名服务器。The domain name resolution request is sent to the corresponding domain name server according to the preset correspondence information between the parameter and the domain name server address.
在本申请的另一实施例中,还提供了一种数据处理方法。该方法包括:In another embodiment of the present application, a data processing method is also provided. The method includes:
建立与虚拟专网的网络连接;Establish a network connection to the virtual private network;
按照代理设备为自己配置的参数,将自身发起的域名解析请求定向至自身内的虚拟网卡;According to the parameters configured by the proxy device for itself, direct the domain name resolution request initiated by itself to the virtual network card within itself;
通过所述虚拟网卡将所述域名解析请求进行发出,以便所述代理设备截获所述域名解析请求,并根据预置所述参数与域名服务器地址的对应关系信息,将所述域名解析请求发送至相应的域名服务器。The domain name resolution request is sent through the virtual network card, so that the proxy device intercepts the domain name resolution request, and sends the domain name resolution request to the corresponding domain name server.
在本申请的又一实施例中,还提供了一种数据处理系统。该系统包括:In yet another embodiment of the present application, a data processing system is also provided. The system includes:
代理设备,用于配置终端对应的参数,以实现在所述终端设备接入虚拟专网后,将所述终端设备发起的域名解析请求都定向至所述终端设备的虚拟网卡进行发出;截获所述虚拟网卡发出的所述域名解析请求;根据预置所述参数与域名服务器地址的对应关系信息,将所述域名解析请求发送至相应的域名服务器;The proxy device is used to configure the parameters corresponding to the terminal, so as to realize that after the terminal device accesses the virtual private network, all the domain name resolution requests initiated by the terminal device are directed to the virtual network card of the terminal device for sending; the domain name resolution request sent by the virtual network card; according to the preset correspondence information between the parameter and the domain name server address, send the domain name resolution request to the corresponding domain name server;
终端设备,用于建立与虚拟专网的网络连接;按照所述代理设备为自己配置的所述参数,将自身发起的域名解析请求定向至自身内的虚拟网卡进行发出。The terminal device is used to establish a network connection with the virtual private network; according to the parameters configured by the proxy device for itself, the domain name resolution request initiated by itself is directed to the virtual network card within itself for sending.
在本申请的又一个实施例中,还提供了一种代理设备。该代理设备包括:存储器和处理器,其中,所述存储器,用于存储一个或多个计算机程序;所述处理器,与所述存储器耦合,用于执行所述存储器中存储的所述一个或多个计算机程序,以用于实现本申请第一实施例提供的所述数据处理方法中的步骤。In yet another embodiment of the present application, a proxy device is also provided. The proxy device includes: a memory and a processor, wherein the memory is used for storing one or more computer programs; the processor is coupled with the memory and is used for executing the one or more stored in the memory. A plurality of computer programs are used to implement the steps in the data processing method provided by the first embodiment of the present application.
在本申请的又一个实施例中,还提供了一种终端设备。该终端设备包括:存储器和处理器,其中,所述存储器,用于存储一个或多个计算机程序;所述处理器,与所述存储器耦合,用于执行所述存储器中存储的所述一个或多个计算机程序,以用于实现本申请第二实施例提供的所述数据处理方法中的步骤。In yet another embodiment of the present application, a terminal device is also provided. The terminal device includes: a memory and a processor, wherein the memory is used for storing one or more computer programs; the processor is coupled with the memory and is used for executing the one or more computer programs stored in the memory A plurality of computer programs are used to implement the steps in the data processing method provided by the second embodiment of the present application.
本申请各实施例提供的技术方案,代理设备可配置终端对应的参数,使得终端在接入虚拟专网后,终端发起的域名解析请求都定向至终端的虚拟网卡进行发出;进一步地,代理设备可截获终端的虚拟网卡发出的域名解析请求,并根据预置参数与域名服务器地址的对应关系信息,将域名解析请求发送至相应的域名服务器进行解析。本方案可有效避免域名被错误解析的问题,从而也就保证了域名解析的正确性,而且整个方案简单、易实现,此外还具有较强的兼容性、适用范围广。In the technical solutions provided by the embodiments of this application, the proxy device can configure the parameters corresponding to the terminal, so that after the terminal accesses the virtual private network, the domain name resolution requests initiated by the terminal are directed to the virtual network card of the terminal for sending; further, the proxy device It can intercept the domain name resolution request sent by the virtual network card of the terminal, and send the domain name resolution request to the corresponding domain name server for resolution according to the correspondence information between the preset parameters and the domain name server address. This solution can effectively avoid the problem that the domain name is erroneously resolved, thereby ensuring the correctness of the domain name resolution, and the whole solution is simple and easy to implement, and has strong compatibility and wide application range.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要利用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为现有DNS请求的一种原理性示意图;Fig. 1 is a kind of principle schematic diagram of existing DNS request;
图2为本申请一实施例提供的一种数据处理方法的流程示意图;2 is a schematic flowchart of a data processing method provided by an embodiment of the present application;
图3为本申请一实施例提供的DNS请求的原理性示意图;3 is a schematic schematic diagram of a DNS request provided by an embodiment of the present application;
图4a为本申请一实施例提供的DNS请求和DNS响应对应的数据报文格式示意图;4a is a schematic diagram of a data message format corresponding to a DNS request and a DNS response provided by an embodiment of the present application;
图4b为本申请一实施例提供的标志字段的格式示意图;4b is a schematic diagram of the format of a flag field provided by an embodiment of the application;
图5为本申请另一实施例提供的一种数据处理方法的流程示意图;5 is a schematic flowchart of a data processing method provided by another embodiment of the present application;
图6为本申请一实施例提供的一种数据处理装置的结构框图;FIG. 6 is a structural block diagram of a data processing apparatus according to an embodiment of the present application;
图7为本申请另一实施例提供的一种数据处理装置的结构框图;FIG. 7 is a structural block diagram of a data processing apparatus provided by another embodiment of the present application;
图8为本申请一实施例提供的代理设备的结构框图。FIG. 8 is a structural block diagram of a proxy device provided by an embodiment of the present application.
具体实施方式Detailed ways
在介绍本申请各实施例提供的技术方案之前,先对本申请中涉及到的一些专有名词进行说明。Before introducing the technical solutions provided by the embodiments of the present application, some proper terms involved in the present application will be explained first.
DNS(Domain Name System,域名系统)是互联网上作为域名和IP地址相互映射的分布式数据库,能够使用户直接使用便于记忆的、有意义的域名来访问互联网,而不用去记住能够被机器直接读取的IP数串。DNS通常采用“客户端/服务端”架构模式,域名到IP地址的映射通常存储在DNS服务器(域名服务器,即提供域名解析的服务器)中,通过DNS服务器中的映射确定指定域名对应的IP地址的过程,即为域名解析。上述中,域名是由一串用圆点分开一串单词或缩写组成的互联网上某台计算机或计算机组的名称,用于在数据传出时标识计算机的方位。每一个域名都对应一个唯一的IP地址。DNS (Domain Name System, Domain Name System) is a distributed database that maps domain names and IP addresses on the Internet. Read the IP string. DNS usually adopts the "client/server" architecture mode. The mapping of domain names to IP addresses is usually stored in the DNS server (domain name server, that is, the server that provides domain name resolution), and the IP address corresponding to the specified domain name is determined through the mapping in the DNS server. The process is the domain name resolution. In the above, the domain name is the name of a computer or computer group on the Internet consisting of a string of words or abbreviations separated by dots, and is used to identify the location of the computer when data is transmitted. Each domain name corresponds to a unique IP address.
DNS协议,是一个建立在UDP协议(或TCP协议)之上的应用层协议,主要负责将域名转换成机器可识别的IP地址,默认使用53号端口,一旦53号端口被阻止,则将造成无法进行域名解析,也就会致使不可使用域名访问网络。DNS protocol is an application layer protocol built on UDP protocol (or TCP protocol), which is mainly responsible for converting domain names into IP addresses that can be recognized by machines. By default,
DNS代理,用于在DNS客户端和DNS服务器之间转发DNS请求(即域名解析请求)和域名解析响应(也叫应答报文)。关于DNS代理的转发功能具体描述可参见下文相关内容。上述DNS客户端是指任何需要解析域名的设备,比如,DNS客户端可以为用户使用的终端设备,如PC(个人计算机)、智能手机、平板电脑等。The DNS proxy is used to forward DNS requests (namely, domain name resolution requests) and domain name resolution responses (also called response packets) between DNS clients and DNS servers. For a detailed description of the forwarding function of the DNS proxy, see the related content below. The above DNS client refers to any device that needs to resolve domain names, for example, the DNS client can be a terminal device used by a user, such as a PC (personal computer), a smart phone, a tablet computer, and the like.
VPN(Virtual Private Network,虚拟专用网络)属于远程访问技术,指的是依靠ISP(Internet服务提供商)和其他NSP(网络服务提供商)在公用网络中建立专用的数据通信网络。在虚拟专用网中,任一两个节点之前的连接并没有传统专网所需的端到端的物理链路,而是利用某种公众网的资源动态组成的。虚拟专用网络可以实现不同网络的组件和资源之间的相互连接,能够利用Internet或其他公共互联网络的基础设施为用户创建隧道,并提供与准用网络一样的安全和功能保障。VPN (Virtual Private Network, virtual private network) is a remote access technology, which refers to relying on ISP (Internet Service Provider) and other NSP (Network Service Provider) to establish a dedicated data communication network in the public network. In the virtual private network, the connection between any two nodes does not have the end-to-end physical link required by the traditional private network, but is dynamically formed by using the resources of a certain public network. A virtual private network can realize the interconnection between components and resources of different networks, and can use the infrastructure of the Internet or other public Internet networks to create tunnels for users, and provide the same security and functional guarantees as licensure networks.
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the solutions of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.
在本申请的说明书、权利要求书及上述附图中描述的一些流程中,包含了按照特定顺序出现的多个操作,这些操作可以不按照其在本文中出现的顺序来执行或并行执行。操作的序号如101、102等,仅仅是用于区分各个不同的操作,序号本身不代表任何的执行顺序。另外,这些流程可以包括更多或更少的操作,并且这些操作可以按顺序执行或并行执行。需要说明的是,本文中的“第一”、“第二”等描述,是用于区分不同的消息、设备、模块等,不代表先后顺序,也不限定“第一”和“第二”是不同的类型。而本申请中术语“或/和”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如:A或/和B,表示可以单独存在A,同时存在A和B,单独存在B这三种情况;本申请中字符“/”,一般表示前后关联对象是一种“或”关系。还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的商品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种商品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的商品或者系统中还存在另外的相同要素。此外,下述的各实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。Some of the processes described in the specification, claims, and above-mentioned figures of the present application contain operations that occur in a particular order, and the operations may be performed out of the order in which they are presented herein or in parallel. The sequence numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the sequence numbers themselves do not represent any execution order. Additionally, these flows may include more or fewer operations, and these operations may be performed sequentially or in parallel. It should be noted that the descriptions such as "first" and "second" in this document are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, nor do they limit "first" and "second" are different types. In this application, the term "or/and" is only an association relationship to describe the associated objects, indicating that three relationships can exist, for example: A or/and B, indicating that A can exist alone, and A and B can exist at the same time. There are three cases of B; the character "/" in this application generally indicates that the related objects before and after are an "or" relationship. It should also be noted that the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a commodity or system comprising a list of elements includes not only those elements, but also includes not explicitly listed other elements, or elements inherent to the commodity or system. Without further limitation, an element defined by the phrase "comprising a..." does not preclude the presence of additional identical elements in the article or system that includes the element. In addition, the following embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of this application.
目前,用户在通过DNS客户端访问互联网资源时,通过域名系统,可直接输入便于记忆的域名(如www.example.com),然后由网络中的DNS服务器将域名解析为正确的IP地址,之后按DNS服务器解析出来的IP地址来获取互联网资源。具体地,DNS客户端与DNS服务器的具体交互为:DNS客户端通过向DNS服务器发送携带有待解析的域名的DNS请求以获取域名对应的IP地址,DNS服务器在接收到DNS请求后,根据DNS请求的域名进行查找,有时还需向上级DNS服务器请求;DNS服务器在最终得到DNS客户端请求的域名对应的IP地址后,将对应的IP地址放在DNS响应中反馈给DNS客户端,从而DNS客户端获取此IP地址后即可向此IP地址请求网络服务。而在设置了DNS代理的情形下,DNS客户端并不直接向DNS服务器发送DNS请求,而是把DNS代理当作DNS服务器,将DNS请求发送至DNS代理,通过DNS代理和DNS服务器的交互获取对应的IP地址。使用DNS代理后,当DNS服务器的地址发生变化时,只需改变DNS代理上的配置,无需改变局域网内每个DNS客户端的配置,简化了网络管理。At present, when users access Internet resources through a DNS client, they can directly enter a domain name that is easy to remember (such as www.example.com) through the domain name system, and then the DNS server in the network resolves the domain name to the correct IP address, and then Obtain Internet resources according to the IP address resolved by the DNS server. Specifically, the specific interaction between the DNS client and the DNS server is: the DNS client obtains the IP address corresponding to the domain name by sending a DNS request carrying the domain name to be resolved to the DNS server, and the DNS server receives the DNS request according to the DNS request. After the DNS server finally obtains the IP address corresponding to the domain name requested by the DNS client, the corresponding IP address is put in the DNS response and fed back to the DNS client, so that the DNS client After the client obtains this IP address, it can request network services from this IP address. When the DNS proxy is set, the DNS client does not directly send DNS requests to the DNS server, but uses the DNS proxy as a DNS server, sends DNS requests to the DNS proxy, and obtains it through the interaction between the DNS proxy and the DNS server. the corresponding IP address. After using the DNS proxy, when the address of the DNS server changes, only the configuration on the DNS proxy needs to be changed, and there is no need to change the configuration of each DNS client in the local area network, which simplifies network management.
上述描述的域名解析过程,在DNS客户端接入VPN网络,使用VPN访问内网资源的情况下,为了保证域名正确解析,通常可以为DNS客户端中相应的虚拟网卡配置内网DNS服务器并设置虚拟网卡的优先级,使得DNS终端在访问VPN内网资源时,是先将DNS请求通过虚拟网卡发送至其配置的内网DNS服务器,由内网DNS服务器将DNS请求中需要解析的内网域名解析成为对应的内网IP地址后反馈给DNS客户端。但是,如图1所示,若接入VPN网络的部分DNS客户端,由于操作系统的限制等原因,并不允许进行网卡的优先级设置,而DNS客户端内的物理网卡的优先级又默认高于虚拟网卡,这将会导致DNS客户端需要解析的域名无论是VPN内网域名还是公网域名,都是由物理网卡将域名解析请求发送至其配置的公网DNS服务器进行解析。而公网DNS服务器中一般是不会存储有VPN内网IP地址与域名的映射关系的,因此也就无法解析出内网域名对应的内网IP地址或者将内网域名解析成公网IP地址,从而造成VPN内网域名解析失败,DNS客户端无法正常访问内网资源。现有方案在解决上述问题时,主要是通过诸如修改注册表、修改网卡跃点数等手改来修改DNS客户端的物理网卡的优先级,以此实现优先使用内网DNS服务器对针对VPN内网域名的DNS请求进行解析。不过,上述现有方案存在配置复杂等的问题,且在实际应用中,因操作系统的限制等原因仍会存在使用上述常规方法也无法修改物理网卡的优先级的问题。In the domain name resolution process described above, when the DNS client accesses the VPN network and uses the VPN to access intranet resources, in order to ensure the correct resolution of the domain name, you can usually configure the intranet DNS server for the corresponding virtual network card in the DNS client and set The priority of the virtual network card, so that when the DNS terminal accesses the VPN intranet resources, it first sends the DNS request to the internal network DNS server configured by the virtual network card, and the internal network DNS server will resolve the internal network domain name that needs to be resolved in the DNS request. After the resolution becomes the corresponding intranet IP address, it is fed back to the DNS client. However, as shown in Figure 1, if some DNS clients access the VPN network, due to operating system restrictions and other reasons, the priority setting of the network card is not allowed, and the priority of the physical network card in the DNS client is by default. Higher than the virtual network card, this will cause the domain name that the DNS client needs to resolve, whether it is the VPN intranet domain name or the public network domain name, the physical network card will send the domain name resolution request to its configured public network DNS server for resolution. The public network DNS server generally does not store the mapping relationship between the VPN intranet IP address and the domain name, so it is impossible to resolve the intranet IP address corresponding to the intranet domain name or resolve the intranet domain name to the public network IP address. , resulting in the failure of the VPN intranet domain name resolution, and the DNS client cannot normally access intranet resources. When the existing solution solves the above problems, it mainly modifies the priority of the physical network card of the DNS client through manual changes such as modifying the registry, modifying the hop number of the network card, etc., so as to realize the preferential use of the intranet DNS server for the VPN intranet domain name. DNS requests are resolved. However, the above-mentioned existing solutions have problems such as complex configuration, and in practical applications, there is still a problem that the priority of the physical network card cannot be modified by using the above-mentioned conventional method due to limitations of the operating system and other reasons.
为了解决上述问题,本申请提供了一种数据处理技术方案。在本申请提供的数据处理方案中,是由VPN客户端(即虚拟专网客户端)作DNS代理,通过VPN客户端将DNS客户端内的物理网卡及虚拟网卡对应的DNS服务器地址均配置为同一虚假地址,并针对该虚假地址设置了指向虚拟网卡的路由,且该路由在DNS客户端接入VPN网络时会被添加至DNS客户端的路由表中。通过上述对DNS客户端的配置,可使得DNS客户端向虚假地址发送DNS请求,且按照为虚假地址设置的路由,会将DNS请求均经过虚拟网卡进行处理并发出。VPN客户端可截获虚拟网卡发出的DNS请求,并根据其内预置的虚假地址与真实域名服务器地址的对应关系,将DNS请求发送至相应的域名服务器进行域名解析,使得DNS请求中的域名能够被正确解析。In order to solve the above problems, the present application provides a technical solution for data processing. In the data processing solution provided by this application, the VPN client (that is, the virtual private network client) is used as the DNS proxy, and the DNS server addresses corresponding to the physical network card and the virtual network card in the DNS client are configured as The same fake address, and a route to the virtual network card is set for the fake address, and the route will be added to the routing table of the DNS client when the DNS client accesses the VPN network. Through the above configuration of the DNS client, the DNS client can send a DNS request to a fake address, and according to the route set for the fake address, the DNS request will be processed and sent through the virtual network card. The VPN client can intercept the DNS request sent by the virtual network card, and send the DNS request to the corresponding domain name server for domain name resolution according to the corresponding relationship between the preset fake address and the real domain name server address, so that the domain name in the DNS request can be is correctly parsed.
下面对本申请各实施例提供的数据处理技术方案进行详细介绍说明。The following describes in detail the data processing technical solutions provided by the embodiments of the present application.
图2示出了本申请一实施例提供的数据处理方法的流程示意图。该数据处理方法应用于代理设备,代理设备为VPN客户端,VPN客户端可指的是面向用户提供VPN接入服务的客户端软件,比如,web客户端或APP应用等。具体实施时,VPN客户端可内置于终端内部,也可置于其他外部设备并通过各自有线或无线方式与终端连接,甚至可部分内置于终端内部、而其他部分置于其他外部设备并与终端设备连接,本实施例对VPN客户端与终端间的包含关系并不作限定,只要能够实现VPN客户端与终端间传输数据的目的即可。关于对终端的介绍说明可参见下文相关内容。如图2所示,该数据处理方法包括以下步骤:FIG. 2 shows a schematic flowchart of a data processing method provided by an embodiment of the present application. The data processing method is applied to a proxy device, where the proxy device is a VPN client, and the VPN client may refer to client software that provides VPN access services for users, such as a web client or an APP application. During specific implementation, the VPN client can be built into the terminal, or placed in other external devices and connected to the terminal through their respective wired or wireless methods, or even partially built into the terminal, while other parts are placed in other external devices and connected to the terminal For device connection, this embodiment does not limit the inclusion relationship between the VPN client and the terminal, as long as the purpose of data transmission between the VPN client and the terminal can be achieved. For the introduction to the terminal, please refer to the related content below. As shown in Figure 2, the data processing method includes the following steps:
101、配置终端对应的参数,以实现在所述终端接入虚拟专网后,将终端发起的域名解析请求都定向至所述终端的虚拟网卡进行发出;101. Configure parameters corresponding to the terminal, so that after the terminal accesses the virtual private network, all domain name resolution requests initiated by the terminal are directed to the virtual network card of the terminal for sending;
102、截获所述虚拟网卡发出的所述域名解析请求;102. Intercept the domain name resolution request sent by the virtual network card;
103、根据预置所述参数与域名服务器地址的对应关系信息,将所述域名解析请求发送至相应的域名服务器。103. Send the domain name resolution request to a corresponding domain name server according to the preset correspondence information between the parameter and the domain name server address.
上述101中,终端即为上文所述的DNS客户端,只是在不同描述场景下采用了不同的表达方式而已。终端可以为任意需要解析域名的设备,在其接入虚拟专用(即VPN网络)后可访问内网服务;其中,内网可以为一个设定的局域网,比如,企业内网、学校内网或政府单位的内网等,内网服务可包括域名解析服务和应用服务,分别由布设在内网中的内网域名服务器和内网源站服务器提供。上述VPN网络可基于但不限于SD-WAN(Software DefinedWAN,软件定义广域网)技术实现。具体实施时,终端可以是任何具有网络访问功能的电子设备,更具体地是任何能接入VPN网络并访问内网资源的电子设备,比如,终端可以为但不限于智能手机、平板电脑、笔记本电脑、台式计算机、智能穿戴设备(如智能手表、智能现实眼镜)等。In the above 101, the terminal is the DNS client described above, but different expressions are used in different description scenarios. The terminal can be any device that needs to resolve domain names, and can access the intranet service after it is connected to the virtual private network (ie VPN network); the intranet can be a set local area network, such as an enterprise intranet, a school intranet or Intranet services of government units, etc., intranet services can include domain name resolution services and application services, which are provided by the intranet domain name server and the intranet origin server deployed in the intranet respectively. The above VPN network can be implemented based on, but not limited to, SD-WAN (Software Defined WAN, software-defined wide area network) technology. In specific implementation, the terminal can be any electronic device with a network access function, more specifically any electronic device that can access the VPN network and access intranet resources, for example, the terminal can be but not limited to a smart phone, a tablet computer, a laptop Computers, desktop computers, smart wearable devices (such as smart watches, smart reality glasses), etc.
本实施例中,为了简化网络管理,在终端接入VPN网络访问内网资源时,是将VPN客户端作为代理以实现终端和DNS服务器间的数据(如DNS请求、域名解析响应)转发。不过,考虑到在实际应用中,若终端接入VPN网络后,通常为终端中的物理网卡和虚拟网卡分别配置的是公网DNS服务器、内网DNS服务器,公网DNS服务器存储的是公网IP地址与域名的映射关系,内网DNS服务器才存储有内网IP地址与域名的映射关系,为此,为了保证终端可正常访问内网资源,终端是需要通过虚拟网卡向内网DNS服务器发送DNS请求,以由内网DNS服务器将需解析的域名正确解析为相应的内网IP地址。然而,基于上文相关描述可知,在终端的操作系统存在限制等的情况下,会致使终端发送的无论是针对VPN内网域名还是公网域名的DNS请求,都是由物理网卡发送至其配置的公网DNS服务器进行解析,从而也就易造成VPN内网域名解析失败,终端无法正常访问内网资源。为了解决上述问题,参见图3所示,本实施例中的VPN客户端除了具有数据转发功能外,还具有配置终端对应参数的功能以实现在终端接入VPN网络后,将终端发起的域名解析请求都定向至终端的虚拟网卡进行发出。具体地,VPN客户端可将终端的物理网卡和虚拟网卡各自对应的域名服务器地址均配置为同一虚假地址,并设置该虚假地址对应的路由指向虚拟网卡,以此来实现终端发送的所有DNS请求的目的地址均为此虚假地址,且终端按照此虚假地址对应的路由是将DNS请求通过其内的虚拟网卡进行发出,后续VPN客户端可以通过截获终端的虚拟网卡发出的DNS请求,并将DNS请求转发至相应的DNS服务器进行解析,以此保证所需解析的域名可被正确解析。基于此,In this embodiment, in order to simplify network management, when a terminal accesses the VPN network to access intranet resources, the VPN client is used as a proxy to forward data (such as DNS requests and domain name resolution responses) between the terminal and the DNS server. However, considering that in practical applications, if the terminal is connected to the VPN network, the physical network card and virtual network card in the terminal are usually configured with a public network DNS server and an intranet DNS server, respectively, and the public network DNS server stores the public network. The mapping relationship between the IP address and the domain name is only stored in the intranet DNS server. The mapping relationship between the intranet IP address and the domain name is stored in the intranet DNS server. Therefore, in order to ensure that the terminal can access the intranet resources normally, the terminal needs to send a message to the intranet DNS server through the virtual network card. DNS request, in order to correctly resolve the domain name to be resolved to the corresponding intranet IP address by the intranet DNS server. However, based on the above descriptions, if the operating system of the terminal has restrictions, etc., the DNS request sent by the terminal, whether it is for the VPN intranet domain name or the public domain name, is sent by the physical network card to its configuration. Therefore, it is easy to cause the VPN intranet domain name resolution to fail, and the terminal cannot access intranet resources normally. In order to solve the above problem, as shown in FIG. 3 , the VPN client in this embodiment not only has the data forwarding function, but also has the function of configuring the corresponding parameters of the terminal, so as to realize the resolution of the domain name initiated by the terminal after the terminal accesses the VPN network. Requests are directed to the virtual network card of the terminal for issuance. Specifically, the VPN client can configure the domain name server addresses corresponding to the physical network card and virtual network card of the terminal to the same fake address, and set the route corresponding to the fake address to point to the virtual network card, so as to realize all DNS requests sent by the terminal. The destination addresses are all this fake address, and the terminal sends the DNS request through the virtual network card in the routing according to the fake address. The subsequent VPN client can intercept the DNS request sent by the terminal's virtual network card, and send the DNS request to the virtual network card. The request is forwarded to the corresponding DNS server for resolution, so as to ensure that the domain name to be resolved can be correctly resolved. Based on,
即,在一具体可实现的技术方案中,上述101中“配置终端对应的参数”,可包括如下步骤:That is, in a specific technical solution that can be implemented, the "configure the parameters corresponding to the terminal" in the above 101 may include the following steps:
1011、将所述终端内物理网卡和虚拟网卡对应的域名服务器地址配置为同一虚假地址;1011. Configure the domain name server addresses corresponding to the physical network card and the virtual network card in the terminal to be the same false address;
1012、为所述虚假地址设置指定路由;其中,所述指定路用于将目的地址为所述虚假地址的域名解析请求定向至所述虚拟网卡;1012. Set a designated route for the fake address; wherein, the designated route is used to direct the domain name resolution request whose destination address is the fake address to the virtual network card;
1013、在所述终端接入虚拟专网时,将所述指定路由添加至所述终端的路由表。1013. When the terminal accesses the virtual private network, add the specified route to a routing table of the terminal.
上述1011中,为终端内物理网卡和虚拟网卡各自对应的域名服务器地址配置的相同虚假地址,可以根据实际情况灵活设定,只要保证符合IP地址格式即可。比如,虚假地址可以为1.2.3.4。在配置虚假地址过程中,具体可以由管理人员手动触发完成,也可以由VPN客户端自动触发完成,此处不作限定。例如,在一具体示例中,当VPN客户端启动后,可立即调用自身内存储的相应计算机程序对终端中的物理网卡和虚拟网卡各自对应的域名服务器地址进行重新配置,以配置成为相同的虚假地址(如1.2.3.4)。In the above 1011, the same false address configured for the domain name server addresses corresponding to the physical network card and the virtual network card in the terminal can be flexibly set according to the actual situation, as long as the IP address format is ensured. For example, the fake address can be 1.2.3.4. In the process of configuring the fake address, it can be manually triggered by the administrator, or automatically triggered by the VPN client, which is not limited here. For example, in a specific example, after the VPN client is started, it can immediately call the corresponding computer program stored in itself to reconfigure the domain name server addresses corresponding to the physical network card and the virtual network card in the terminal, so as to configure the same false address (eg 1.2.3.4).
上述1012~1013中,在经由上述步骤1011在完成终端的物理网卡和虚拟网卡对应的域名服务器地址配置后,之后终端在访问网络资源时,无论是针对内网域名还是公网域名发送DNS请求,DNS请求中携带的目的地址即均为此虚假地址。此种情况下,为了使DNS请求通过虚拟网卡进行发出,可针对虚拟地址设置指向终端虚拟网卡的指定路由,并在终端接入VPN网络时修改终端的路由表以将该指定路由添加至终端的路由表中,这样,终端在发起携带有目的地址为虚假地址的DNS请求时,也就便会按照路由表中该虚拟地址对应的指定路由将DNS请求定向至终端的虚拟网卡进行发出。关于针对虚拟地址设置指向终端的虚拟网卡的指定路由的具体实现,可参见现有内容。In the above 1012 to 1013, after completing the configuration of the domain name server addresses corresponding to the physical network card and the virtual network card of the terminal through the above step 1011, when the terminal accesses network resources, whether it is for the intranet domain name or the public domain name. Send a DNS request, The destination address carried in the DNS request is the fake address. In this case, in order to send DNS requests through the virtual network card, a designated route pointing to the terminal virtual network card can be set for the virtual address, and the terminal's routing table can be modified to add the designated route to the terminal's routing table when the terminal accesses the VPN network. In the routing table, in this way, when the terminal initiates a DNS request carrying a false destination address, it will direct the DNS request to the virtual network card of the terminal according to the specified route corresponding to the virtual address in the routing table. For the specific implementation of setting the designated route to the virtual network card of the terminal for the virtual address, please refer to the existing content.
这里需补充说明的是,终端发起的DNS请求,具体可以是由终端上运行应用程序诸如浏览器产生的。DNS请求(或DNS响应)对应的数据报文格式可参见如图4a示出的格式。如图4a所示,报文是由12个字节的首部和4个长度可变的字段组成;其中,12字节中的标志字段为16比特(bit)并被划分为如图4b示出的若干个子字段。在图4b示出的各字段中,QR为1bit字段,其定义了报文是请求还是响应,在QR为0时表示请求,为1时表示响应。关于图4a和图4b中示出的数据格式中其他字段含义可参见现有内容。It should be added here that the DNS request initiated by the terminal may be specifically generated by an application program such as a browser running on the terminal. For the data packet format corresponding to the DNS request (or DNS response), reference may be made to the format shown in FIG. 4a. As shown in Figure 4a, the message is composed of a 12-byte header and 4 variable-length fields; among them, the flag field in the 12 bytes is 16 bits (bit) and is divided into Figure 4b several subfields of . Among the fields shown in Fig. 4b, the QR is a 1-bit field, which defines whether the message is a request or a response. When the QR is 0, it indicates a request, and when it is 1, it indicates a response. For the meanings of other fields in the data format shown in Figure 4a and Figure 4b, reference may be made to the existing content.
这里还需补充说明的是,在终端接入VPN网络后,并非表示终端仅只可进行内网资源访问,在一些实施例中,用户通过设置终端,是可使得接入VPN网络的终端既能够访问内网资源,同时又不影响公网资源的访问,即也就是说,终端接入VPN网络的情况下,其既可以针对内网域名发起DNS请求,也可以针对公网域名发起DNS请求,本实施例对此并不作限定。但是,经由上述所描述的VPN客户端对终端对应参数的配置后,终端发起的无论是针对内网域名还是公网域名发起的DNS请求,都是被定向至终端的虚拟网卡进行处理并发出。It should be added here that after the terminal accesses the VPN network, it does not mean that the terminal can only access resources in the intranet. In some embodiments, the user can set the terminal to enable the terminal connected to the VPN network to access both resources. Intranet resources without affecting access to public network resources, that is to say, when the terminal accesses the VPN network, it can initiate DNS requests for the intranet domain name or public domain name. The embodiment does not limit this. However, after the configuration of the corresponding parameters of the terminal by the VPN client described above, the DNS request initiated by the terminal, whether for the intranet domain name or the public domain name, is directed to the virtual network card of the terminal for processing and sending.
在终端发起的DNS请求被定向至终端的虚拟网卡后,虚拟网卡在将接收到的DNS请求发出去之前,是先会对DNS请求进行封装处理生成相应的封装数据包,然后再将所生成的封装数据包发送至终端的域名解析端口(也叫源端口)进行发送出去。上述中,对DNS请求的封装处理可以是但不限于基于UDP协议来实现的,终端的域名解析端口通常为53号端口。基于此,上述102中,VPN客户端可通过监听终端的53号端口,来监听终端的虚拟网卡是都发出DNS请求,并在监听到终端的虚拟网卡发出DNS请求的情况下,将终端的虚拟网卡发出的DNS请求进行截获。即,上述102“截获所述虚拟网卡发出的所述域名解析请求”的一种可实现技术方案为:After the DNS request initiated by the terminal is directed to the virtual network card of the terminal, before the virtual network card sends the received DNS request, it will first encapsulate the DNS request to generate a corresponding encapsulated data packet, and then convert the generated The encapsulated data packet is sent to the domain name resolution port (also called the source port) of the terminal for sending. In the above, the encapsulation processing of the DNS request may be implemented based on, but not limited to, the UDP protocol, and the domain name resolution port of the terminal is usually
1021、监听所述终端的域名解析端口,以根据监听结果确定所述虚拟网卡是否发出域名解析请求;1021. Monitor the domain name resolution port of the terminal to determine whether the virtual network card sends a domain name resolution request according to the monitoring result;
1022、在确定所述虚拟网卡发出域名解析请求时,截获所述虚拟网卡发出的所述域名解析请求。1022. When it is determined that the virtual network card sends a domain name resolution request, intercept the domain name resolution request sent by the virtual network card.
具体实施时,是根据为终端的物理网卡及虚拟网卡所配置的同一虚拟地址及域名解析端口对应的端口号,来对终端的域名解析端口进行监听,以此实现将终端的虚拟网卡发出的DNS请求进行截获。例如,承接上文示例,设虚拟地址为1.2.3.4,域名解析端口为53号端口,则VPN客户端可通过“1.2.3.4:53”来截获终端的虚拟网卡发出的DNS请求。需说明的是:由于虚拟网卡是将DNS请求进行封装处理后才发出去的,为此,这里截获到的DNS请求实质上是封装后的DNS请求,即为上述所述的封装数据包;封装数据包中含有但不限于源端口(如53号端口)、协议版本(如UDP协议)、源地址(即终端的地址)、目的地址(即虚假地址)等,有关封装数据包的具体数据格式可参见现有内容,此处不作具体赘述。In specific implementation, the domain name resolution port of the terminal is monitored according to the same virtual address and the port number corresponding to the domain name resolution port configured for the physical network card and the virtual network card of the terminal, so as to realize the DNS sent by the virtual network card of the terminal. Request to be intercepted. For example, following the example above, suppose the virtual address is 1.2.3.4 and the domain name resolution port is
参见图3所示,为保证VPN客户端可以将截获到的DNS请求转发至相应的域名服务器以进行正确解析,本实施例提供的技术方案中,VPN客户端内是预置有参数与域名服务器地址(为真实的域名服务器地址)的对应关系信息的,具体地,是预置有虚拟地址与域名服务器地址的对应关系信息,VPN客户端截获到终端的虚拟网卡发出的DNS请求后,基于自身内预置的对应关系信息即可将DNS请求转发至相应的DNS服务器进行域名解析。上述中,对应关系信息中包含有虚拟地址与至少一个域名服务器地址的对应关系以及还包含有至少一个域名服务器的优先级,VPN客户端可在根据对应关系信息中的对应关系确定出与虚拟地址对应的至少一个域名服务器地址的基础上,进一步地根据至少一个域名服务器地址的优先级,来从至少一个域名服务器中选择出一个域名服务器地址作为目标域名服务器地址,以将截获到的DNS请求发送至目标域名服务器地址对应的域名服务器进行解析。即,上述103中的对应关系信息包含虚拟地址与至少一个域名服务器地址的对应关系、至少一个域名服务器的优先级;相应地,上述103“根据预置所述参数与域名服务器地址的对应关系信息,将所述域名解析请求发送至相应的域名服务器”,可具体包括:Referring to FIG. 3, in order to ensure that the VPN client can forward the intercepted DNS request to the corresponding domain name server for correct resolution, in the technical solution provided by this embodiment, the VPN client is preset with parameters and domain name servers The corresponding relationship information of the address (which is the real domain name server address), specifically, the corresponding relationship information between the virtual address and the domain name server address is preset. After the VPN client intercepts the DNS request sent by the virtual network card of the terminal, based on its own The preset correspondence information can forward the DNS request to the corresponding DNS server for domain name resolution. In the above, the correspondence information includes the correspondence between the virtual address and the address of at least one domain name server and also includes the priority of at least one domain name server, and the VPN client can determine and the virtual address according to the correspondence in the correspondence information On the basis of the corresponding at least one domain name server address, and further according to the priority of the at least one domain name server address, select one domain name server address from the at least one domain name server as the target domain name server address, so as to send the intercepted DNS request to the domain name server corresponding to the target domain name server address for resolution. That is, the correspondence information in the above 103 includes the correspondence between the virtual address and the address of the at least one domain name server, and the priority of the at least one domain name server. , send the domain name resolution request to the corresponding domain name server", which may specifically include:
1031、基于所述对应关系,确定与所述虚拟地址对应的至少一个域名服务器地址;1031. Based on the corresponding relationship, determine at least one domain name server address corresponding to the virtual address;
1032、根据所述优先级,从所述至少一个域名服务器地址中选择出一个域名服务器地址作为目标域名服务器地址;1032. According to the priority, select one domain name server address from the at least one domain name server address as the target domain name server address;
1033、将所述域名解析请求发送至与所述目标域名服务器地址对应的域名服务器。1033. Send the domain name resolution request to a domain name server corresponding to the target domain name server address.
具体实施时,由上文与步骤101相关的内容可知,经由上述VPN客户端对终端对应参数的配置,终端发起的无论是针对内网域名还是公网域名的DNS请求,均是定向至终端的虚拟网卡进行处理并发出的,由此也就是说,VPN客户端截获的DNS请求可能是针对内网域名的DNS请求,也可能是针对公网域名的DNS请求,为此,为保证终端发送的DNS请求可被正确解析,所设置的虚拟地址对应的至少一个域名服务器地址需保证能够解析所有类型的DNS请求。一般地,内网DNS服务器中除了上文所述的存储有内网IP地址与域名的映射关系外,还存储了大部分公网IP地址与域名的映射关系,基于此,在一些实施例中,上述VPN客户端中预置的对应关系信息中的至少一个域名服务器地址对应的域名服务器类型可以全为内网DNS服务器。当然,在其他一些实施例中,至少一个域名服务器地址对应的域名服务器类型可以为部分内网DNS服务器、部分为公网DNS服务器。本实施例对至少一个域名服务器地址对应的域名服务器类型并不作具体限定,只要能够保证至少一个域名服务器地址对应的域名服务器能够正确解析出终端所述类型的DNS请求即可。不过,考虑到在终端接入VPN网络的情况下,终端多访问的是内网资源,为此,在上述至少一个域名服务器地址对应的域名服务器类型同时包含内网DNS服务器和公网DNS服务器的情况下,可令内网DNS服务器对应的域名服务器地址的优先级高于公网DNS服务器对应的域名服务器地址。During the specific implementation, it can be seen from the above content related to step 101 that through the configuration of the corresponding parameters of the terminal by the VPN client, the DNS request initiated by the terminal, whether it is for an intranet domain name or a public domain name, is directed to the terminal. It is processed and sent by the virtual network card, which means that the DNS request intercepted by the VPN client may be a DNS request for an intranet domain name or a DNS request for a public network domain name. DNS requests can be correctly parsed, and at least one domain name server address corresponding to the set virtual address must be able to resolve all types of DNS requests. Generally, in addition to storing the mapping relationship between the intranet IP address and the domain name as described above, the intranet DNS server also stores most of the mapping relationship between the public network IP address and the domain name. Based on this, in some embodiments , the domain name server type corresponding to at least one domain name server address in the preset correspondence information in the VPN client may all be intranet DNS servers. Certainly, in some other embodiments, the domain name server type corresponding to at least one domain name server address may be part of the intranet DNS server and part of the public network DNS server. This embodiment does not specifically limit the domain name server type corresponding to the at least one domain name server address, as long as it can be ensured that the domain name server corresponding to the at least one domain name server address can correctly resolve the DNS request of the type described by the terminal. However, considering that when the terminal accesses the VPN network, the terminal mostly accesses intranet resources. Therefore, the domain name server type corresponding to the above at least one domain name server address includes both the intranet DNS server and the public network DNS server. In this case, the priority of the domain name server address corresponding to the intranet DNS server can be higher than the domain name server address corresponding to the public network DNS server.
在根据至少一个域名服务器地址的优先级,从所述至少一个域名服务器地址中选择出一个域名服务器地址作为目标域名服务器地址的过程中,可以先将具有最高优先级的一个域名服务器地址,作为目标域名服务器地址。即也就是说,上述1032“根据所述优先级,从所述至少一个域名服务器地址中选择出一个域名服务器地址作为目标域名服务器地址”,具体可采用如下步骤来实现:In the process of selecting one domain name server address from the at least one domain name server address as the target domain name server address according to the priority of the at least one domain name server address, one domain name server address with the highest priority may be used as the target first. Domain name server address. That is to say, the above 1032 "according to the priority, select a domain name server address from the at least one domain name server address as the target domain name server address" can be implemented by the following steps:
10321、根据所述优先级,从所述至少一个域名服务器地址中选择出一个具有最高优先级的域名服务器地址,作为目标域名服务器地址。10321. According to the priority, select a domain name server address with the highest priority from the at least one domain name server address as the target domain name server address.
在确定出目标域名服务器地址后,如图3所示,VPN客户端也就可以将截获到的DNS请求转发至目标服务器地址对应的域名服务器进行解析。在转发的同时,VPN客户端还可记录DNS请求对应的源端口(即53号端口),以便后续接收到域名服务器反馈的DNS响应后,将DNS响应发送至终端所缓存DNS请求的源端口,从而实现通过源端口将DNS响应反馈给终端,使得终端可基于DNS响应中携带的IP地址访问相应的网络资源。After the target domain name server address is determined, as shown in Figure 3, the VPN client can also forward the intercepted DNS request to the domain name server corresponding to the target server address for resolution. While forwarding, the VPN client can also record the source port corresponding to the DNS request (ie, port 53), so that after receiving the DNS response fed back by the domain name server, it can send the DNS response to the source port of the DNS request cached by the terminal. Thus, the DNS response is fed back to the terminal through the source port, so that the terminal can access corresponding network resources based on the IP address carried in the DNS response.
在将DNS请求转发至目标域名服务器地址对应的域名服务器后,考虑到若该域名服务器中存储有相应的域名与IP地址的映射关系,一般会很快作出相应的DNS响应反馈给VPN客户端;反之,若未存储有相应的域名与IP地址的映射关系,既使VPN客户端经过长时间的等待也无法接收到相应的DNS响应,且这还会致使终端访问网络资源速率降低。为避免VPN客户端发生上述无用长时间等待,致使终端访问网络资源速率减低,本实施例中,设置了一个设定时间,VPN客户端若检测到在该设定时间内未接收到目标域名服务器地址对应的域名服务器反馈的DNS响应,便会重新根据至少一个域名服务器地址的优先级,从所述至少一个域名服务器地址中选择出一个新的域名服务器地址作为目标服务器地址,并将DNS请求重新转发至新选择出的域名服务器地址对应的域名服务器进行解析。即,本实施例提供的技术方案中,上述103还可包括如下步骤:After forwarding the DNS request to the domain name server corresponding to the target domain name server address, if the domain name server stores the mapping relationship between the corresponding domain name and the IP address, the corresponding DNS response will generally be quickly fed back to the VPN client; Conversely, if the mapping relationship between the corresponding domain name and IP address is not stored, the VPN client cannot receive the corresponding DNS response even after a long wait, and this will also reduce the rate at which the terminal accesses network resources. In order to avoid the above-mentioned useless waiting of the VPN client, which reduces the rate at which the terminal accesses network resources, in this embodiment, a set time is set. If the VPN client detects that it has not received the target domain name server within the set time In response to the DNS response fed back by the domain name server corresponding to the address, a new domain name server address will be selected from the at least one domain name server address as the target server address according to the priority of the at least one domain name server address, and the DNS request will be re-selected. Forward to the domain name server corresponding to the newly selected domain name server address for resolution. That is, in the technical solution provided by this embodiment, the above 103 may further include the following steps:
1034、检测在设定时间内是否接收到所述目标域名服务器地址对应的域名服务器反馈的域名解析响应;1034. Detect whether the domain name resolution response fed back by the domain name server corresponding to the target domain name server address is received within the set time;
1035、若未接收到所述域名解析响应,则返回执行根据所述优先级,从所述至少一个域名服务器地址中选择出一个域名服务器地址作为目标域名服务器地址的步骤;若接收到所述域名解析响应,则将所述域名解析响应发送至所述终端。1035. If the domain name resolution response is not received, return to execute the step of selecting a domain name server address from the at least one domain name server address as the target domain name server address according to the priority; if the domain name server address is received A resolution response is sent, the domain name resolution response is sent to the terminal.
具体实施时,上述设定时间可以根据实际情况灵活设定,比如,设置时间可以为1秒、3秒、4秒等,此处不作限定。若在设定时间内未接收到相应的DNS响应的情况下,可根据至少一个域名解析服务器地址的优先级,将至少一个域名解析服务器地址中的一个优先级仅低于上一个选择出的域名服务器地址的域名服务器地址作为新的目标域名解析服务器地址,并将DNS请求重新转发至该新的目标域名服务器地址对应的域名服务器进行解析。而若在设定时间内接收到可响应的DNS响应,则将DNS响应转发给终端。有关将DNS响应转发给终端的具体实现可参见上文相关内容。During specific implementation, the above-mentioned setting time may be flexibly set according to the actual situation, for example, the setting time may be 1 second, 3 seconds, 4 seconds, etc., which is not limited here. If the corresponding DNS response is not received within the set time, according to the priority of the at least one domain name resolution server address, one of the at least one domain name resolution server addresses can be prioritized only lower than the last selected domain name The domain name server address of the server address is used as the new target domain name resolution server address, and the DNS request is forwarded to the domain name server corresponding to the new target domain name server address for resolution. On the other hand, if a responsive DNS response is received within the set time, the DNS response is forwarded to the terminal. For the specific implementation of forwarding the DNS response to the terminal, please refer to the above related content.
结合所描述的与上述103相关的内容,举一示例,假设域名服务器地址1、域名服务器地址2、域名服务器地址3及域名服务器地址1,这四个域名服务器地址与虚拟地址(如1.2.3.4)具有对应关系。为方便描述,这里将上述四个域名服务器地址分别简称为地址1、地址2、地址3及地址4,且地址1、地址2、地址3及地址4的优先级依次逐渐降低。VPN客户端根据地址1、地址2、地址3及地址4的优先级,会先将截获到的DNS请求转发至具有最高优先级的地址1对应的域名解析服务器进行解析,若在设定时间内未接收到相应的DNS响应,则会重新将DNS请求转发至优先级仅低于地址1的地址2对应的域名解析服务器进行解析,以此类推,直至接收到相应的DNS响应。Combined with the described content related to the above 103, take an example, assuming that domain name server address 1, domain name server address 2, domain name server address 3 and domain name server address 1, these four domain name server addresses and virtual addresses (such as 1.2.3.4 ) have a corresponding relationship. For the convenience of description, the above-mentioned four domain name server addresses are referred to as address 1, address 2, address 3 and address 4, respectively, and the priorities of address 1, address 2, address 3 and address 4 gradually decrease in sequence. According to the priority of address 1, address 2, address 3 and address 4, the VPN client will first forward the intercepted DNS request to the domain name resolution server corresponding to address 1 with the highest priority for resolution. If the corresponding DNS response is not received, the DNS request will be re-forwarded to the domain name resolution server corresponding to address 2 whose priority is only lower than address 1 for resolution, and so on until the corresponding DNS response is received.
以上本实施例提供的技术内容,可总结为如图3示出的终端、VPN客户端及DNS服务器三者的交互过程。即,本实施例中,VPN客户端在作为DNS代理的同时,可配置终端对应的参数,使得终端发起的所有DNS请求均经过终端的虚拟网卡进行处理并发出;VPN客户端可截获终端的虚拟网卡发出的DNS请求,且在转发截获的DNS请求时,还可以决定DNS请求转发至相应的DNS服务器的优先级顺序,通过采用上述技术手段,本方案可有效避免域名被错误解析的问题。The technical content provided in the above embodiment can be summarized as the interaction process of the terminal, the VPN client and the DNS server as shown in FIG. 3 . That is, in this embodiment, the VPN client can configure parameters corresponding to the terminal while acting as a DNS proxy, so that all DNS requests initiated by the terminal are processed and sent through the virtual network card of the terminal; the VPN client can intercept the virtual network card of the terminal. The DNS request sent by the network card, and when forwarding the intercepted DNS request, it can also determine the priority order of forwarding the DNS request to the corresponding DNS server. By using the above technical means, this solution can effectively avoid the problem that the domain name is incorrectly resolved.
综上,本实施例提供的技术方案,通过配置终端对应的参数,来实现在终端接入虚拟专网后,将终端发起的域名解析请求都定向至终端的虚拟网卡进行发出;进一步地,还可截获终端的虚拟网卡发出的域名解析请求,并根据预置参数与域名服务器地址的对应关系信息,来将域名解析请求发送至相应的域名服务器。采用本方案,可有效避免域名被错误解析的问题,从而也就保证了域名解析的正确性,且整个方案简单、易实现。另外,本方案还具有较强的兼容性、适用范围广,能支持大部分平台,具体地,可支持地平台包括但不限于Windows、MacOS、Linux、iOS、Android等。To sum up, in the technical solution provided by this embodiment, after the terminal accesses the virtual private network, by configuring the parameters corresponding to the terminal, all domain name resolution requests initiated by the terminal are directed to the virtual network card of the terminal for sending; further, the The domain name resolution request sent by the virtual network card of the terminal can be intercepted, and the domain name resolution request can be sent to the corresponding domain name server according to the correspondence information between the preset parameters and the domain name server address. By adopting this scheme, the problem that the domain name is erroneously resolved can be effectively avoided, thereby ensuring the correctness of the domain name resolution, and the whole scheme is simple and easy to implement. In addition, this solution also has strong compatibility and wide application range, and can support most platforms. Specifically, the supported platforms include but are not limited to Windows, MacOS, Linux, iOS, Android, and the like.
本申请另一实施例还提供了一种数据处理方法。该数据处理方法如图5示出的流程示意图,方法的执行主体为终端设备(也即为上文所述的DNS客户端)。具体实施时,终端设备可以是任何具有网络访问功能的电子设备,更具体地是任何能接入VPN网络并访问内网资源的电子设备,比如,终端可以为但不限于智能手机、平板电脑、笔记本电脑、台式计算机、智能穿戴设备(如智能手表、智能现实眼镜)等。关于终端设备的具体介绍可参见上文相关内容。如图5所示,本实施例提供的数据处理方法包括如下步骤:Another embodiment of the present application also provides a data processing method. The data processing method is a schematic flowchart shown in FIG. 5 , and the execution subject of the method is a terminal device (that is, the DNS client described above). During specific implementation, the terminal device can be any electronic device with a network access function, more specifically, any electronic device that can access the VPN network and access intranet resources. Laptops, desktop computers, smart wearable devices (such as smart watches, smart reality glasses), etc. For the specific introduction of the terminal device, please refer to the above related content. As shown in FIG. 5 , the data processing method provided by this embodiment includes the following steps:
201、建立与虚拟专网的网络连接;201. Establish a network connection with the virtual private network;
202、按照代理设备为自己配置的参数,将自身发起的域名解析请求定向至自身内的虚拟网卡;202. Direct the domain name resolution request initiated by itself to a virtual network card within itself according to the parameters configured by the proxy device for itself;
203、通过所述虚拟网卡将所述域名解析请求进行发出,以便所述代理设备截获所述域名解析请求,并根据预置所述参数与域名服务器地址的对应关系信息,将所述域名解析请求发送至相应的域名服务器。203. Send the domain name resolution request through the virtual network card, so that the proxy device intercepts the domain name resolution request, and sends the domain name resolution request according to the preset correspondence information between the parameter and the domain name server address. sent to the appropriate domain name server.
上述201中,终端设备建立与虚拟专用(VPN)的网络连接的具体方法,可参见现有内容,此处不作具体赘述。In the above 201, the specific method for the terminal device to establish the network connection with the virtual private (VPN) can be referred to the existing content, which will not be described in detail here.
上述202中,代理设备为虚拟专网客户端(即VPN客户端),有关VPN客户端的具体介绍可参见上文相关内容。另外,有关上述202至203的具体实现也可参见上文相关内容,此处同样不再作具体赘述。In the above 202, the proxy device is a virtual private network client (ie, a VPN client). For the specific introduction of the VPN client, please refer to the above related content. In addition, for the specific implementation of the above 202 to 203, reference may also be made to the above related content, which will not be described in detail here.
进一步地,上述203中“通过所述虚拟网卡将所述域名解析请求进行发出”的一种可实现技术方案为:Further, an achievable technical solution for "sending the domain name resolution request through the virtual network card" in 203 above is:
2031、通过所述虚拟网卡对所述域名解析请求进行封装处理后进行发出。2031. Send the domain name resolution request after encapsulating the domain name resolution request through the virtual network card.
有关上述2031的具体实现可参见上文相关内容。For the specific implementation of the above 2031, please refer to the above related content.
本申请一实施例还提供了一种数据处理系统。该数据处理系统的结构如图3示出的结构。具体地,该数据处理系统包括:代理设备200和终端设备100;其中,An embodiment of the present application further provides a data processing system. The structure of the data processing system is as shown in FIG. 3 . Specifically, the data processing system includes: an
代理设备200,用于配置终端对应的参数,以实现在所述终端设备接入虚拟专网后,将所述终端设备发起的域名解析请求都定向至所述终端设备的虚拟网卡进行发出;截获所述虚拟网卡发出的所述域名解析请求;根据预置所述参数与域名服务器地址的对应关系信息,将所述域名解析请求发送至相应的域名服务器;The
终端设备100,用于建立与虚拟专网的网络连接;按照所述代理设备为自己配置的所述参数,将自身发起的域名解析请求定向至自身内的虚拟网卡进行发出。The
上述代理设备为虚拟专网客户端(即VPN客户端)The above proxy device is a virtual private network client (that is, a VPN client)
这里需要说明的是:上述实施例提供的数据处理系统可实现上述各方法实施例中描述的技术方案,上述各模块或单元具体实现的原理可参见上述相应方法实施例中的相应内容,此处不再赘述。It should be noted here that the data processing system provided by the above embodiments can implement the technical solutions described in the above method embodiments, and the specific implementation principles of the above modules or units can refer to the corresponding content in the above corresponding method embodiments, here No longer.
图6示出了本申请一实施例提供的数据处理装置的结构示意图。如图6所示,所述装置包括:配置模块31、截获模块32及发送模块33。其中,FIG. 6 shows a schematic structural diagram of a data processing apparatus provided by an embodiment of the present application. As shown in FIG. 6 , the apparatus includes: a
配置模块31,用于配置终端对应的参数,以实现在所述终端接入虚拟专网后,将所述终端发起的域名解析请求都定向至所述终端的虚拟网卡进行发出;The
截获模块32,用于截获所述虚拟网卡发出的所述域名解析请求;An
发送模块33,用于根据预置所述参数与域名服务器地址的对应关系信息,将所述域名解析请求发送至相应的域名服务器。The sending
进一步地,上述配置模块31,在用于配置终端对应的参数时,具体用于:将所述终端内物理网卡和虚拟网卡对应的域名服务器地址配置为同一虚假地址;为所述虚假地址设置指定路由;其中,所述指定路由用于将目的地址为所述虚假地址的域名解析请求定向至所述虚拟网卡;在所述终端接入虚拟专网时,将所述指定路由添加至所述终端的路由表。Further, when the
进一步地,上述对应关系信息包含所述虚假地址与至少一个域名服务器地址的对应关系、所述至少一个域名服务器地址的优先级;相应地,上述发送模块33,在用于根据预置所述参数与所述域名解析服务器地址的对应关系信息,将所述域名解析请求发送至相应的域名服务器时,具体用于:基于所述对应关系,确定与所述虚拟地址对应的至少一个域名服务器地址;根据所述优先级,从所述至少一个域名服务器地址中选择出一个域名服务器地址作为目标域名服务器地址;将所述域名解析请求发送至与所述目标域名服务器地址对应的域名服务器。Further, the above-mentioned correspondence information includes the correspondence between the false address and at least one domain name server address, and the priority of the at least one domain name server address; accordingly, the above-mentioned
进一步地,上述发送模块33,在用于根据所述优先级,从所述至少一个域名服务器地址中选择出一个域名服务器地址作为目标域名服务器地址时,具体用于:根据所述优先级,从所述至少一个域名服务器地址中选择出一个具有最高优先级的域名服务器地址,作为目标域名服务器地址。Further, when the above-mentioned
进一步地,本实施例提供的所述装置还包括:Further, the device provided in this embodiment further includes:
检测模块,用于检测在设定时间内是否接收到所述目标域名服务器地址对应的域名服务器反馈的域名解析响应;a detection module, configured to detect whether the domain name resolution response fed back by the domain name server corresponding to the target domain name server address is received within a set time;
执行发送模块,用于若未接收到所述域名解析响应,则返回执行根据所述优先级,从所述至少一个域名服务器地址中选择出一个域名服务器地址作为目标域名服务器地址的步骤;若接收到所述域名解析响应,则将所述域名解析响应发送至所述终端。Execute the sending module, for if the domain name resolution response is not received, then return to execute the step of selecting a domain name server address from the at least one domain name server address as the target domain name server address according to the priority; When the domain name resolution response is received, the domain name resolution response is sent to the terminal.
进一步地,上述终端的虚拟网卡在将所述域名解析请求发出去之前,会对所述域名解析请求进行封装处理。Further, before sending the domain name resolution request, the virtual network card of the terminal will encapsulate the domain name resolution request.
这里需要说明的是:上述实施例提供的数据处理装置可实现上述图2示出的数据处理方法实施例中描述的技术方案,上述各模块或单元具体实现的原理可参见上述图2示出的数据处理方法实施例中的相应内容,此处不再赘述。It should be noted here that the data processing apparatus provided in the above embodiments can implement the technical solutions described in the data processing method embodiments shown in FIG. 2 , and the specific implementation principles of the above modules or units can be referred to in the above-mentioned FIG. 2 . Corresponding content in the embodiments of the data processing method will not be repeated here.
图7示出了本申请另一实施例提供的数据处理装置的结构示意图。如图7所示,所述装置包括:建立模块41、定向模块42及发出模块43。其中,FIG. 7 shows a schematic structural diagram of a data processing apparatus provided by another embodiment of the present application. As shown in FIG. 7 , the apparatus includes: a establishing
建立模块41,用于建立与虚拟专网的网络连接;establishing
定向模块42,用于按照代理设备为自己配置的参数,将自身发起的域名解析请求定向至自身内的虚拟网卡;
发出模块43,用于通过所述虚拟网卡将所述域名解析请求进行发出,以便所述代理设备截获所述域名解析请求,并根据预置所述参数与域名服务器地址的对应关系信息,将所述域名解析请求发送至相应的域名服务器。The sending
进一步地,上述发出模块43,在用于通过所述虚拟网卡将所述域名解析请求进行发出时,具体用于:通过所述虚拟网卡对所述域名解析请求进行封装处理后进行发出。Further, when the sending
进一步地,上述代理设备为虚拟专网客户端。Further, the above-mentioned proxy device is a virtual private network client.
这里需要说明的是:上述实施例提供的数据处理装置可实现上述图5示出的数据处理方法实施例中描述的技术方案,上述各模块或单元具体实现的原理可参见上述图5示出的数据处理方法实施例中的相应内容,此处不再赘述。It should be noted here that the data processing apparatus provided by the above embodiments can implement the technical solutions described in the data processing method embodiments shown in FIG. Corresponding content in the embodiments of the data processing method will not be repeated here.
图8示出了本申请一实施例提供的代理设备的结构示意图。所述代理设备包括存储器51及处理器52。其中,所述存储器51用于存储一条或多条计算机指令,所述处理器52,与所述存储器51耦合,用于一条或多条计算机指令(如实现数据存储逻辑的计算机指令),以用于实现上述图2示出的数据处理方法实施例中的步骤。FIG. 8 shows a schematic structural diagram of a proxy device provided by an embodiment of the present application. The proxy device includes a
上述存储器51可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The above-mentioned
进一步,如图8所示,代理设备还包括:通信组件53、电源组件54及音频组件55等其它组件。图8中仅示意性给出部分组件,并不意味着代理设备只包括图8所示组件。Further, as shown in FIG. 8 , the proxy device further includes: a
本申请另一实施例还提供了一种终端设备,该终端设备的结构类似于图8示出的代理设备的结构示意图。具体地,所述终端设备包括包括存储器及处理器。其中,所述存储器用于存储一条或多条计算机指令;所述处理器,与所述存储器耦合,用于执行所述至少一条或多条计算机指令(如实现数据存储逻辑的计算机指令),以实现图5示出的数据处理方法中的步骤或功能。需说明的是,终端设备除了包括如图5示出的组件外,还包括图5中未示出的物理网卡、虚拟网卡等组件。Another embodiment of the present application further provides a terminal device, and the structure of the terminal device is similar to the schematic structural diagram of the proxy device shown in FIG. 8 . Specifically, the terminal device includes a memory and a processor. Wherein, the memory is used for storing one or more computer instructions; the processor, coupled with the memory, is used for executing the at least one or more computer instructions (such as computer instructions for implementing data storage logic), to Steps or functions in the data processing method shown in FIG. 5 are implemented. It should be noted that, in addition to the components shown in FIG. 5 , the terminal device also includes components such as physical network cards, virtual network cards, etc., which are not shown in FIG. 5 .
本申请还有一实施例提供一种计算机程序产品(说明书附图中无相应附图示出)。该计算机程序产品包括计算机程序或指令,当所述计算机程序或指令被处理器执行时,致使所述处理器能够实现上述各实施例提供的漫游处理方法中的步骤。Still another embodiment of the present application provides a computer program product (not shown in the accompanying drawings in the description). The computer program product includes a computer program or instructions, which, when executed by a processor, cause the processor to implement the steps in the roaming processing methods provided in the foregoing embodiments.
相应地,本申请实施例还提供一种存储有计算机程序的计算机可读存储介质,所述计算机程序被计算机执行时能够实现上述各实施例提供的漫游处理方法中步骤或功能。Correspondingly, the embodiments of the present application further provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a computer, the steps or functions of the roaming processing methods provided by the above embodiments can be implemented.
通过以上实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on this understanding, the above-mentioned technical solutions can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic A disc, an optical disc, etc., includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments or some parts of the embodiments.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be The technical solutions described in the foregoing embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the present application.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210247850.6A CN114710560B (en) | 2022-03-14 | 2022-03-14 | Data processing method, system, proxy device, and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210247850.6A CN114710560B (en) | 2022-03-14 | 2022-03-14 | Data processing method, system, proxy device, and terminal device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114710560A true CN114710560A (en) | 2022-07-05 |
CN114710560B CN114710560B (en) | 2024-11-12 |
Family
ID=82169798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210247850.6A Active CN114710560B (en) | 2022-03-14 | 2022-03-14 | Data processing method, system, proxy device, and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114710560B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115460172A (en) * | 2022-08-22 | 2022-12-09 | 曙光信息产业股份有限公司 | Device address allocation method, device, computer device, medium, and program product |
CN117715150A (en) * | 2023-05-31 | 2024-03-15 | 荣耀终端有限公司 | Network connection methods and related devices |
CN119155280A (en) * | 2024-11-08 | 2024-12-17 | 深圳竹云科技股份有限公司 | Domain name resolution method, apparatus, computer device, readable storage medium, and program product |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685583A (en) * | 2012-09-05 | 2014-03-26 | 阿里巴巴集团控股有限公司 | Method and system for domain name resolution |
CN107277025A (en) * | 2017-06-28 | 2017-10-20 | 维沃移动通信有限公司 | A kind of Secure Network Assecc method, mobile terminal and computer-readable recording medium |
CN107360270A (en) * | 2017-07-24 | 2017-11-17 | 杭州迪普科技股份有限公司 | A kind of method and device of dns resolution |
CN108093098A (en) * | 2018-01-31 | 2018-05-29 | 杭州迪普科技股份有限公司 | A kind of domain name mapping request sending method and device |
US20200092252A1 (en) * | 2018-09-19 | 2020-03-19 | Amazon Technologies, Inc. | Domain name system operations implemented using scalable virtual traffic hub |
CN111314499A (en) * | 2020-02-17 | 2020-06-19 | 深信服科技股份有限公司 | Domain name proxy method, device, equipment and readable storage medium |
CN112887444A (en) * | 2021-01-19 | 2021-06-01 | 网宿科技股份有限公司 | VPN (virtual private network) request processing method, client device and system |
CN113364781A (en) * | 2021-06-09 | 2021-09-07 | 北京华耀科技有限公司 | Request processing method and system |
-
2022
- 2022-03-14 CN CN202210247850.6A patent/CN114710560B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685583A (en) * | 2012-09-05 | 2014-03-26 | 阿里巴巴集团控股有限公司 | Method and system for domain name resolution |
CN107277025A (en) * | 2017-06-28 | 2017-10-20 | 维沃移动通信有限公司 | A kind of Secure Network Assecc method, mobile terminal and computer-readable recording medium |
CN107360270A (en) * | 2017-07-24 | 2017-11-17 | 杭州迪普科技股份有限公司 | A kind of method and device of dns resolution |
CN108093098A (en) * | 2018-01-31 | 2018-05-29 | 杭州迪普科技股份有限公司 | A kind of domain name mapping request sending method and device |
US20200092252A1 (en) * | 2018-09-19 | 2020-03-19 | Amazon Technologies, Inc. | Domain name system operations implemented using scalable virtual traffic hub |
CN111314499A (en) * | 2020-02-17 | 2020-06-19 | 深信服科技股份有限公司 | Domain name proxy method, device, equipment and readable storage medium |
CN112887444A (en) * | 2021-01-19 | 2021-06-01 | 网宿科技股份有限公司 | VPN (virtual private network) request processing method, client device and system |
CN113364781A (en) * | 2021-06-09 | 2021-09-07 | 北京华耀科技有限公司 | Request processing method and system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115460172A (en) * | 2022-08-22 | 2022-12-09 | 曙光信息产业股份有限公司 | Device address allocation method, device, computer device, medium, and program product |
CN115460172B (en) * | 2022-08-22 | 2023-12-05 | 曙光信息产业股份有限公司 | Device address allocation method, device, computer device, medium and program product |
CN117715150A (en) * | 2023-05-31 | 2024-03-15 | 荣耀终端有限公司 | Network connection methods and related devices |
CN117715150B (en) * | 2023-05-31 | 2024-11-19 | 荣耀终端有限公司 | Network connection method and related device |
CN119155280A (en) * | 2024-11-08 | 2024-12-17 | 深圳竹云科技股份有限公司 | Domain name resolution method, apparatus, computer device, readable storage medium, and program product |
Also Published As
Publication number | Publication date |
---|---|
CN114710560B (en) | 2024-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8650326B2 (en) | Smart client routing | |
US7257817B2 (en) | Virtual network with adaptive dispatcher | |
CN107948324B (en) | request transmission system, method, device and storage medium | |
CN114710560A (en) | Data processing method, system, proxy device, and terminal device | |
US8166547B2 (en) | Method, apparatus, signals, and medium for managing a transfer of data in a data network | |
CN108200165B (en) | request transmission system, method, device and storage medium | |
US9231908B2 (en) | Ensuring symmetric routing to private network | |
US10187475B2 (en) | Method and system for automatically bypassing network proxies in the presence of interdependent traffic flows | |
US20160226815A1 (en) | System and method for communicating in an ssl vpn | |
WO2022100020A1 (en) | Vulnerability testing method and apparatus | |
JP2018528679A (en) | Device and method for establishing a connection in a load balancing system | |
CN108200158B (en) | request transmission system, method, device and storage medium | |
CN113259479B (en) | Data processing method and equipment | |
US10341286B2 (en) | Methods and systems for updating domain name service (DNS) resource records | |
US12052173B2 (en) | Executing workloads across multiple cloud service providers | |
CN105577632A (en) | A secure network connection method and terminal based on network isolation | |
US11863528B1 (en) | Glue layer that abstracts dynamic endpoints to static endpoints | |
US20230031062A1 (en) | Data processing method and apparatus, related device, and storage medium | |
US7151780B1 (en) | Arrangement for automated teller machine communications based on bisync to IP conversion | |
CN112437127A (en) | Message processing method and device, load balancer and server | |
CN107995321A (en) | A kind of VPN client acts on behalf of the method and device of DNS | |
CN110545230B (en) | Method and device for forwarding VXLAN message | |
CN107911496A (en) | A kind of VPN service terminal acts on behalf of the method and device of DNS | |
CN109120556B (en) | A kind of method and system of cloud host access object storage server | |
Sarker et al. | Learning Python Network Programming |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |