CN114205330A - Domain name resolution method, domain name resolution device, server, and storage medium - Google Patents

Domain name resolution method, domain name resolution device, server, and storage medium Download PDF

Info

Publication number
CN114205330A
CN114205330A CN202111322342.1A CN202111322342A CN114205330A CN 114205330 A CN114205330 A CN 114205330A CN 202111322342 A CN202111322342 A CN 202111322342A CN 114205330 A CN114205330 A CN 114205330A
Authority
CN
China
Prior art keywords
domain name
server
resolution
preset
analysis
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111322342.1A
Other languages
Chinese (zh)
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 Shareit Information Technology Co Ltd
Original Assignee
Beijing Shareit Information 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 Beijing Shareit Information Technology Co Ltd filed Critical Beijing Shareit Information Technology Co Ltd
Priority to CN202111322342.1A priority Critical patent/CN114205330A/en
Publication of CN114205330A publication Critical patent/CN114205330A/en
Pending legal-status Critical Current

Links

Images

Abstract

The technical scheme of the application provides a domain name resolution method, a domain name resolution device, a server and a storage medium. The domain name resolution method comprises the steps of receiving a domain name resolution request sent by a client; determining an analysis link for analyzing the domain name based on the domain name analysis request; if the resolution link is determined to point to a domain name server for resolving the domain name with the preset level, calling the domain name server to query address information prestored in an application cache region; and feeding back a query result to the client. According to the application, address information corresponding to the domain name meeting the preset level is stored in the application cache region in advance. When the domain name to be resolved meeting the preset level is resolved, the domain name server is called to directly access the application cache region, so that the domain name to be resolved meeting the preset level is rapidly resolved, and the domain name resolution efficiency is improved.

Description

