CN112291384B - Information processing method for domain name resolution and electronic equipment - Google Patents

Information processing method for domain name resolution and electronic equipment Download PDF

Info

Publication number
CN112291384B
CN112291384B CN202011172748.1A CN202011172748A CN112291384B CN 112291384 B CN112291384 B CN 112291384B CN 202011172748 A CN202011172748 A CN 202011172748A CN 112291384 B CN112291384 B CN 112291384B
Authority
CN
China
Prior art keywords
dns
request
client
dns request
dns server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011172748.1A
Other languages
Chinese (zh)
Other versions
CN112291384A (en
Inventor
公维平
姜超
罗元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Original Assignee
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Topsec Technology Co Ltd, Beijing Topsec Network Security Technology Co Ltd, Beijing Topsec Software Co Ltd filed Critical Beijing Topsec Technology Co Ltd
Priority to CN202011172748.1A priority Critical patent/CN112291384B/en
Publication of CN112291384A publication Critical patent/CN112291384A/en
Application granted granted Critical
Publication of CN112291384B publication Critical patent/CN112291384B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/255Maintenance or indexing of mapping tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/30Network architectures or network communication protocols for network security for supporting lawful interception, monitoring or retaining of communications or communication related information
    • H04L63/306Network architectures or network communication protocols for network security for supporting lawful interception, monitoring or retaining of communications or communication related information intercepting packet switched data communications, e.g. Web, Internet or IMS communications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses an information processing method for domain name resolution and electronic equipment, wherein the method is applied to the electronic equipment and comprises the following steps: intercepting a DNS request sent by a request end of electronic equipment through a first DNS server arranged on a virtual network card of the electronic equipment, wherein the virtual network card is configured by a client in the electronic equipment; acquiring the DNS request through the client so as to analyze the DNS request; and under the condition that the target IP address matched with the DNS request can be acquired, generating a response packet corresponding to the DNS request by the client, and returning the response packet to the request end. According to the method, the DNS request is intercepted through the first DNS server arranged on the virtual network card in the electronic equipment, and the interception operation is not needed by an external DNS server, so that the electronic equipment can save system resource consumption, and can also perform autonomous and flexible domain name resolution operation on the DNS request, so that the method is convenient for users to use.

Description

Information processing method for domain name resolution and electronic equipment
Technical Field
The present invention relates to the field of information processing in networks, and in particular, to an information processing method and an electronic device for domain name resolution.
Background
With the rapid development of network technology, users need to access network devices, and because the IP addresses of the network devices are inconvenient to memorize and cannot display the names and properties of address organizations, people use a domain name system (DNS, domain Name System) and map domain names and IP addresses with each other through the domain name system, so that users can accurately access network devices having IP addresses corresponding to the domain names through the domain names. However, when the DNS request of the electronic device is resolved to obtain the corresponding IP address, the resolution can only be performed through a local DNS server connected to the network of the electronic device, which increases the system resource consumption of the electronic device and makes the electronic device lack autonomy and flexibility.
Disclosure of Invention
An embodiment of the application aims to provide an information processing method for domain name resolution and electronic equipment. According to the method, the DNS request can be intercepted by arranging the first DNS server on the virtual network card, so that the electronic equipment can save system resource consumption, and domain name resolution operation can be performed autonomously and flexibly based on the DNS request, and the method is convenient for users to use.
The embodiment of the application adopts the following technical scheme: an information processing method for domain name resolution, which is applied to an electronic device, the method comprising:
intercepting a DNS request sent by a request end of electronic equipment through a first DNS server arranged on a virtual network card of the electronic equipment, wherein the virtual network card is configured by a client in the electronic equipment;
acquiring the DNS request through the client so as to analyze the DNS request;
and under the condition that the target IP address matched with the DNS request can be acquired, generating a response packet corresponding to the DNS request by the client, and returning the response packet to the request end.
Optionally, the method further comprises:
acquiring a preset communication rule set for the request end;
and returning the response packet to the request end through the client end under the condition that the DNS request sent by the request end accords with the preset communication regulation.
Optionally, the method further comprises:
and stopping responding to the DNS request or returning prompt information to the request terminal under the condition that the DNS request sent by the request terminal does not accord with the preset communication regulation.
Optionally, the obtaining, by the client, the DNS request to resolve the DNS request includes:
acquiring a target domain name from the DNS request;
and matching the target IP address corresponding to the target domain name through a second DNS server, wherein the second DNS server is associated with the client.
Optionally, the obtaining, by the client, the DNS request to resolve the DNS request further includes:
and under the condition that the target IP address is not acquired through the second DNS server, sending the DNS request to first network equipment which performs data interaction with the virtual network card so as to search for a third DNS server through the first network equipment, and analyzing the DNS request through the third DNS server.
Optionally, the method further comprises:
and adding the acquired target IP address to the storage device of the second DNS server under the condition that the target IP address is not stored in the storage device of the second DNS server.
Optionally, the intercepting, by a first DNS server set on a virtual network card of an electronic device, a DNS request sent by a request end of the electronic device includes:
and adding the IP address of the first DNS server to the virtual network card so that the first DNS server can intercept the DNS request received by the virtual network card.
Optionally, the preset communication rule includes: a blacklist and/or a whitelist is set for the DNS request.
Optionally, the electronic device has an operating system, and the operating system at least comprises an android system.
The embodiment of the application also provides the electronic equipment, which comprises a client, wherein the client is provided with a virtual network card of the electronic equipment, and the virtual network card is provided with a first DNS server;
the first DNS server is configured to intercept a DNS request sent by a request end of the electronic equipment;
the client is further configured to obtain the DNS request to resolve the DNS request; and generating a response packet corresponding to the DNS request and returning the response packet to the request end under the condition that the target IP address matched with the DNS request can be acquired.
According to the information processing method for domain name resolution, the virtual network card can be arranged on the electronic equipment, so that the DNS request is intercepted through the first DNS server arranged on the virtual network card, an external DNS server is not required to perform interception operation, the electronic equipment can save system resource consumption, autonomous and flexible domain name resolution operation can be performed on the DNS request, and convenience is brought to users.
Drawings
FIG. 1 is a flow chart of an information processing method for domain name resolution according to an embodiment of the present application;
FIG. 2 is a flow chart of one embodiment of an information processing method of an embodiment of the present application;
FIG. 3 is a flow chart of one embodiment of step S2 of FIG. 1 according to an embodiment of the present application;
FIG. 4 is a flowchart of one embodiment of an information processing method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a connection structure between an electronic device and a gateway according to an embodiment of the present application.
Detailed Description
Various aspects and features of the present application are described herein with reference to the accompanying drawings.
It should be understood that various modifications may be made to the embodiments of the application herein. Therefore, the above description should not be taken as limiting, but merely as exemplification of the embodiments. Other modifications within the scope and spirit of this application will occur to those skilled in the art.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment, given as a non-limiting example, with reference to the accompanying drawings.
It is also to be understood that, although the present application has been described with reference to some specific examples, a person skilled in the art will certainly be able to achieve many other equivalent forms of the present application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The foregoing and other aspects, features, and advantages of the present application will become more apparent in light of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application will be described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application with unnecessary or excessive detail. Therefore, specific structural and functional details disclosed herein are not intended to be limiting, but merely serve as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the word "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments as per the application.
Fig. 1 is a flowchart of an information processing method for domain name resolution according to an embodiment of the present application, which is applied to an electronic device, and the electronic device is connected to a network, as shown in fig. 1 and combined with fig. 4, and the method includes the following steps:
s1, intercepting a DNS request sent by a request end of electronic equipment through a first DNS server arranged on a virtual network card of the electronic equipment, wherein the virtual network card is configured by a client in the electronic equipment.
Specifically, the client may be installed on the electronic device, including being installed on the electronic device in a program form, and the virtual network card described above may be set by the client. In one embodiment, the network communication performed by the electronic device is implemented through a virtual network card, and a first DNS server is disposed on the virtual network card, where the first DNS server may be a virtual server, and is configured by software, and the first DNS server may intercept a DNS request received by the virtual network card. The DNS request is issued by a requesting end of the electronic device, such as by a browser of the electronic device, so as to be intercepted by the first DNS server when passing through the virtual network card. In one embodiment, the client may have VPN (Virtual Private Network ) functionality, and when a first DNS server is set on the virtual network card, the first DNS server may be set after the VPN connection is completed.
S2, acquiring the DNS request through the client so as to analyze the DNS request.
After the first DNS server intercepts the DNS request, the client acquires the DNS request and analyzes the DNS request. The DNS request at least includes a target domain name input by the user through the request end, that is, a domain name of a target device that the user desires to access, where the target domain name has a matched target IP address, and the operation of resolving the DNS request includes searching for the target IP address that the target domain name matches.
And S3, generating a response packet corresponding to the DNS request through the client and returning the response packet to the request end under the condition that the target IP address matched with the DNS request can be acquired.
Specifically, for the DNS request, the client may obtain the target IP address through the first DNS server or other DNS servers, and after obtaining the target IP address, may assemble a response packet corresponding to the DNS request, where the response packet includes the target IP address, and after receiving the request destination IP address, the request destination IP address may be used to access a corresponding network device.
Of course, if the target IP address matched with the DNS request cannot be obtained, the client will not feedback the corresponding response packet to the request end, or the feedback response packet is response information of failure response.
According to the information processing method for domain name resolution, the virtual network card can be arranged on the electronic equipment, so that the DNS request is intercepted through the first DNS server arranged on the virtual network card, an external DNS server is not required to perform interception operation, the electronic equipment can save system resource consumption, autonomous and flexible domain name resolution operation can be performed on the DNS request, and convenience is brought to users.
In one embodiment of the present application, as shown in fig. 2, the method further comprises the steps of:
s4, acquiring a preset communication rule set for the request end;
s5, returning the response packet to the request end through the client end under the condition that the DNS request sent by the request end accords with the preset communication rule.
Specifically, the preset communication rule is a rule set for the request end, and characterizes the access condition of the request end when accessing the network, that is, when the user accesses the network through the request end, the DNS request can be compared with the condition in the preset network communication rule, and when the preset communication rule is met, the client end returns a response packet to the request end. And under the condition that the preset communication regulation is not met, the corresponding response packet is not fed back to the request end, or the fed back response packet is response information of response failure.
In one embodiment, the preset communication specification includes: a blacklist and/or a whitelist is set for the DNS request. The user may set the blacklist and/or the whitelist in the client, or set the blacklist and/or the whitelist on the first network device that performs data interaction with the virtual network card, so that the client processes the DNS request based on the blacklist and/or the whitelist. In connection with fig. 4, for example, when the domain name in the DNS request is in the blacklist, the client does not feed back a response packet to the request end, or feeds back only an error message to the request end, so as to avoid the request end from accessing the network device forbidden by the blacklist. And if the domain name in the DNS request is in the white list, the client feeds back a response packet to the request end so that the request end can normally access the corresponding network equipment. Of course, the preset communication rule may be adjusted according to the actual situation and is not fixed.
Optionally, the method further comprises the steps of: and stopping responding to the DNS request or returning prompt information to the request terminal under the condition that the DNS request sent by the request terminal does not accord with the preset communication regulation.
Specifically, the DNS request does not meet the preset communication rule, and in addition to the above description that the domain name in the DNS request is considered to be in the blacklist and does not meet the preset communication rule, it may also be determined that the data of the DNS request does not meet the requirement of the preset communication rule, including a data structure, a data format, a data content, and the like. For example, if the content of the domain name in the DNS request is wrong, the response to the DNS request is stopped, and prompt information related to the error of the content of the domain name is sent to the requesting end, so that the user modifies the domain name according to the prompt information and sends the DNS request again through the requesting end.
In one embodiment of the present application, the obtaining, by the client, the DNS request to resolve the DNS request, as shown in fig. 3, includes:
s21, acquiring a target domain name from the DNS request;
s22, matching the target IP address corresponding to the target domain name through a second DNS server, wherein the second DNS server is associated with the client.
Specifically, after the client obtains the target domain name, the second DNS server associated with the client may be used to perform a matching operation on the target domain name, that is, perform an operation of matching the target IP address corresponding to the target domain name, and if mapping relationship information between the target domain name and the target IP address is stored in the second DNS server, the target IP address may be determined through the mapping relationship information.
The second DNS server may be a DNS server associated with the client, for example, a DNS server connected to the virtual network card, or a DNS server connected to the first network device that performs data interaction with the virtual network card, such as a gateway or other server used by the electronic device to connect to the network. The second DNS server can store the mapping relation information between the target domain name and the target IP address, so that the target IP address is determined through the mapping relation information, and the analysis efficiency is improved.
In one embodiment of the present application, the obtaining, by the client, the DNS request to resolve the DNS request further includes:
and under the condition that the target IP address is not acquired through the second DNS server, sending the DNS request to first network equipment which performs data interaction with the virtual network card so as to search for a third DNS server through the first network equipment, and analyzing the DNS request through the third DNS server.
In particular, the second DNS server may be a local DNS server, and storing mapping information between domain names and IP addresses in the second DNS server may not be complete. For the destination domain name entered by the user, the second DNS server may not be able to feed back the correct destination IP address, at which point the client may send a corresponding DNS request to the first network device for processing by it. The first network device performs data interaction with the virtual network card, for example, may be a gateway or other device used by the electronic device to connect to a network.
The first network device searches for a third DNS server after receiving the DNS request, where the third DNS server is different from the first DNS server and the second DNS server, and may be a root domain name server, or a primary domain name server specified by the root domain name server, so that resolution of the DNS request may be completed by the root domain name server or the primary domain name server, so as to return a corresponding target IP address.
In one embodiment of the present application, the method further comprises: and adding the acquired target IP address to the storage device of the second DNS server under the condition that the target IP address is not stored in the storage device of the second DNS server.
Specifically, the storage device of the second DNS server does not store the target IP address corresponding to the target domain name, that is, does not store the mapping relationship between the target domain name and the corresponding target IP address, and after the target IP address is obtained through the third DNS server, the obtained target IP address is added to the storage device of the second DNS server, so as to establish the mapping relationship between the target domain name and the corresponding target IP address. Therefore, if the user sends out the same DNS request again, the target IP address corresponding to the target domain name in the DNS request can be quickly and directly obtained from the local second DNS server, and a third DNS server is not required to be called, so that system resources are further saved, and the processing efficiency is improved. While the storage device of the second DNS server may be a cache or other device of the second DNS server to enable quick queries or calls.
In one embodiment of the present application, the intercepting, by a first DNS server disposed on a virtual network card of an electronic device, a DNS request sent by a request end of the electronic device includes the following steps:
and adding the IP address of the first DNS server to the virtual network card so that the first DNS server can intercept the DNS request received by the virtual network card.
Specifically, the IP address of the first DNS server is added to the virtual network card, so that the virtual network card can establish stable data interaction capability with the first DNS server based on the IP address of the first DNS server, and further all DNS requests sent to the virtual network card can be intercepted by the first DNS server, and the phenomenon that the DNS requests are lost or not found does not occur. The first DNS server is set on the virtual network card, and the first DNS server may be a virtual server that exists in a program form, so that stable data interaction with the virtual network card that also exists in a program is more facilitated.
In one embodiment of the application, the electronic device has an operating system that includes at least an android system. Of course, the operating system may be a Unix system or other operating system, which is not limited herein.
The application also provides electronic equipment, which can be mobile phones, computers and other equipment, as shown in fig. 5, wherein the electronic equipment comprises a client, a virtual network card of the electronic equipment is configured on the client, and a first DNS server is arranged on the virtual network card;
the first DNS server is configured to intercept a DNS request sent by a request end of the electronic equipment;
the client is further configured to obtain the DNS request to resolve the DNS request; and generating a response packet corresponding to the DNS request and returning the response packet to the request end under the condition that the target IP address matched with the DNS request can be acquired.
Specifically, the client may be installed on the electronic device, including being installed on the electronic device in a program form, and the virtual network card described above may be set by the client. In one embodiment, the network communication performed by the electronic device is implemented through a virtual network card, and a first DNS server is disposed on the virtual network card, where the first DNS server may be a virtual server, and is configured by software, and the first DNS server may intercept a DNS request received by the virtual network card. The DNS request is issued by a requesting end of the electronic device, such as by a browser of the electronic device, so as to be intercepted by the first DNS server when passing through the virtual network card. In one embodiment, the client may have VPN (Virtual Private Network ) functionality, and when a first DNS server is set on the virtual network card, the first DNS server may be set after the VPN connection is completed.
After the first DNS server intercepts the DNS request, the client acquires the DNS request and analyzes the DNS request. The DNS request at least includes a target domain name input by the user through the request end, that is, a domain name of a target device that the user desires to access, where the target domain name has a matched target IP address, and the operation of resolving the DNS request includes searching for the target IP address that the target domain name matches.
For the DNS request, the client may obtain the target IP address through the first DNS server or other DNS servers, and after obtaining the target IP address, may assemble a response packet corresponding to the DNS request, where the response packet includes the target IP address, and after receiving the target IP address, the request may access a corresponding network device using the target IP address.
Of course, if the target IP address matched with the DNS request cannot be obtained, the client will not feedback the corresponding response packet to the request end, or the feedback response packet is response information of failure response.
The electronic equipment can be provided with the virtual network card, so that the DNS request is intercepted through the first DNS server arranged on the virtual network card, the interception operation is not required by an external DNS server, the electronic equipment can save the system resource consumption, the autonomous and flexible domain name resolution operation can be carried out on the DNS request, and the use of a user is convenient.
In one embodiment of the present application, the client is further configured to:
acquiring a preset communication rule set for the request end;
and returning the response packet to the request end through the client end under the condition that the DNS request sent by the request end accords with the preset communication regulation.
Specifically, the preset communication rule is a rule set for the request end, and characterizes the access condition of the request end when accessing the network, that is, when the user accesses the network through the request end, the DNS request can be compared with the condition in the preset network communication rule, and when the preset communication rule is met, the client end returns a response packet to the request end. And under the condition that the preset communication regulation is not met, the corresponding response packet is not fed back to the request end, or the fed back response packet is response information of response failure.
In one embodiment, the preset communication specification includes: a blacklist and/or a whitelist is set for the DNS request. The user may set the blacklist and/or the whitelist in the client, or set the blacklist and/or the whitelist on the first network device that performs data interaction with the virtual network card, so that the client processes the DNS request based on the blacklist and/or the whitelist. In connection with fig. 4, for example, when the domain name in the DNS request is in the blacklist, the client does not feed back a response packet to the request end, or feeds back only an error message to the request end, so as to avoid the request end from accessing the network device forbidden by the blacklist. And if the domain name in the DNS request is in the white list, the client feeds back a response packet to the request end so that the request end can normally access the corresponding network equipment. Of course, the preset communication rule may be adjusted according to the actual situation and is not fixed.
In one embodiment of the present application, the client is further configured to:
and stopping responding to the DNS request or returning prompt information to the request terminal under the condition that the DNS request sent by the request terminal does not accord with the preset communication regulation.
In one embodiment of the present application, the client is further configured to:
acquiring a target domain name from the DNS request;
and matching the target IP address corresponding to the target domain name through a second DNS server, wherein the second DNS server is associated with the client.
In one embodiment of the present application, the client is further configured to:
and under the condition that the target IP address is not acquired through the second DNS server, sending the DNS request to first network equipment which performs data interaction with the virtual network card so as to search for a third DNS server through the first network equipment, and analyzing the DNS request through the third DNS server.
In one embodiment of the present application, the client is further configured to:
and adding the acquired target IP address to the storage device of the second DNS server under the condition that the target IP address is not stored in the storage device of the second DNS server.
In one embodiment of the present application, the client is further configured to:
and adding the IP address of the first DNS server to the virtual network card so that the first DNS server can intercept the DNS request received by the virtual network card.
In one embodiment of the present application, the preset communication specification includes: a blacklist and/or a whitelist is set for the DNS request.
In one embodiment of the application, the electronic device has an operating system that includes at least an android system.
The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application, the scope of which is defined by the claims. Various modifications and equivalent arrangements may be made to the present application by those skilled in the art, which modifications and equivalents are also considered to be within the scope of the present application.

Claims (9)

1. An information processing method for domain name resolution, which is applied to an electronic device, the method comprising:
intercepting a DNS request sent by a request end of electronic equipment through a first DNS server arranged on a virtual network card of the electronic equipment, wherein the virtual network card is configured by a client in the electronic equipment;
acquiring the DNS request through the client so as to analyze the DNS request;
generating a response packet corresponding to the DNS request by the client under the condition that the target IP address matched with the DNS request can be acquired, and returning the response packet to the request end; wherein,,
the obtaining, by the client, the DNS request to resolve the DNS request includes:
acquiring a target domain name from the DNS request;
and matching the target IP address corresponding to the target domain name through a second DNS server, wherein the second DNS server is associated with the client.
2. The method according to claim 1, wherein the method further comprises:
acquiring a preset communication rule set for the request end;
and returning the response packet to the request end through the client end under the condition that the DNS request sent by the request end accords with the preset communication regulation.
3. The method according to claim 2, wherein the method further comprises:
and stopping responding to the DNS request or returning prompt information to the request terminal under the condition that the DNS request sent by the request terminal does not accord with the preset communication regulation.
4. The method of claim 1, wherein the obtaining, by the client, the DNS request to resolve the DNS request further comprises:
and under the condition that the target IP address is not acquired through the second DNS server, sending the DNS request to first network equipment which performs data interaction with the virtual network card so as to search for a third DNS server through the first network equipment, and analyzing the DNS request through the third DNS server.
5. The method according to claim 4, wherein the method further comprises:
and adding the acquired target IP address to the storage device of the second DNS server under the condition that the target IP address is not stored in the storage device of the second DNS server.
6. The method of claim 1, wherein intercepting, by a first DNS server disposed on a virtual network card of an electronic device, a DNS request sent by a request end of the electronic device, includes:
and adding the IP address of the first DNS server to the virtual network card so that the first DNS server can intercept the DNS request received by the virtual network card.
7. The method of claim 2, wherein the preset communication specification comprises: a blacklist and/or a whitelist is set for the DNS request.
8. The method of claim 1, wherein the electronic device has an operating system, the operating system comprising at least an android system.
9. The electronic equipment is characterized by comprising a client, wherein a virtual network card of the electronic equipment is configured on the client, and a first DNS server is arranged on the virtual network card;
the first DNS server is configured to intercept a DNS request sent by a request end of the electronic equipment;
the client is further configured to obtain the DNS request to resolve the DNS request; generating a response packet corresponding to the DNS request and returning the response packet to the request end under the condition that the target IP address matched with the DNS request can be acquired; wherein,,
the client is further configured to:
acquiring a target domain name from the DNS request;
and matching the target IP address corresponding to the target domain name through a second DNS server, wherein the second DNS server is associated with the client.
CN202011172748.1A 2020-10-28 2020-10-28 Information processing method for domain name resolution and electronic equipment Active CN112291384B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011172748.1A CN112291384B (en) 2020-10-28 2020-10-28 Information processing method for domain name resolution and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011172748.1A CN112291384B (en) 2020-10-28 2020-10-28 Information processing method for domain name resolution and electronic equipment

Publications (2)

Publication Number Publication Date
CN112291384A CN112291384A (en) 2021-01-29
CN112291384B true CN112291384B (en) 2023-07-21

Family

ID=74373636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011172748.1A Active CN112291384B (en) 2020-10-28 2020-10-28 Information processing method for domain name resolution and electronic equipment

Country Status (1)

Country Link
CN (1) CN112291384B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979069B (en) * 2021-02-22 2024-04-09 腾讯科技(深圳)有限公司 Domain name resolution request processing method, storage medium and electronic equipment
CN112953962A (en) * 2021-03-15 2021-06-11 杭州迪普科技股份有限公司 Domain name access method and device
CN113766044A (en) * 2021-07-30 2021-12-07 广东浪潮智慧计算技术有限公司 Domain name resolution method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161664A (en) * 2015-04-15 2016-11-23 阿里巴巴集团控股有限公司 Domain name analytic method and device, data transmission method and device
CN108737327B (en) * 2017-04-14 2021-11-16 阿里巴巴集团控股有限公司 Method, device and system for intercepting malicious website and memory
CN108093098A (en) * 2018-01-31 2018-05-29 杭州迪普科技股份有限公司 A kind of domain name mapping request sending method and device

Also Published As

Publication number Publication date
CN112291384A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
CN112291384B (en) Information processing method for domain name resolution and electronic equipment
CN109587254B (en) Cloud server access method and device, cloud server and storage medium
CN110351283B (en) Data transmission method, device, equipment and storage medium
US20200169880A1 (en) Network service system and network service method
US20170237706A1 (en) Method and apparatus for setting network rule entry
CN107613037B (en) Domain name redirection method and system
CN109729187B (en) Proxy communication method, system, device and storage medium
RU2651159C1 (en) Method and device for marking unknown number
CN107124483A (en) Domain name analytic method and server
WO2020088170A1 (en) Domain name system configuration method and related apparatus
CN111885216A (en) DNS query method, device, equipment and storage medium
CN114189393A (en) Data processing method, device, equipment and storage medium
WO2023134066A1 (en) Virtual private cloud service access method, apparatus and device, and storage medium
CN111813826A (en) WHOIS query method, system and storage medium
CN114338597A (en) Network access method and device
TW201733314A (en) Method for executing request and associated server
CN115913597A (en) Method and device for determining lost host
CN113067803A (en) Resource isolation system, request processing method and request processing device
JP6484166B2 (en) Name resolution device, name resolution method, and name resolution program
CN114006915B (en) Resource request method, device, equipment and computer readable storage medium
US20230216825A1 (en) Gateway based ip address translation in communication networks
CN110572375B (en) IP address proxy method and device
KR20020044823A (en) Apparatus and Method for Providing communication service based on personal identifier in Internet network
CN114025023A (en) Source returning method, device, equipment and computer readable storage medium
US11381503B2 (en) Data packet routing method and data packet routing device

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