CN114189494B - Domain name resolution method, DNS server and readable storage medium - Google Patents

Domain name resolution method, DNS server and readable storage medium Download PDF

Info

Publication number
CN114189494B
CN114189494B CN202111540395.0A CN202111540395A CN114189494B CN 114189494 B CN114189494 B CN 114189494B CN 202111540395 A CN202111540395 A CN 202111540395A CN 114189494 B CN114189494 B CN 114189494B
Authority
CN
China
Prior art keywords
domain name
server
intranet
internet
subdomain
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
CN202111540395.0A
Other languages
Chinese (zh)
Other versions
CN114189494A (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.)
Yamu Technology Co ltd
Original Assignee
Yamu Technology 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 Yamu Technology Co ltd filed Critical Yamu Technology Co ltd
Priority to CN202111540395.0A priority Critical patent/CN114189494B/en
Publication of CN114189494A publication Critical patent/CN114189494A/en
Application granted granted Critical
Publication of CN114189494B publication Critical patent/CN114189494B/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/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to the field of network communication technologies, and in particular, to a domain name resolution method, a DNS server, and a computer readable storage medium under an intranet-internet architecture. The domain name resolution method provided by the invention comprises the following steps: step S1, receiving a domain name resolution request of a target domain name; step S2, forwarding the domain name resolution request to an intranet server, receiving a response result sent by the intranet server, returning the response result if the response result is a resolution result corresponding to the target domain name, and performing step S3 if the response result is that the subdomain name does not exist; and step S3, forwarding the domain name resolution request to an Internet server, and receiving and returning a response result of the Internet server. The domain name resolution method can improve an intranet/internet forwarding mechanism, and solves the problem of conflict between an intranet domain name and an internet domain name by acquiring a correct resolution result through multiple recursions.

Description