Domain name resolution method, domain name resolution device, server, and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a domain name resolution method, a domain name resolution device, a server and a storage medium.
Background
In network communication, a DNS (Domain Name System) resolution service is generally used. Domain name resolution is a service that directs domain names to a website space IP, allowing people to conveniently access the website through the registered domain names. The IP address is a digital address for identifying a station on the network, and a domain name is adopted to replace the IP address to identify the station address for the convenience of memory. To access a server on the internet, it must be finally realized by an IP address, and domain name resolution is a process of converting a domain name into an IP address again.
Disclosure of Invention
The embodiment of the invention provides a domain name resolution method, a domain name resolution device, a server and a storage medium.
A first aspect of the embodiments of the present disclosure provides a domain name resolution method, including:
receiving a domain name resolution request sent by a client;
determining an analysis link for analyzing the domain name based on the domain name analysis request;
if the resolution link is determined to point to a domain name server for resolving the domain name with the preset level, calling the domain name server to query address information prestored in an application cache region;
and feeding back a query result to the client.
In one embodiment, the method further comprises:
and updating the analysis information which is written into a database in advance and corresponds to a preset domain name to the application cache region at regular time, wherein the analysis information at least comprises the preset domain name and address information corresponding to the preset domain name.
In one embodiment, the address information at least includes:
and the country, the province and the IP internet protocol address corresponding to the preset domain name.
In one embodiment, the determining a resolution link to resolve the domain name based on the domain name resolution request includes:
determining a domain name to be analyzed in the domain name analysis request;
inquiring a domain name server resolution record corresponding to the domain name to be resolved in an authoritative domain name server;
and determining the domain name server for analyzing the domain name to be analyzed based on the domain name server analysis record.
In one embodiment, the invoking the domain name server to query address information pre-stored in an application cache region includes:
calling the domain name server to analyze the domain name analysis request to obtain a domain name to be analyzed and a geographical area where a client IP address is located;
and inquiring address information corresponding to the domain name to be resolved in the application cache region based on the domain name to be resolved and the determined geographical region where the client IP address is located.
A second aspect of the embodiments of the present disclosure provides a domain name resolution apparatus, including:
the first processing unit is used for receiving a domain name resolution request sent by a client;
a second processing unit, configured to determine, based on the domain name resolution request, a resolution link for resolving the domain name;
the third processing unit is used for calling the domain name server to inquire address information prestored in an application cache region if the resolution link is determined to point to the domain name server used for resolving the domain name with the preset level;
and the fourth processing unit is used for feeding back the query result to the client.
In one embodiment, the apparatus further comprises:
and the fifth processing unit is used for updating the analysis information which is written into the database in advance and corresponds to the preset domain name to the application cache region at regular time, wherein the analysis information at least comprises the preset domain name and the address information corresponding to the preset domain name.
In one embodiment, the address information at least includes:
and the country, the province and the IP internet protocol address corresponding to the preset domain name.
In an embodiment, the second processing unit is specifically configured to
Determining a domain name to be analyzed in the domain name analysis request;
inquiring a domain name server resolution record corresponding to the domain name to be resolved in an authoritative domain name server;
and determining the domain name server for analyzing the domain name to be analyzed based on the domain name server analysis record.
In an embodiment, the third processing unit is specifically configured to
Calling the domain name server to analyze the domain name analysis request to obtain a domain name to be analyzed and a geographical area where a client IP address is located;
and inquiring address information corresponding to the domain name to be resolved in the application cache region based on the domain name to be resolved and the determined geographical region where the client IP address is located.
A third aspect of the embodiments of the present disclosure provides a domain name resolution system, including:
the first domain name server is used for determining an analysis link of the domain name to be analyzed;
the second domain name server is used for inquiring address information which is stored in an application cache region in advance and corresponds to the domain name to be resolved when the domain name to be resolved is a preset level domain name; when the domain name to be analyzed is a preset level domain name, the analysis link points to the second domain name server;
the domain name configuration platform is used for writing analysis information corresponding to a preset domain name into a database, wherein the analysis information at least comprises the preset domain name and address information corresponding to the preset domain name; and the analysis information in the database is used for updating to the application cache region.
In one embodiment, the address information at least includes:
and the country, the province and the IP internet protocol address corresponding to the preset domain name.
A fourth aspect of the embodiments of the present disclosure provides a server, including: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the method of the first aspect when executing the computer program.
A fifth aspect of the embodiments of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the method of the first aspect.
According to the domain name resolution method of the embodiment, when the determined resolution link points to the domain name server for resolving the domain name with the preset level, the domain name server is called to inquire the address information which is stored in advance and corresponds to the domain name to be resolved in the application cache region. And then feeding back the query result to the client. According to the application, address information corresponding to the domain name meeting the preset level is stored in the application cache region in advance. When the domain name to be resolved meeting the preset level is resolved, the domain name server is called to directly access the application cache region, so that the domain name to be resolved meeting the preset level is rapidly resolved, and the domain name resolution efficiency is improved.
Drawings
FIG. 1 is a flow diagram illustrating a domain name resolution method in accordance with an illustrative embodiment;
FIG. 2 is a diagram illustrating a parsing information configuration, according to an example embodiment;
FIG. 3 is a block diagram of a data processing apparatus according to an exemplary embodiment;
FIG. 4 is a diagram illustrating a domain name resolution system architecture in accordance with an illustrative embodiment;
fig. 5 is a schematic diagram illustrating another domain name resolution system architecture in accordance with an illustrative embodiment.
Fig. 6 is a schematic diagram illustrating a server architecture according to an example embodiment.
Detailed Description
The technical solution of the present invention is further described in detail with reference to the drawings and the specific embodiments of the specification.
Fig. 1 is a flow diagram illustrating a domain name resolution method according to an example embodiment. As shown in fig. 1, the domain name resolution method includes:
step S100, receiving a domain name resolution request sent by a client;
step S120, determining an analysis link for analyzing the domain name based on the domain name analysis request;
step S130, if the resolution link is determined to point to a domain name server for resolving the domain name with the preset level, calling the domain name server to inquire address information prestored in an application cache region;
and step S140, feeding back a query result to the client.
In an exemplary embodiment, the preset level domain name may be a domain name with three levels or more, that is, a sub-domain name of the second level domain name. Com, for example, test. The domain name server for resolving the domain name of the preset level can be a next-level user-defined domain name resolution server of the authoritative domain name server.
In an exemplary embodiment, the feeding back the query result to the client includes:
when address information corresponding to a domain name to be resolved is inquired in an application cache region, the inquired address information is fed back to a client; or the like, or, alternatively,
if the address information corresponding to the domain name to be resolved is not inquired in the application cache region, a domain name resolution request is made to the next level of domain name server to which the domain name resolution record in the domain name server points, or a message record of domain name resolution failure is fed back to the client.
According to the domain name resolution method of the embodiment, when the determined resolution link points to the domain name server for resolving the domain name with the preset level, the domain name server is called to inquire the address information which is stored in advance and corresponds to the domain name to be resolved in the application cache region. And then feeding back the query result to the client. According to the application, address information corresponding to the domain name meeting the preset level is stored in the application cache region in advance. When the domain name to be resolved meeting the preset level is resolved, the domain name server is called to directly access the application cache region, so that the domain name to be resolved meeting the preset level is rapidly resolved, and the domain name resolution efficiency is improved.
In one embodiment, the method further comprises:
and updating the analysis information which is written into a database in advance and corresponds to a preset domain name to the application cache region at regular time, wherein the analysis information at least comprises the preset domain name and address information corresponding to the preset domain name.
In an exemplary embodiment, the resolution information corresponding to the preset domain name may be written in the database in advance, and the resolution information in the database is updated to the application cache region at regular time. The time length of the timing updating can be automatically set to be a shorter time length so as to satisfy the requirement that the analysis information stored in the application cache region is updated in time. The analysis information in the database can be written in through the domain name configuration platform in a pre-configured mode, when the analysis information needs to be updated, the analysis information in the database can be updated through the system, the analysis information in the database can be automatically updated to the application cache region at regular time, and compared with the traditional method of manually modifying the root region file, the method and the system for updating the analysis information in the application cache region are accurate, effective and timely, and the analysis information configuration is controllable.
In an exemplary embodiment, fig. 2 is a diagram illustrating a parsing information configuration according to an exemplary embodiment. As shown in fig. 2, the resolution information may include a preset domain name and address information (country, province and IP address corresponding to the preset domain name), and also include
A domain name resolution type, and a domain name resolution TTL (Time To Live). The domain name resolution type at least comprises: a record, MX record, CNAME record.
Recording A: setting the domain name or sub-domain name direction, and ensuring the important setting of the domain name direction corresponding to the host. When making a record, the corresponding value must be an IP address.
MX recording: setting the mail exchange record of the domain name is an important setting for specifying the mailbox server corresponding to the domain name.
CNAME record: and (4) recording the alias. Such records allow multiple names to be mapped to the same computer.
Codes of CDN (Content Delivery Network), and the like.
In one embodiment, the address information at least includes:
and the country, the province and the IP internet protocol address corresponding to the preset domain name.
In an exemplary embodiment, the resolution information stored in the application cache region includes a preset domain name and information such as a country, a province, an IP address, and the like corresponding to the preset domain name. When the same preset domain name corresponds to different countries and provincial regions, the corresponding allocated clients can be different, and the IP addresses allocated by different clients can be different. Different network communication services can be provided for different clients in different regions through the same domain name.
In one embodiment, the determining a resolution link to resolve the domain name based on the domain name resolution request includes:
determining a domain name to be analyzed in the domain name analysis request;
inquiring a domain name server resolution record corresponding to the domain name to be resolved in an authoritative domain name server;
and determining the domain name server for analyzing the domain name to be analyzed based on the domain name server analysis record.
In an exemplary embodiment, when performing domain name resolution, a recursive server (i.e., a local DNS server) receives an authoritative domain name server address responded by a top-level domain name server, and constructs an authoritative domain name server for a query request, and after receiving the request, the authoritative domain name server queries a DNS resolution record according to a domain name to be resolved (e.g., a request domain name test.mcp.com), and finds that one domain name server resolution record of the domain name to be resolved (e.g., test.mcp.com) points to a custom domain name DNS server, where the DNS server is a self-established intelligent DNS server, that is, a DNS server for resolving a domain name satisfying a preset level. The authoritative domain name server will return the domain name server resolution record to the recursive server. The recursive server initiates a domain name resolution request to the domain name server for resolving domain names satisfying the predetermined level.
In one embodiment, the invoking the domain name server to query address information pre-stored in an application cache region includes:
calling the domain name server to analyze the domain name analysis request to obtain a domain name to be analyzed and a geographical area where a client IP address is located;
and inquiring address information corresponding to the domain name to be resolved in the application cache region based on the domain name to be resolved and the determined geographical region where the client IP address is located.
In an exemplary embodiment, after the recursive server initiates a Domain Name resolution request to a Domain Name server for resolving a Domain Name satisfying a preset level, the Domain Name server obtains a Domain Name to be resolved and an Extended Domain Name System (EDNS) extension field by parsing a User Datagram Protocol (UDP) message, obtains a client IP through contents of the EDNS, and obtains a client source geographical area by querying an IP library. The geographical region includes at least the region of the country, province, etc. After obtaining the query result, the domain name server returns the query result to the recursive server by constructing a DNS message.
The embodiment of the disclosure also provides a domain name resolution device. Fig. 3 is a schematic diagram illustrating a data processing apparatus according to an exemplary embodiment. As shown in fig. 3, the domain name resolution apparatus includes:
a first processing unit 31, configured to receive a domain name resolution request sent by a client;
a second processing unit 32, configured to determine, based on the domain name resolution request, a resolution link for resolving the domain name;
a third processing unit 33, configured to, if it is determined that the resolution link points to a domain name server for resolving a domain name at a preset level, invoke the domain name server to query address information pre-stored in an application cache region;
and the fourth processing unit 34 is configured to feed back a query result to the client.
In an exemplary embodiment, the preset level domain name may be a domain name with three levels or more, that is, a sub-domain name of the second level domain name. Com, for example, test. The domain name server for resolving the domain name of the preset level can be a next-level user-defined domain name resolution server of the authoritative domain name server.
In an exemplary embodiment, the feeding back the query result to the client includes:
when address information corresponding to a domain name to be resolved is inquired in an application cache region, the inquired address information is fed back to a client; or the like, or, alternatively,
if the address information corresponding to the domain name to be resolved is not inquired in the application cache region, a domain name resolution request is made to the next level of domain name server to which the domain name resolution record in the domain name server points, or a message record of domain name resolution failure is fed back to the client.
The domain name resolution device of the embodiment of the disclosure calls the domain name server to query the address information corresponding to the domain name to be resolved, which is stored in advance, in the application cache region when the determined resolution link points to the domain name server for resolving the domain name with the preset level. And then feeding back the query result to the client. According to the application, address information corresponding to the domain name meeting the preset level is stored in the application cache region in advance. When the domain name to be resolved meeting the preset level is resolved, the domain name server is called to directly access the application cache region, so that the domain name to be resolved meeting the preset level is rapidly resolved, and the domain name resolution efficiency is improved.
In one embodiment, the apparatus further comprises:
and the fifth processing unit is used for updating the analysis information which is written into the database in advance and corresponds to the preset domain name to the application cache region at regular time, wherein the analysis information at least comprises the preset domain name and the address information corresponding to the preset domain name.
In an exemplary embodiment, the resolution information corresponding to the preset domain name may be written in the database in advance, and the resolution information in the database is updated to the application cache region at regular time. The time length of the timing updating can be automatically set to be a shorter time length so as to satisfy the requirement that the analysis information stored in the application cache region is updated in time. The analysis information in the database can be written in through the domain name configuration platform in a pre-configured mode, when the analysis information needs to be updated, the analysis information in the database can be updated through the system, the analysis information in the database can be automatically updated to the application cache region at regular time, and compared with the traditional method of manually modifying the root region file, the method and the system for updating the analysis information in the application cache region are accurate, effective and timely, and the analysis information configuration is controllable.
In one embodiment, the address information at least includes:
and the country, the province and the IP internet protocol address corresponding to the preset domain name.
In an exemplary embodiment, the resolution information stored in the application cache region includes a preset domain name and information such as a country, a province, an IP address, and the like corresponding to the preset domain name. When the same preset domain name corresponds to different countries and provincial regions, the corresponding allocated clients can be different, and the IP addresses allocated by different clients can be different. Different network communication services can be provided for different clients in different regions through the same domain name.
In an embodiment, the second processing unit is specifically configured to
Determining a domain name to be analyzed in the domain name analysis request;
inquiring a domain name server resolution record corresponding to the domain name to be resolved in an authoritative domain name server;
and determining the domain name server for analyzing the domain name to be analyzed based on the domain name server analysis record.
In an exemplary embodiment, when performing domain name resolution, a recursive server (i.e., a local DNS server) receives an authoritative domain name server address responded by a top-level domain name server, and constructs an authoritative domain name server for a query request, and after receiving the request, the authoritative domain name server queries a DNS resolution record according to a domain name to be resolved (e.g., a request domain name test.mcp.com), and finds that one domain name server resolution record of the domain name to be resolved (e.g., test.mcp.com) points to a custom domain name DNS server, where the DNS server is a self-established intelligent DNS server, that is, a DNS server for resolving a domain name satisfying a preset level. The authoritative domain name server will return the domain name server resolution record to the recursive server. The recursive server initiates a domain name resolution request to the domain name server for resolving domain names satisfying the predetermined level.
In an embodiment, the third processing unit is specifically configured to
Calling the domain name server to analyze the domain name analysis request to obtain a domain name to be analyzed and a geographical area where a client IP address is located;
and inquiring address information corresponding to the domain name to be resolved in the application cache region based on the domain name to be resolved and the determined geographical region where the client IP address is located.
In an exemplary embodiment, after the recursive server initiates a Domain Name resolution request to a Domain Name server for resolving a Domain Name satisfying a preset level, the Domain Name server obtains a Domain Name to be resolved and an Extended Domain Name System (EDNS) extension field by parsing a User Datagram Protocol (UDP) message, obtains a client IP through contents of the EDNS, and obtains a client source geographical area by querying an IP library. The geographical region includes at least the region of the country, province, etc. After obtaining the query result, the domain name server returns the query result to the recursive server by constructing a DNS message.
A third aspect of the embodiments of the present disclosure provides a domain name resolution system. Fig. 4 is a diagram illustrating a domain name resolution system architecture in accordance with an exemplary embodiment. As shown in fig. 4, the domain name resolution system includes:
the first domain name server is used for determining an analysis link of the domain name to be analyzed;
the second domain name server is used for inquiring address information which is stored in an application cache region in advance and corresponds to the domain name to be resolved when the domain name to be resolved is a preset level domain name; when the domain name to be analyzed is a preset level domain name, the analysis link points to the second domain name server;
the domain name configuration platform is used for writing analysis information corresponding to a preset domain name into a database, wherein the analysis information at least comprises the preset domain name and address information corresponding to the preset domain name; and the analysis information in the database is used for updating to the application cache region.
In an exemplary embodiment, a domain name resolution system includes at least a first domain name server, a second domain name server, and a domain name configuration platform. The first domain name server may be the authoritative domain name server and/or the top level domain name server shown in fig. 4, and the second domain name server may be the custom domain name server shown in fig. 4. The first domain name server is used for receiving a domain name resolution request of the recursive server and determining a resolution link of a domain name to be resolved in the domain name resolution request. And when the domain name to be analyzed is the domain name with the preset grade, the analysis link points to the second domain name server. The second domain name server inquires address information which is stored in an application cache region in advance and corresponds to the domain name to be resolved, feeds back the inquiry result to the recursive server, and feeds back the inquiry result to the client side by the recursive server.
According to the application, address information corresponding to the domain name meeting the preset level is stored in the application cache region in advance. When the domain name to be resolved meeting the preset level is resolved, the domain name server is called to directly access the application cache region, so that the domain name to be resolved meeting the preset level is rapidly resolved, and the domain name resolution efficiency is improved. And the database can be written with the analysis information corresponding to the preset domain name in advance, and the analysis information in the database is updated to the application cache region at regular time. The time length of the timing updating can be automatically set to be a shorter time length so as to satisfy the requirement that the analysis information stored in the application cache region is updated in time. The analysis information in the database can be written in through the domain name configuration platform in a pre-configured mode, when the analysis information needs to be updated, the analysis information in the database can be updated through the system, the analysis information in the database can be automatically updated to the application cache region at regular time, and compared with the traditional method of manually modifying the root region file, the method and the system for updating the analysis information in the application cache region are accurate, effective and timely, and the analysis information configuration is controllable.
In one embodiment, the address information at least includes:
and the country, the province and the IP internet protocol address corresponding to the preset domain name.
In an exemplary embodiment, the resolution information stored in the application cache region includes a preset domain name and information such as a country, a province, an IP address, and the like corresponding to the preset domain name. When the same preset domain name corresponds to different countries and provincial regions, the corresponding allocated clients can be different, and the IP addresses allocated by different clients can be different. Different network communication services can be provided for different clients in different regions through the same domain name.
When domain name resolution is implemented in the domain name resolution system shown in fig. 4, the domain name resolution can be implemented by the following steps:
step 1, a user accesses a corresponding resource of a test.mcp.com domain name through a local browser, an operating system firstly searches whether an analysis record of the domain name test.mcp.com exists in a local host file, and if the analysis record exists, the operating system directly obtains an analysis record value and initiates a resource request to the corresponding analysis record value.
And 2, if the resolution record of the corresponding domain name cannot be found in the local host file, the operating system directly initiates a DNS resolution request to a recursive DNS server, and the DNS server provided by a local network operator is generally used as the recursive DNS server. And the recursive server is used as a medium to obtain a final resolution result of the domain name from the root DNS server, the top level DNS server, the authoritative DNS server and the user-defined domain name server in sequence and return the final resolution result.
And 3, when the recursive DNS server receives the domain name resolution request (test.mcp.com), firstly, acquiring 13 root DNS server addresses from the configuration (the DNS server can be internally provided with the 13 root server addresses), and initiating a domain name query request to one of the root DNS server addresses according to the region. After the root server first reaches the domain name resolution request (test.mcp.com), judging what the top level domain of the domain name is, and returning the address of the top level domain name server to the recursive server according to the top level domain, wherein the top level domain of the test.mcp.com is.
And 4, after receiving the return of the root DNS server, the recursive server initiates a DNS analysis request to the top-level domain name server com. The top-level domain name server generally records the addresses of all the authoritative domain DNS servers in the regional file, and the top-level domain name server acquires the addresses of the authoritative domain DNS servers according to the inquired addresses and returns the addresses. Com's DNS server resolves the address returned here. Authoritative domain DNS servers in the country generally act as various large cloud vendors.
And 5, the recursion server receives the address of the authoritative domain name server responded by the top-level domain name server, the authoritative domain name server of the query request is constructed again, after the authoritative domain name server receives the request, the DNS resolution record is queried according to the request domain name test.mcp.com, and the result shows that one NS resolution record (on the authoritative domain name server) of the test.mcp.com points to a self-constructed authoritative domain name DNS server which is the self-constructed intelligent DNS server. The authoritative domain name server will return the NS record to the recursive domain name server.
And 6, the recursive server initiates an analysis request to the user-defined domain name server after receiving the return. The user-defined domain name server firstly obtains an analysis domain name and an EDNS expansion field by analyzing a UDP message, then obtains a source IP by EDNS content, and queries an IP library to obtain a user source area (a geographical meaning area). And then searching the resolution record of the domain name in the region from the application cache region through the domain name and the region and returning. The data in the application cache region is loaded by a separate process of the self-built server from the background configuration saved in the database of our management. And after the domain name server is customized, the DNS message is constructed through the data in the cache and returned to the recursive server.
And 7, finally, the recursion server receives the final analysis result, stores the final analysis result into a cache (the cache of the recursion server) and returns the final analysis result to the client, and the analysis process is ended.
Fig. 5 is a schematic diagram illustrating another domain name resolution system architecture in accordance with an illustrative embodiment. As shown in fig. 5, in the conventional DNS system, a domain name is analyzed by a UDP protocol sequentially through the analysis and response of the domain name recurrence server, the root domain name server, the TLD top-level domain name server, and the authoritative domain name server, and finally, the client machine receives the analysis result and accesses the specified resource through the ip of the target server in the analysis response.
In the resolution process, a recursive server (also called a DNS resolver) is a server that receives queries from DNS clients and then interacts with other DNS servers to find the correct IP. Once the resolver receives a request from a client, the resolver will actually act as the client itself, querying the other three types of DNS servers to search for the correct IP. First, the resolver queries the root domain name server. The root domain name server is the first step in converting (resolving) a human-readable domain name to an IP address. The root Domain name Server then responds to the resolver using the address of the Top Level Domain (TLD) DNS Server (e.g., com or net) that stores its domain information. Next, the recursive server queries the TLD server. The TLD server responds with the IP address of the authoritative name server for the domain. The recursor then queries an authoritative name server, which will respond with the IP address of the origin server. The resolver will eventually pass the origin server IP address back to the client. Using this IP address, the client can initiate a query directly to the origin server, which will respond by sending website data that can be interpreted and displayed by the Web browser. In the whole resolution process, the authoritative name server is the most concerned and the most varied, for example, the mcp. The root zone file is used for storing the address of a root (.) domain name server, the root domain name server maintains the address of a top-level domain name (. com) server through the root zone file, the top-level domain name server maintains the address of an authoritative domain name (mcp. com) server through the root zone file, and finally the authoritative domain name server returns the analytic address of the mcp. Com, the authoritative domain name server will look up and return according to the zone file of this domain at the mcp if the address of the tertiary domain name is resolved.
However, for such a service scenario, if a secondary domain name mcp.com is purchased, if now some tertiary domain names of the secondary domain are required to be created in batch, then the files in the designated area of the authoritative server of the mcp.com domain need to be modified and updated, and if the modification is wrong, all the resolutions under the domain will fail. Meanwhile, the resolution address of a certain specified three-level domain name needs to be modified in the future, the region file also needs to be modified, and the failure risk also exists at the same time. There is a need for a way to automatically modify the resolved address of a given domain name that is both secure and risk-circumventing, and risk-controllable.
The domain name resolution method in the application is that a set of DNS resolution service is constructed according to the resolution of a DNS resolution request message, a DNS response message is constructed through the matching of configuration stored in a relational database, and the DNS response message is returned to a terminal DNS resolution request result. Meanwhile, the analysis rules in the relational database are stored in a database through a management background strong check rule, so that the accuracy of analysis records is ensured.
The application also provides a server. Fig. 6 is a schematic diagram illustrating a server architecture according to an example embodiment. As shown in fig. 6, a server provided in an embodiment of the present application includes: a processor 530 and a memory 520 for storing a computer program capable of running on the processor, wherein the processor 530 is configured to execute the steps of the method provided by the above embodiments when the computer program runs.
The present application also provides a computer-readable storage medium. The computer-readable storage medium provided by the embodiments of the present application stores thereon a computer program, which when executed by a processor implements the steps of the method provided by the above-mentioned embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
In some cases, any two of the above technical features may be combined into a new method solution without conflict.
In some cases, any two of the above technical features may be combined into a new device solution without conflict.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media capable of storing program codes, such as a removable Memory device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (14)

1. A domain name resolution method is characterized by comprising the following steps:
receiving a domain name resolution request sent by a client;
determining an analysis link for analyzing the domain name based on the domain name analysis request;
if the resolution link is determined to point to a domain name server for resolving the domain name with the preset level, calling the domain name server to query address information prestored in an application cache region;
and feeding back a query result to the client.
2. The domain name resolution method according to claim 1, further comprising:
and updating the analysis information which is written into a database in advance and corresponds to a preset domain name to the application cache region at regular time, wherein the analysis information at least comprises the preset domain name and address information corresponding to the preset domain name.
3. The domain name resolution method according to claim 2, wherein the address information at least includes:
and the country, the province and the IP internet protocol address corresponding to the preset domain name.
4. The domain name resolution method according to claim 1, wherein the determining a resolution link for resolving the domain name based on the domain name resolution request comprises:
determining a domain name to be analyzed in the domain name analysis request;
inquiring a domain name server resolution record corresponding to the domain name to be resolved in an authoritative domain name server;
and determining the domain name server for analyzing the domain name to be analyzed based on the domain name server analysis record.
5. The domain name resolution method according to claim 1, wherein the invoking the domain name server to query address information pre-stored in an application cache area comprises:
calling the domain name server to analyze the domain name analysis request to obtain a domain name to be analyzed and a geographical area where a client IP address is located;
and inquiring address information corresponding to the domain name to be resolved in the application cache region based on the domain name to be resolved and the determined geographical region where the client IP address is located.
6. A domain name resolution apparatus, comprising:
the first processing unit is used for receiving a domain name resolution request sent by a client;
a second processing unit, configured to determine, based on the domain name resolution request, a resolution link for resolving the domain name;
the third processing unit is used for calling the domain name server to inquire address information prestored in an application cache region if the resolution link is determined to point to the domain name server used for resolving the domain name with the preset level;
and the fourth processing unit is used for feeding back the query result to the client.
7. The domain name resolution device according to claim 6, wherein the device further comprises:
and the fifth processing unit is used for updating the analysis information which is written into the database in advance and corresponds to the preset domain name to the application cache region at regular time, wherein the analysis information at least comprises the preset domain name and the address information corresponding to the preset domain name.
8. The domain name resolution device according to claim 7, wherein the address information at least includes:
and the country, the province and the IP internet protocol address corresponding to the preset domain name.
9. The domain name resolution device according to claim 6, wherein the second processing unit is specifically configured to
Determining a domain name to be analyzed in the domain name analysis request;
inquiring a domain name server resolution record corresponding to the domain name to be resolved in an authoritative domain name server;
and determining the domain name server for analyzing the domain name to be analyzed based on the domain name server analysis record.
10. The domain name resolution device according to claim 6, wherein the third processing unit is specifically configured to
Calling the domain name server to analyze the domain name analysis request to obtain a domain name to be analyzed and a geographical area where a client IP address is located;
and inquiring address information corresponding to the domain name to be resolved in the application cache region based on the domain name to be resolved and the determined geographical region where the client IP address is located.
11. A domain name resolution system, comprising:
the first domain name server is used for determining an analysis link of the domain name to be analyzed;
the second domain name server is used for inquiring address information which is stored in an application cache region in advance and corresponds to the domain name to be resolved when the domain name to be resolved is a preset level domain name; when the domain name to be analyzed is a preset level domain name, the analysis link points to the second domain name server;
the domain name configuration platform is used for writing analysis information corresponding to a preset domain name into a database, wherein the analysis information at least comprises the preset domain name and address information corresponding to the preset domain name; and the analysis information in the database is used for updating to the application cache region.
12. The domain name resolution system according to claim 11, wherein the address information at least includes:
and the country, the province and the IP internet protocol address corresponding to the preset domain name.
13. A server, comprising: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the method of any of claims 1 to 5 when the computer program is run.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202111322342.1A 2021-11-09 2021-11-09 Domain name resolution method, domain name resolution device, server, and storage medium Pending CN114205330A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111322342.1A CN114205330A (en) 2021-11-09 2021-11-09 Domain name resolution method, domain name resolution device, server, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111322342.1A CN114205330A (en) 2021-11-09 2021-11-09 Domain name resolution method, domain name resolution device, server, and storage medium