Domain name resolution method, DNS server and readable storage medium
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a domain name resolution method, a DNS server, and a computer readable storage medium under an intranet-internet architecture.
Background
In a medium-sized and large-sized enterprise, in order to ensure the high efficiency and the safety of network data transmission, network construction is generally carried out through an internal local area network, and an intranet domain name authoritative server is deployed in the intranet to realize the intranet domain name of the enterprise so as to reduce the complexity of accessing an application system by the intranet and improve the flexibility of the intranet domain name deployment. The general architecture of the intranet DNS is as follows:
after receiving the domain name resolution request, the intranet DNS first judges whether the domain name is an intranet domain name or an internet domain name, forwards the intranet domain name to an intranet authority server to obtain a resolution result, and forwards the internet domain name to the internet to recursively obtain the resolution result from the internet authority. Under the current technical conditions, the intranet domain name and the internet domain name space are strictly inconsistent, so that the conflict of domain name access is prevented.
For example, for an application deployed in an intranet, when both intranet access and internet access need to be satisfied, an intranet domain name and an internet domain name need to be provided separately. Specifically, if the application OA is deployed in the enterprise, when the application OA is accessed through the enterprise intranet, the intranet domain name OA. And when accessing the application OA via the internet, the internet domain name OA. The intranet and the internet access the same application through different domain names, so that the memory is inconvenient and confusing in actual operation, which causes great inconvenience to users.
In the prior art, in order to enable a user to access the same application/network using an intranet and the internet, the original internet domain name test.com may be defined in the intranet server without performing domain name distinction, and then the subdomain name (such as oa.test.com) corresponding to the internet domain name test.com may be directly resolved through the intranet. However, in this manner, since the intranet authoritative server takes over the resolution of the internet domain name test.com, not only all intranet sub-domains but also all internet sub-domains need to be configured in the intranet authoritative server. With the expansion of the network scale and the increase of the application quantity, the number of subdomain names is increased, the change frequency is frequent, a great burden is brought to the DNS of the enterprise, and the maintenance work is very complicated and difficult.
Disclosure of Invention
In order to solve the problems, the invention provides a domain name resolution method, a DNS server and a computer readable storage medium under an intranet-Internet architecture, which can improve an intranet/Internet forwarding mechanism, acquire a correct resolution result through multiple recursions and solve the problem of conflict between an intranet domain name and an Internet domain name.
The domain name resolution method under the intranet-Internet architecture provided by the technical scheme of the invention comprises the following steps:
step S1, receiving a domain name resolution request of a target domain name;
step S2, forwarding the domain name resolution request to an intranet server, receiving a response result sent by the intranet server, returning the response result if the response result is a resolution result corresponding to the target domain name, and performing step S3 if the response result is that the subdomain name does not exist;
and step S3, forwarding the domain name resolution request to an Internet server, and receiving and returning a response result of the Internet server.
According to the technical scheme of the invention, the domain name resolution request of the target domain name is preferentially forwarded to the intranet server for resolution, and then the response result returned by the intranet server is judged, if the response result is the resolution result corresponding to the target domain name, namely, the subdomain name is defined in the intranet server, the intranet server can directly perform domain name resolution on the target domain name; if the response result is that the subdomain name does not exist, namely the subdomain name is not defined in the intranet server, forwarding the domain name resolution request to the internet server for resolution. Therefore, the same application or network does not need to distinguish the intranet domain name and the internet domain name, only needs to set one domain name, and the analysis result can be obtained by carrying out intranet and internet recursion analysis on the received target domain name. Moreover, the corresponding subdomain names do not need to be subjected to double deployment between the intranet server and the Internet server, so that the load of the intranet server can be reduced.
In the technical scheme of the invention, the domain name resolution method further comprises the following steps:
and S4, adding a route cache entry of the subdomain name corresponding to the target domain name, and associating and storing the subdomain name and the Internet server by the route cache entry.
Through the steps, the analysis path of the sub domain name corresponding to the target domain name can be recorded, so that the sub domain name can be known whether to be defined in the intranet server or the internet server.
Preferably, in the technical solution of the present invention, the domain name resolution method further includes:
step S11, receiving a domain name resolution request of a target domain name, judging whether a subdomain name corresponding to the target domain name is associated with an Internet server by inquiring a route cache entry, if not, performing step S2, and if so, performing step S3.
According to the technical scheme of the invention, the analysis path before the subdomain name corresponding to the route cache entry can be directly judged through the route cache entry, and whether the subdomain name is defined in an intranet server or an internet server can be directly known. Therefore, the resolution request of the target domain name can be directly forwarded to the corresponding intranet server or the internet server, and the process of carrying out domain name resolution on the intranet by the subdomain names defined in the internet server is omitted, so that the overall domain name resolution efficiency is improved.
Further, in the technical scheme of the present invention, the domain name resolution method further includes:
step S41, judging whether the answer result of the sub domain name does not exist is the first answer result of the intranet server to the sub domain name, if yes, proceeding to step S4.
According to the technical scheme of the invention, only when the response result which is sent by the intranet server and does not exist about the subdomain name of a certain subdomain name is received for the first time, the subdomain name and the Internet server are associated and cached in the route cache entry, so that a correct path can be directly obtained when the subdomain name is resolved again, and the cache resource waste caused by repeated caching of the route cache entry of the same subdomain name can be avoided.
In the technical scheme of the invention, the routing cache entries of the subdomain names in the domain name resolution method are updated automatically/manually. The definition and analysis path of the sub domain name is not constant, and the accuracy of the cached route cache entry can be ensured through automatic/manual updating.
Preferably, in the technical scheme of the present invention, a refresh time is set for a route cache entry of a sub-domain name in the domain name resolution method, and if the cache time of the route cache entry of the sub-domain name exceeds the refresh time, the route cache entry of the sub-domain name is updated or deleted. Through the steps, definition and analysis paths of the subdomains can be updated timely, accuracy and timeliness of cached route cache entries are guaranteed, and the unusually used subdomain name route cache entries can be cleared timely, so that excessive cache space is avoided.
Preferably, in the domain name resolution method provided by the technical scheme of the present invention, when the intranet server updates the authority of the sub domain name, the route cache entry of the sub domain name is updated or deleted. When the intranet server updates the sub domain name authorization, the sub domain name defined in the intranet server can be correspondingly subjected to addition and deletion modification, and meanwhile, the route cache entry corresponding to the sub domain name is updated or deleted, so that the accuracy and timeliness of the cached route cache entry can be improved.
In the technical scheme of the invention, the intranet server in the domain name resolution method is an intranet authoritative server, and the internet server is an internet authoritative server. The configuration information of the domain name in the network can be learned by an authoritative DNS server.
In the technical scheme of the present invention, there is also provided a DNS server under an intranet-internet architecture, where the DNS server includes a memory and one or more processors, and when a program or an instruction in the memory is executed by the processor, the DNS server can perform the following steps when performing domain name resolution:
step S1, receiving a domain name resolution request of a target domain name;
step S2, forwarding the domain name resolution request to an intranet server, receiving a response result sent by the intranet server, returning the response result if the response result is a resolution result corresponding to the target domain name, and performing step S3 if the response result is that the subdomain name does not exist;
and step S3, forwarding the domain name resolution request to an Internet server, and receiving and returning a response result of the Internet server.
According to the technical scheme of the invention, the DNS server under the intranet-Internet architecture can carry out intranet and Internet recursion analysis on the received target domain name in sequence, and correct analysis results are obtained through multiple recursions, so that the problem of conflict between the intranet domain name and the Internet domain name is solved.
In the technical scheme of the invention, a computer readable storage medium is also provided, the computer readable storage medium is stored with a computer program, and the computer program realizes the steps of the domain name resolution method under the intranet-internet architecture when being executed by a processor.
Drawings
Fig. 1 is a flowchart of a domain name resolution method provided in a first embodiment of the present invention;
FIG. 2 is a flow chart of a domain name resolution method provided in a second embodiment of the present invention;
fig. 3 is a flowchart of a domain name resolution method provided in a third embodiment of the present invention;
fig. 4 is a schematic diagram of a DNS server provided in a fourth embodiment of the present invention.
Reference numerals: 1-DNS server, 11-memory, 12-processor.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art without making any inventive effort, are intended to be within the scope of the present invention.
The intranet is a local area network, which refers to a group of computers interconnected by a plurality of computers in a certain area, and is an internal network system with functions of file transmission, data transmission, resource sharing and the like. The medium-sized and large-sized enterprises can realize the communication network facing the service inside the enterprises by establishing the enterprise intranet, and the enterprise intranet has relatively small scale and higher data transmission rate, safety and confidentiality. In general, an intranet and an external internet are configured with different domain names for the same application/network, and the intranet and the internet can respectively analyze domain names corresponding to the sub-domain names configured by the intranet and the internet.
[ first embodiment ]
As shown in fig. 1, in a first embodiment of the present invention, there is provided a domain name resolution method under an intranet-internet architecture, including:
step S1, receiving a domain name resolution request of a target domain name;
step S2, forwarding the domain name resolution request to an intranet server, receiving a response result sent by the intranet server, returning the response result if the response result is a resolution result corresponding to the target domain name, and performing step S3 if the response result is that the subdomain name does not exist;
and step S3, forwarding the domain name resolution request to an Internet server, and receiving and returning a response result of the Internet server.
Taking the subdomain name oa.test.com configured with intranet address 192.168.1.100 and internet address 1.1.1.1, and subdomain name hr.test.com configured with intranet address 192.168.1.101 only and subdomain name mail.test.com configured with internet address 2.2.2.2 only as an example.
When the target domain name is hr.test.com, firstly, sending an analysis request of the target domain name hr.test.com to an intranet server, analyzing the target domain name hr.test.com according to the configuration of the sub domain name hr.test.com stored by the intranet server, obtaining an IP address 192.168.1.101 corresponding to the target domain name hr.test.com in the intranet, and returning an analysis result. When the target domain name is oa.test.com, firstly, sending an analysis request of the target domain name oa.test.com to an intranet server, analyzing the target domain name oa.test.com according to the configuration of the sub domain name oa.test.com stored in the intranet server, obtaining an IP address 1.1.1.1 corresponding to the target domain name oa.test.com in the intranet, and returning the analysis result. When the target domain name is mail.test.com, firstly, sending an analysis request of the target domain name mail.test.com to an intranet server, wherein the intranet server does not define the sub domain name mail.test.com, cannot analyze the target domain name mail.test.com, returns a result that the sub domain name of the target domain name mail.test.com does not exist, then sending the analysis request of the target domain name mail.test.com to an internet server, and then, carrying out analysis actions such as forwarding recursion on the analysis request by an external internet to obtain and return an IP address 2.2.2.2 corresponding to the external internet of the target domain name mail.test.com, and returning the analysis result.
When the target domain name is hr.test.com, it is not defined in the internet, and the analysis result cannot be obtained, i.e. the domain name defined only in the intranet cannot be accessed through the external internet. When the target domain name is oa.test.com, the Internet IP address 1.1.1.1 is obtained. When the target domain name is mail.test.com, the internet IP address is 2.2.2.2.
In the embodiment of the invention, after receiving the target domain name resolution request, the domain name resolution request of the target domain name is preferentially forwarded to the intranet server for resolution, and then the response result returned by the intranet server is judged, if the response result is the resolution result corresponding to the target domain name, namely, the subdomain name is defined in the intranet server, the intranet server can directly perform domain name resolution on the target domain name; if the response result is that the subdomain name does not exist, namely the subdomain name is not defined in the intranet server, forwarding the domain name resolution request to the internet server for resolution. Therefore, the same application or network only needs to define one domain name, and one domain name corresponds to different intranet IP addresses and Internet IP addresses respectively, and analysis results can be obtained by carrying out intranet and Internet recursion analysis on the received target domain name in sequence, and the user does not need to distinguish the intranet domain name and the Internet domain name in operation. Because the intranet server has higher data transmission rate, higher security and higher confidentiality, the intranet server is prone to be subjected to domain name resolution preferentially, and the corresponding subdomain names do not need to be subjected to double deployment between the intranet server and the Internet server, so that the load of the intranet server can be reduced.
[ second embodiment ]
As shown in fig. 2, in a second embodiment of the present invention, there is provided a preferred domain name resolution method, and compared with the first embodiment, the domain name resolution method in this embodiment further includes:
and S4, adding a route cache entry of the subdomain name corresponding to the target domain name, and associating and storing the subdomain name and the Internet server by the route cache entry.
When the target domain name mail.test.com is accessed, the target domain name is resolved through the external Internet, and the corresponding IP address 2.2.2.2 in the external Internet of the target domain name mail.test.com is obtained and returned. Meanwhile, through the step S4, the analysis path of the sub domain name corresponding to the target domain name can be recorded, that is, the sub domain name mail.test.com is only defined in the internet server, and is analyzed by the internet server. It is known that all the sub-domains cached with the route cache entries are defined in the internet server.
Preferably, in a second embodiment of the present invention, the domain name resolution method further includes:
step S11, receiving a domain name resolution request of a target domain name, judging whether a subdomain name corresponding to the target domain name is associated with an Internet server by inquiring a route cache entry, if not, performing step S2, and if so, performing step S3.
When a domain name resolution request of which the target domain name is mail.test.com is received, judging whether a route cache entry of an internet server associated with the sub domain name mail.test.com is cached, if not, resolving normally according to steps S2-S4; if the route cache entry of the sub domain name mail.test.com associated internet server is cached, the target domain name mail.test.com can be directly known and is also analyzed by the external internet, the analysis is not needed to be carried out in the intranet server, namely the step S2 is not needed, the step S3 is directly carried out, and the analysis request of the target domain name mail.test.com is sent to the internet server.
In this embodiment, the route cache entry may directly determine the parsing path before the subzone name corresponding to the route cache entry, so as to directly learn whether the subzone name is defined in the intranet server or the internet server. Therefore, the resolution request of the target domain name can be directly forwarded to the corresponding intranet server or the internet server, and the process of carrying out domain name resolution on the intranet server by the subdomain names defined in the internet server is omitted, so that the overall domain name resolution efficiency is improved.
It should be noted that, in the embodiment of the present invention, the route cache entry may also record which specific internet server analyzes a certain sub domain name, so that when a domain name analysis request related to the sub domain name is received again, the domain name iterative forwarding process is simplified, and the domain name is directly forwarded to the corresponding internet server, thereby further improving the domain name analysis efficiency. Similarly, in practical application, a route cache entry may be established for the subdomain name resolved by the intranet server, which is not described herein.
[ third embodiment ]
As shown in fig. 3, in a third embodiment of the present invention, which is a further optimized embodiment based on the first embodiment and the second embodiment, the domain name resolution method provided in the present embodiment further includes:
step S41, judging whether the answer result of the sub domain name does not exist is the first answer result of the intranet server to the sub domain name, if yes, proceeding to step S4.
After receiving the response result that the sub-domain name of the sub-domain name mail.test.com corresponding to the target domain name mail.test.com sent by the intranet server does not exist, judging whether the result is the first response result of the intranet server to the sub-domain name mail.test.com, if not, indicating that the sub-domain name mail.test.com has related route cache entries, and not needing to establish a cache again; if yes, step S4 is performed, and a route cache entry of the subzone name mail.test.com is established.
In this embodiment, only when a response result sent by the intranet server and not existing in the subdomain name of a certain subdomain name is received for the first time, the subdomain name and the internet server are associated and cached in the route cache entry, so that a correct path can be directly obtained when the subdomain name is resolved again, and the cache resource waste caused by repeated caching of the route cache entry of the same subdomain name can be avoided.
In an embodiment of the present invention, the route cache entries of the subdomain names in the domain name resolution method are updated automatically/manually. The definition of the sub domain name, the configuration relation with the server, the analysis path and the like are not invariable, and the accuracy of the cached route cache entry can be ensured through automatic/manual updating.
Preferably, in an embodiment of the present invention, a refresh time is set for a route cache entry of a sub-domain name in the domain name resolution method, and if the cache time of the route cache entry of the sub-domain name exceeds the refresh time, the route cache entry of the sub-domain name is updated or deleted. Through the steps, the sub domain name related cache can be updated in time, the accuracy and timeliness of the cached route cache entry are guaranteed, the unusual sub domain name route cache entry can be cleared in time, and excessive cache space is avoided. The specific length of the refresh time can be defined or adjusted by a user according to the cache space of the intranet, the data processing capacity and other reference conditions.
Preferably, in the domain name resolution method provided by the technical scheme of the present invention, when the intranet server updates the authority of the sub domain name, the route cache entry of the sub domain name is updated or deleted. When the intranet server updates the sub domain name authorization, the sub domain name defined in the intranet server can be correspondingly subjected to addition and deletion modification, and meanwhile, the route cache entry corresponding to the sub domain name is updated or deleted, so that the accuracy and timeliness of the cached route cache entry can be improved. For example, the route cache entry of the internet server is originally cached, the domain name resolution corresponding to the subdomain name mail.test.com is directly forwarded to the internet server, if the subdomain name mail.test.com is defined in the intranet server when the intranet server is updated and configured, the route cache entry is deleted, and when the domain name resolution corresponding to the subdomain name mail.test.com is received again, the route cache entry is forwarded to the intranet server for resolution.
In the embodiment of the invention, the intranet server in the domain name resolution method is an intranet authoritative server, and the internet server is an internet authoritative server. The configuration information of the domain name in the network can be learned by an authoritative DNS server.
[ fourth embodiment ]
As shown in fig. 4, in the fourth embodiment of the present invention, there is also provided a DNS server 1 under an intranet-internet architecture, the DNS server 1 including a memory 11 and a processor 12, when a program or an instruction in the memory 11 is executed by the processor 12, the DNS server 1 is capable of performing the following steps when performing domain name cache resolution:
step S1, receiving a domain name resolution request of a target domain name;
step S2, forwarding the domain name resolution request to an intranet server, receiving a response result sent by the intranet server, returning the response result if the response result is a resolution result corresponding to the target domain name, and performing step S3 if the response result is that the subdomain name does not exist;
and step S3, forwarding the domain name resolution request to an Internet server, and receiving and returning a response result of the Internet server.
In the embodiment of the invention, the DNS server 1 under the intranet-internet architecture can sequentially recursively analyze the received target domain name by the intranet and the internet, and correct analysis results are obtained through multiple recursions, so that the problem of conflict between the intranet domain name and the internet domain name is solved.
In addition, it should be noted that, in embodiments of the present invention, the memory 11 in the DNS server 1 may comprise a non-volatile memory, such as a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a FLASH memory (FLASH), or any other device capable of storing program instructions or data with or without application of power. The memory 11 may also include volatile memory such as Random Access Memory (RAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), and Synchronous Dynamic Random Access Memory (SDRAM), although other types of RAM may be used to implement the memory 11. The memory 11 may be implemented using a single memory module or a plurality of memory modules. Although memory 11 is depicted as being locally interconnected to processor 12, those skilled in the art will recognize that memory 11 may be provided in a different computer separately from processor 12 without departing from the scope of the subject technology.
Processor 12 may also include a general-purpose processor, a processor core, a multiprocessor, a reconfigurable processor, a microcontroller, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Graphics Processing Unit (GPU), a field programmable gate array chip (FPGA), a Programmable Logic Device (PLD), a controller, a state machine, gating logic, a discrete hardware component, or any other processing unit or combination of one or more of the above.
In an embodiment of the present invention, there is further provided a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the domain name resolution method under the intranet-internet architecture described above.
The technical solution of the present invention has been described so far with reference to the accompanying drawings. However, it will be readily appreciated by those skilled in the art that the scope of the present invention is not limited to the above-described specific embodiments. Equivalent modifications and substitutions for related technical features may be made by those skilled in the art without departing from the principles of the present invention, and such modifications and substitutions will fall within the scope of the present invention.