Publications (1)

Publication Number Publication Date
CN114205330A true CN114205330A (en) 2022-03-18

Family

ID=80647084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111322342.1A Pending CN114205330A (en) 2021-11-09 2021-11-09 Domain name resolution method, domain name resolution device, server, and storage medium

Country Status (1)

Country Link
CN (1) CN114205330A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115460169A (en) * 2022-09-06 2022-12-09 中国电子信息产业集团有限公司第六研究所 Domain name resolution method, system, electronic device and computer readable storage medium
CN115834535A (en) * 2022-10-17 2023-03-21 北京奇艺世纪科技有限公司 Domain name resolution method and device
CN117082029A (en) * 2023-10-18 2023-11-17 联通在线信息科技有限公司 Access method and device based on line cache, electronic equipment and storage medium
CN117692253A (en) * 2024-02-01 2024-03-12 鹏城实验室 Domain name security method, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108650244A (en) * 2018-04-24 2018-10-12 网宿科技股份有限公司 A kind of domain name analytic method, terminal and recurrence dns server
CN110474994A (en) * 2018-05-10 2019-11-19 中国移动通信集团有限公司 Domain name analytic method, device, electronic equipment and storage medium
US20200220840A1 (en) * 2018-02-28 2020-07-09 Wangsu Science & Technology Co., Ltd. Method, server and system for resolving domain name
CN112600868A (en) * 2020-11-10 2021-04-02 清华大学 Domain name resolution method, domain name resolution device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200220840A1 (en) * 2018-02-28 2020-07-09 Wangsu Science & Technology Co., Ltd. Method, server and system for resolving domain name
CN108650244A (en) * 2018-04-24 2018-10-12 网宿科技股份有限公司 A kind of domain name analytic method, terminal and recurrence dns server
CN110474994A (en) * 2018-05-10 2019-11-19 中国移动通信集团有限公司 Domain name analytic method, device, electronic equipment and storage medium
CN112600868A (en) * 2020-11-10 2021-04-02 清华大学 Domain name resolution method, domain name resolution device and electronic equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115460169A (en) * 2022-09-06 2022-12-09 中国电子信息产业集团有限公司第六研究所 Domain name resolution method, system, electronic device and computer readable storage medium
CN115834535A (en) * 2022-10-17 2023-03-21 北京奇艺世纪科技有限公司 Domain name resolution method and device
CN117082029A (en) * 2023-10-18 2023-11-17 联通在线信息科技有限公司 Access method and device based on line cache, electronic equipment and storage medium
CN117082029B (en) * 2023-10-18 2024-02-27 联通在线信息科技有限公司 Access method and device based on line cache, electronic equipment and storage medium
CN117692253A (en) * 2024-02-01 2024-03-12 鹏城实验室 Domain name security method, system and storage medium
CN117692253B (en) * 2024-02-01 2024-05-07 鹏城实验室 Domain name security method, system and storage medium

Similar Documents

Publication Publication Date Title
US10148612B2 (en) Method and system for increasing speed of domain name system resolution within a computing device
CN114205330A (en) Domain name resolution method, domain name resolution device, server, and storage medium
US7769826B2 (en) Systems and methods of providing DNS services using separate answer and referral caches
US9231903B2 (en) System and method for resolving a DNS request using metadata
US20060218289A1 (en) Systems and methods of registering and utilizing domain names
US7225272B2 (en) Method and apparatus for providing name services
CN111314472B (en) Domain name resolution method, domain name resolution server and terminal equipment
US7774432B2 (en) Registering and using multilingual domain names
WO2017173766A1 (en) Domain name parsing acceleration method, system and apparatus
US10819674B2 (en) Methods, apparatuses, and computer programs for data processing, and hierarchical domain name system zone files
US20060265516A1 (en) Generic top-level domain re-routing system
AU2013206327B2 (en) Systems and methods for automatically providing whois service to top level domains
US10360292B2 (en) Lightweight web page generation
CN107786678B (en) Domain name resolution method, device and system
CN115297088A (en) Domain name resolution system and method in cloud computing environment
CN116319113B (en) Domain name resolution abnormality detection method and electronic equipment
CN110677512B (en) Address resolution method and device
WO2005093999A1 (en) Systems and methods of registering and utilizing domain names
CN114500456A (en) DNS scheduling optimization method and device based on full-network sniffing and computing equipment
US10659424B2 (en) Determining status of domain name registration
CN114760270B (en) Method and device for generating user equipment fingerprint
WO2008048061A1 (en) Method for processing native language internet address and storage medium for saving program of executing the same
CN117614932A (en) Domain name resolution method, device, electronic equipment and readable storage medium
JP3834770B2 (en) Name resolution method and apparatus
CN117692173A (en) Request message processing method, system and related equipment

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