Claims (8)

1. The domain name resolution method under the intranet-Internet architecture is characterized by comprising the following steps of:
step S1, receiving a domain name resolution request of a target domain name;
step S2, forwarding the domain name resolution request to an intranet server, receiving a response result sent by the intranet server, returning the response result if the response result is a resolution result corresponding to the target domain name, and performing step S3 if the response result is that the subdomain name does not exist;
step S3, forwarding the domain name resolution request to an Internet server, and receiving and returning a response result of the Internet server;
step S4, adding a route cache entry of a subdomain name corresponding to the target domain name, wherein the route cache entry is used for storing the subdomain name and the Internet server in an associated manner;
and step S11, receiving a domain name resolution request of a target domain name, judging whether a subdomain name corresponding to the target domain name is associated with the Internet server by inquiring the route cache entry, if not, performing step S2, and if so, performing step S3.
2. The domain name resolution method according to claim 1, further comprising:
and S41, judging whether the response result of the subdomain name does not exist is the first response result of the intranet server to the subdomain name, and if yes, performing step S4.
3. A domain name resolution method as claimed in claim 1 or 2, wherein the route cache entry for the subdomain name is updated automatically/manually.
4. The domain name resolution method according to claim 3, wherein the route cache entry of the subdomain name is provided with a refresh time, and if the cache time of the route cache entry of the subdomain name exceeds the refresh time, the route cache entry of the subdomain name is updated or deleted.
5. The domain name resolution method according to claim 3, wherein the route cache entry of the sub domain name is updated or deleted when the intranet server updates a sub domain name authority.
6. The domain name resolution method according to claim 1, wherein the intranet server is an intranet authoritative server, and the internet server is an internet authoritative server.
7. A DNS server in an intranet-internet architecture, the DNS server comprising a memory and one or more processors, wherein when a program or instruction in the memory is executed by the processor, the DNS server is capable of performing the following steps when performing domain name resolution:
step S1, receiving a domain name resolution request of a target domain name;
step S2, forwarding the domain name resolution request to an intranet server, receiving a response result sent by the intranet server, returning the response result if the response result is a resolution result corresponding to the target domain name, and performing step S3 if the response result is that the subdomain name does not exist;
step S3, forwarding the domain name resolution request to an Internet server, and receiving and returning a response result of the Internet server;
step S4, adding a route cache entry of a subdomain name corresponding to the target domain name, wherein the route cache entry is used for storing the subdomain name and the Internet server in an associated manner;
and step S11, receiving a domain name resolution request of a target domain name, judging whether a subdomain name corresponding to the target domain name is associated with the Internet server by inquiring the route cache entry, if not, performing step S2, and if so, performing step S3.
8. A computer readable storage medium, having stored thereon a computer program which when executed by a processor performs the steps of the domain name resolution method according to any of claims 1-6.
CN202111540395.0A 2021-12-16 2021-12-16 Domain name resolution method, DNS server and readable storage medium Active CN114189494B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111540395.0A CN114189494B (en) 2021-12-16 2021-12-16 Domain name resolution method, DNS server and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111540395.0A CN114189494B (en) 2021-12-16 2021-12-16 Domain name resolution method, DNS server and readable storage medium

Publications (2)

Publication Number Publication Date
CN114189494A CN114189494A (en) 2022-03-15
CN114189494B true CN114189494B (en) 2024-02-27

Family

ID=80544096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111540395.0A Active CN114189494B (en) 2021-12-16 2021-12-16 Domain name resolution method, DNS server and readable storage medium

Country Status (1)

Country Link
CN (1) CN114189494B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745356B (en) * 2022-03-29 2024-02-23 深信服科技股份有限公司 Domain name resolution method, device, equipment and readable storage medium
CN115297088A (en) * 2022-08-03 2022-11-04 中电云数智科技有限公司 Domain name resolution system and method in cloud computing environment
CN115022242B (en) * 2022-08-08 2022-11-18 深圳高灯计算机科技有限公司 Network layer identification method and device, computer equipment and storage medium
CN116155859A (en) * 2023-02-15 2023-05-23 中国工商银行股份有限公司 Network access method, device, computer equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9053146B1 (en) * 2009-10-16 2015-06-09 Iqor U.S. Inc. Apparatuses, methods and systems for a web access manager
CN106101300A (en) * 2016-06-22 2016-11-09 东方有线网络有限公司 The method controlling to access self-built server by private domain name system
CN106790747A (en) * 2016-12-13 2017-05-31 北京网瑞达科技有限公司 A kind of method of the secondary recursion resolution of domain name system DNS
CN107222587A (en) * 2017-06-29 2017-09-29 冯哲 A kind of method for remotely accessing private network device
CN110830458A (en) * 2019-10-25 2020-02-21 云深互联(北京)科技有限公司 Domain name access method, system and equipment
CN111294415A (en) * 2018-12-10 2020-06-16 北京京东金融科技控股有限公司 Domain name resolution method and device
CN112887444A (en) * 2021-01-19 2021-06-01 网宿科技股份有限公司 VPN (virtual private network) request processing method, client device and system
CN113766046A (en) * 2021-09-09 2021-12-07 牙木科技股份有限公司 Iterative traffic tracking method, DNS server, and computer-readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9053146B1 (en) * 2009-10-16 2015-06-09 Iqor U.S. Inc. Apparatuses, methods and systems for a web access manager
CN106101300A (en) * 2016-06-22 2016-11-09 东方有线网络有限公司 The method controlling to access self-built server by private domain name system
CN106790747A (en) * 2016-12-13 2017-05-31 北京网瑞达科技有限公司 A kind of method of the secondary recursion resolution of domain name system DNS
CN107222587A (en) * 2017-06-29 2017-09-29 冯哲 A kind of method for remotely accessing private network device
CN111294415A (en) * 2018-12-10 2020-06-16 北京京东金融科技控股有限公司 Domain name resolution method and device
CN110830458A (en) * 2019-10-25 2020-02-21 云深互联(北京)科技有限公司 Domain name access method, system and equipment
CN112887444A (en) * 2021-01-19 2021-06-01 网宿科技股份有限公司 VPN (virtual private network) request processing method, client device and system
CN113766046A (en) * 2021-09-09 2021-12-07 牙木科技股份有限公司 Iterative traffic tracking method, DNS server, and computer-readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Collaborative Client-Side DNS Cache Poisoning Attack";Fatemah Alharbi;《IEEE》;20190617;全文 *
"一种自定义DMS解析服务的设计与实现";王凯;《中国优秀硕士论文全文数据库》;全文 *

Also Published As

Publication number Publication date
CN114189494A (en) 2022-03-15

Similar Documents

Publication Publication Date Title
CN114189494B (en) Domain name resolution method, DNS server and readable storage medium
CN109347998B (en) Method and system for detecting IP address of DNS (Domain name Server) outlet server
US11347797B2 (en) Asset search and discovery system using graph data structures
US9525749B2 (en) DNS server arrangement and method
CN101483648B (en) Method, system, apparatus and DNS server for DNS buffer probe
US9300623B1 (en) Domain name system cache integrity check
KR20110069178A (en) Methods, apparatuses, and computer program products for determining a network interface to access a network resource
US20080288470A1 (en) Method and System for Distributed Dns Resolution
CN104378452A (en) Method, device and system for domain name resolution
CN114205330B (en) Domain name resolution method, domain name resolution device, server, and storage medium
CN111586201A (en) Domain name resolution system, method, device and storage medium
CN113992626A (en) Method, device and storage medium for realizing DNS
CN109451089A (en) A kind of access method, device, computer equipment and computer storage medium
CN115297088A (en) Domain name resolution system and method in cloud computing environment
CN109379426B (en) X-CDN scheduling method, device and system based on X-DNS
CN108833424B (en) System for acquiring all resource records of domain name
CN112671866B (en) DNS (Domain name Server) shunt analysis method, DNS server and computer readable storage medium
CN114500456A (en) DNS scheduling optimization method and device based on full-network sniffing and computing equipment
CN114422469B (en) IPv4/IPv6 flow intelligent scheduling method, device and scheduling system
CN113821461B (en) Domain name resolution caching method, DNS server and computer readable storage medium
CN115563412A (en) Access method, proxy server, electronic device, and storage medium
CN110677512B (en) Address resolution method and device
CN111901449B (en) Method and device for optimizing domain name access
CN109379453B (en) Method and system for detecting IP address of DNS (Domain name Server) outlet server
CN111447297B (en) IPv4 and IPv6 DNS unified access management method and system

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