CN115297085B - Domain name resolution updating method and device, electronic equipment and storage medium - Google Patents

Domain name resolution updating method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115297085B
CN115297085B CN202210757222.2A CN202210757222A CN115297085B CN 115297085 B CN115297085 B CN 115297085B CN 202210757222 A CN202210757222 A CN 202210757222A CN 115297085 B CN115297085 B CN 115297085B
Authority
CN
China
Prior art keywords
address
domain name
geographic area
updated
update notification
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
CN202210757222.2A
Other languages
Chinese (zh)
Other versions
CN115297085A (en
Inventor
黄茁壮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202210757222.2A priority Critical patent/CN115297085B/en
Publication of CN115297085A publication Critical patent/CN115297085A/en
Application granted granted Critical
Publication of CN115297085B publication Critical patent/CN115297085B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a domain name resolution updating method, a domain name resolution updating device, electronic equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: when detecting the change of the IP address in the mapping relation corresponding to any domain name, determining the changed IP address to obtain the IP address to be updated; issuing update notification for any domain name to each DNS server; and sending a resolution content update notification for any domain name to each client in the target geographic area, so that each client requests the IP address to be updated from any server in each DNS server after receiving the resolution content update notification. By the scheme, the aim of improving the updating efficiency of domain name resolution can be fulfilled.

Description

Domain name resolution updating method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for updating domain name resolution, an electronic device, and a storage medium.
Background
Network communications are mostly based on IP addresses (Internet Protocol Address, internet protocol addresses), but IP addresses are often changed and are difficult to remember, and in practice, more are communicated using domain names. Specifically, when a Domain name is used for network access, domain name resolution is required through DNS (Domain NAME SYSTEM ) service, that is, the Domain name is translated into an IP address; thereby obtaining the IP address to be utilized in the network access process.
The traditional DNS service is divided into a multi-layer structure, and the domain name resolution content (such as the corresponding relation between the domain name and the IP address) of each domain name is stored at the bottom layer or higher layer; in the domain name resolution process, the client can inquire upwards layer by layer until a service node or a topmost service node which caches domain name resolution contents related to the domain name to be identified is inquired, so that a domain name resolution result is obtained.
In the related art, if the domain name resolution content is changed, the changed domain name resolution content is issued layer by layer based on the multi-layer structure, so that the domain name resolution content is updated to the client, and a long time exists in the middle, usually more than 10 minutes, which results in lower updating efficiency of the domain name resolution.
Disclosure of Invention
The embodiment of the invention aims to provide a domain name resolution updating method, a domain name resolution updating device, electronic equipment and a storage medium, so as to improve the domain name resolution updating efficiency. The specific technical scheme is as follows:
in a first aspect of the present invention, there is provided a domain name resolution updating method, applied to a management server, the method including:
When detecting the change of the IP address in the mapping relation corresponding to any domain name, determining the changed IP address to obtain the IP address to be updated; wherein, the mapping relation corresponding to the domain name records the domain name and at least one corresponding IP address, each IP address corresponds to a designated geographic area, and when clients in the designated geographic area corresponding to each IP address resolve the domain name, the resolution content obtained is the IP address;
issuing update notification for any domain name to each DNS server; the update notification is used for indicating that the target geographic area corresponds to the IP address to be updated; the target geographic area is a designated geographic area corresponding to the changed IP address;
And sending a resolution content update notification for any domain name to each client in the target geographic area, so that each client requests the IP address to be updated from any server in each DNS server after receiving the resolution content update notification.
Optionally, before sending the resolution content update notification for the arbitrary domain name to each client in the target geographic area, the method further includes:
Detecting whether the target success rate is greater than a preset threshold value; wherein, the target success rate is: the success rate of updating notification aiming at any domain name is issued to each DNS server;
and if the judgment result is yes, executing the step of sending the analysis content update notification aiming at any domain name to each client in the target geographic area.
Optionally, the changing the IP address in the mapping relationship corresponding to the arbitrary domain name includes: the IP address in the mapping relation corresponding to any domain name is modified or increased.
Optionally, when detecting that the IP address in the mapping relationship corresponding to any domain name changes, determining the changed IP address to obtain the IP address to be updated includes:
if a change instruction of the IP address in the mapping relation corresponding to any domain name sent by the configuration platform is detected, the changed IP address is resolved from the change instruction, and the IP address to be updated is obtained.
In a second aspect of the present invention, there is also provided a domain name resolution updating method, applied to a client, the method including:
Receiving an analysis content update notification for any domain name sent by a management server; wherein, the domain name resolution content update notification is: the management server side sends update notification for any domain name to each DNS server and then sends the update notification to each client side in a target geographic area; the domain name of any domain is the domain name with changed IP address in the corresponding mapping relation, and the IP address to be updated is the changed IP address; the update notification is used for indicating that the target geographic area corresponds to an IP address to be updated; the target geographic area is a designated geographic area corresponding to the changed IP address; the mapping relation corresponding to the domain name is recorded with the domain name and at least one corresponding IP address, each IP address corresponds to a specified geographic area, and when a client in the specified geographic area corresponding to each IP address resolves the domain name, the resolution content obtained is the IP address;
The IP address to be updated is requested from any one of the respective DNS servers.
In a third aspect of the present invention, there is also provided an updating apparatus for domain name resolution, applied to a management server, where the apparatus includes:
The determining module is used for determining the changed IP address to obtain the IP address to be updated when detecting the change of the IP address in the mapping relation corresponding to any domain name; wherein, the mapping relation corresponding to the domain name records the domain name and at least one corresponding IP address, each IP address corresponds to a designated geographic area, and when clients in the designated geographic area corresponding to each IP address resolve the domain name, the resolution content obtained is the IP address;
The issuing module is used for issuing update notification aiming at any domain name to each DNS server; the update notification is used for indicating that the target geographic area corresponds to the IP address to be updated; the target geographic area is a designated geographic area corresponding to the changed IP address;
And the sending module is used for sending the analysis content update notification aiming at any domain name to each client in the target geographic area, so that each client requests the IP address to be updated from any server in each DNS server after receiving the analysis content update notification.
In a fourth aspect of the present invention, there is also provided an updating apparatus for domain name resolution, applied to a client, the apparatus including:
The receiving module is used for receiving the analysis content update notification aiming at any domain name and sent by the management server; wherein, the domain name resolution content update notification is: the management server side sends update notification for any domain name to each DNS server and then sends the update notification to each client side in a target geographic area; the domain name of any domain is the domain name with changed IP address in the corresponding mapping relation, and the IP address to be updated is the changed IP address; the update notification is used for indicating that the target geographic area corresponds to an IP address to be updated; the target geographic area is a designated geographic area corresponding to the changed IP address; the mapping relation corresponding to the domain name is recorded with the domain name and at least one corresponding IP address, each IP address corresponds to a specified geographic area, and when a client in the specified geographic area corresponding to each IP address resolves the domain name, the resolution content obtained is the IP address;
And the request module is used for requesting the IP address to be updated from any one of the DNS servers.
In a fifth aspect of the present invention, there is also provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
A memory for storing a computer program;
And the processor is used for realizing any one of the above updating method steps of domain name resolution when executing the program stored in the memory.
In yet another aspect of the present invention, there is further provided a computer readable storage medium having a computer program stored therein, the computer program when executed by a processor implementing any one of the above-described updating methods of domain name resolution.
In yet another aspect of the present invention, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform the method of updating domain name resolution of any of the above.
The embodiment of the invention has the beneficial effects that:
According to the updating scheme of domain name resolution provided by the embodiment of the invention, when domain name resolution is updated, a client side does not need to inquire IP addresses corresponding to domain names layer by layer from a server side; after the IP address in the mapping relation corresponding to any domain name is changed, the management server determines the changed IP address to obtain the IP address to be updated; and then issuing an update notification for any domain name to each DNS server, and directly notifying each client in the target geographic area, so that each client requests target resolution content from any server of each DNS server. Therefore, the problem of low efficiency in domain name resolution updating in the related technology can be solved by the scheme, so that the updating efficiency of domain name resolution is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a flowchart of a domain name resolution updating method provided from the management server side according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for updating domain name resolution provided from a client perspective according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an embodiment of updating domain name resolution according to an embodiment of the present invention;
FIG. 4 is another schematic diagram of an embodiment of updating domain name resolution according to an embodiment of the present invention;
Fig. 5 is a schematic structural diagram of a domain name resolution updating device provided from a management server according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a domain name resolution updating device provided by a client according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a domain name resolution updating system according to an embodiment of the present invention;
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
When the domain name resolution content is changed, the updating of the domain name resolution needs to be completed, and the updating of the domain name resolution can also be called as the effect of the domain name resolution, that is, the client end finally obtains the IP address in the mapping relation corresponding to the changed domain name.
In the related art, for the IP address corresponding to the domain name that is changed, the IP address needs to be issued to each layer of the DNS domain name system layer by layer, and finally issued to the client, which results in a longer update time of domain name resolution, generally more than 10 minutes. When the IP address corresponding to the domain name is just changed, the layer-by-layer delivery to each layer of the DNS domain name system is required, so that the change of the IP address corresponding to the domain name is likely to occur, but the result of the client query is the IP address corresponding to the domain name that was changed last time. In this case, the update efficiency of domain name resolution is more remarkable.
Based on the above, the invention provides a domain name resolution updating method, a device, electronic equipment and a storage medium, so that the updating efficiency in domain name resolution updating is improved.
The following first describes a domain name resolution updating method provided by the embodiment of the present invention from the perspective of a management server.
The method for updating domain name resolution provided by the embodiment of the invention can be applied to a management server, wherein the management server is a server for managing each DNS server, and the client is functional software running on electronic equipment. In a specific application, the electronic device may be a terminal device such as a smart phone, a tablet computer, etc. And, the client may be any client having a requirement for querying domain name resolution content, for example: the client may be an entertainment client, a news client, an instant messaging client, and so on.
The method for updating domain name resolution provided by the embodiment of the invention can comprise the following steps:
When detecting the change of the IP address in the mapping relation corresponding to any domain name, determining the changed IP address to obtain the IP address to be updated; wherein, the mapping relation corresponding to the domain name records the domain name and at least one corresponding IP address, each IP address corresponds to a designated geographic area, and when clients in the designated geographic area corresponding to each IP address resolve the domain name, the resolution content obtained is the IP address;
issuing update notification for any domain name to each DNS server; the update notification is used for indicating that the target geographic area corresponds to the IP address to be updated; the target geographic area is a designated geographic area corresponding to the changed IP address;
And sending a resolution content update notification for any domain name to each client in the target geographic area, so that each client requests the IP address to be updated from any server in each DNS server after receiving the resolution content update notification.
According to the updating scheme of domain name resolution provided by the embodiment of the invention, when domain name resolution is updated, a client side does not need to inquire IP addresses corresponding to domain names layer by layer from a server side; after the IP address in the mapping relation corresponding to any domain name is changed, the management server determines the changed IP address to obtain the IP address to be updated; and then issuing an update notification for any domain name to each DNS server, and directly notifying each client in the target geographic area, so that each client requests target resolution content from any server of each DNS server. Therefore, the problem of low efficiency in domain name resolution updating in the related technology can be solved by the scheme, so that the updating efficiency of domain name resolution is improved.
The method for updating domain name resolution provided by the embodiment of the invention from the management server side is specifically described below with reference to the accompanying drawings.
As shown in fig. 1, the method for updating domain name resolution provided by the embodiment of the present invention is applied to a management server, and the method may include the following steps S101 to S103:
s101: when detecting the change of the IP address in the mapping relation corresponding to any domain name, determining the changed IP address to obtain the IP address to be updated;
Wherein, the mapping relation corresponding to the domain name records the domain name and at least one corresponding IP address, each IP address corresponds to a designated geographic area, and when clients in the designated geographic area corresponding to each IP address resolve the domain name, the resolution content obtained is the IP address;
When the change of the IP address in the mapping relation corresponding to any domain name is detected, the update of domain name resolution is required, and the changed IP address can be determined first to obtain the IP address to be updated. In one implementation, if a change instruction of an IP address in a mapping relationship corresponding to any domain name sent by a configuration platform is detected, the changed IP address is resolved from the change instruction, and an IP address to be updated is obtained. That is, if the management server detects a change instruction of the IP address in the mapping relationship corresponding to any domain name, which is sent by the configuration personnel through the configuration platform, and indicates that the IP address needs to be updated, the management server can determine the changed IP address, and obtain the IP address to be updated.
The IP address change in the mapping relationship corresponding to any domain name may be: the IP address in the mapping relation corresponding to any domain name is modified or increased.
It may be appreciated that, by way of example, in one implementation, the instruction for changing the IP address in the mapping relationship corresponding to any domain name may include:
The instruction for modifying the IP address of one or more geographic areas corresponding to a domain name, where, correspondingly, the changing the IP address in the mapping relationship corresponding to any domain name includes: any domain name is modified for the IP address of at least one geographic area. For this implementation, if an instruction for modifying the IP address of one or more geographic areas corresponding to a domain name is detected, the modified IP address of at least one geographic area corresponding to the domain name may be determined, so as to obtain the IP address to be updated. For example, if the geographic area corresponding to the domain name a includes: region 1, region 2, and region 3, and each geographic region contains a different IP address: 1.1.1.1, 2.2.2.2 and 3.3.3.3; if the geographical area corresponding to the domain name A is: if the IP addresses of the area 1 and the area 2 are modified to be 2.2.2.2 and 1.1.1.1, the IP addresses 2.2.2.2 and the IP addresses 1.1.1.1 can be determined as modified IP addresses, and the IP addresses to be updated for the area 1 and the area 2 are obtained. For example, in another implementation, the instruction for changing the IP address in the mapping relationship corresponding to any domain name may include:
For a domain name, adding an instruction of a corresponding relation between the domain name and an IP address in a certain geographical area, wherein the changing of the IP address in the mapping relation corresponding to any domain name includes: the IP address for at least one geographic area is increased. For this implementation, if a domain name is currently accessible only through clients in a specific geographic area, that is, the domain name only has an IP address for the specific geographic area, the IP addresses for other geographic areas may be increased, so that clients in other areas may access the domain name; at this time, the added IP address of at least one geographical area may be determined as the changed IP address, to obtain the IP address to be updated. Exemplary: the domain name B can only be accessed in China, and for a foreign authorized geographic area 4, the IP address aiming at the geographic area 4 can be increased so that a user can access the domain name B abroad; and the IP address of the geographical area 4 with the domain name B added can be directly determined as the changed IP address, so as to obtain the IP address to be updated.
The above-described manner of determining the target domain name in which the domain name resolution content is changed is merely an example, and should not be construed as limiting the present invention.
S102: issuing update notification for any domain name to each DNS server;
the update notification is used for indicating that the target geographic area corresponds to the IP address to be updated; the target geographic area is a designated geographic area corresponding to the changed IP address;
After obtaining the IP address to be updated, since the IP address to be updated corresponds to the target geographic area, and the IP address to be updated may correspond to the IP address to be updated for each geographic area, an update notification for any domain name and indicating that the target geographic area corresponds to the IP address to be updated may be issued to each DNS server. Thus, for the target geographic area, the subsequent steps are performed to implement the updating of domain name resolution of the target geographic area.
In order to realize the instant update of domain name resolution, each level of the DNS domain name system multi-layer structure needs to be skipped, so that the management server can firstly issue the IP address to be updated for any domain name to each DNS server, and the client can directly inquire the IP address to be updated from each DNS server.
It may be appreciated that in one implementation, the change of the IP address in the mapping relationship corresponding to any domain name includes: modifying the IP address in the mapping relation corresponding to any domain name; accordingly, the target geographic area includes: the designated geographic area to which the modified IP address corresponds occurs. For example, the above-described designated geographical area in which the correspondence between the domain name a and the IP address is modified, the area 1 and the area 2 may be regarded as target geographical areas.
In another implementation, the changing the IP address in the mapping relationship corresponding to any domain name includes: increasing the IP address in the mapping relation corresponding to any domain name; accordingly, the target geographic area includes: the designated geographic area to which the added IP address corresponds occurs. For example, the above-described designated geographical area in which the correspondence between the domain name B and the IP address is increased, the area 4 may be a target geographical area.
In addition, the specified geographic area corresponding to the changed IP address in each geographic area is determined as the target geographic area, so that the changed IP address to be updated can be accurately issued to the target geographic area, the resource waste is reduced, and the updating efficiency of domain name resolution updating is improved.
S103: sending a resolution content update notification for any domain name to each client in the target geographic area, so that each client requests the IP address to be updated from any server in each DNS server after receiving the resolution content update notification;
In order to complete the instant update of the domain name resolution, after the change of the IP address in the mapping relationship corresponding to any domain name is completed, the client needs to directly query and save the changed IP address to be updated. At this time, the management server may send a notification of updating the resolution content for any domain name to each client in the target geographic area, where the client knows that the IP address in the mapping relationship corresponding to any domain name is updated, and may request any server in each DNS server for the IP address to be updated, so that the instant update of domain name resolution is completed.
For example, in one implementation, the target success rate may be detected first, if it is greater than a preset threshold; wherein, the target success rate is: the success rate of updating notification aiming at any domain name is issued to each DNS server; and if the judgment result is yes, the current change is considered to be successful, and the step of sending the analysis content update notification aiming at any domain name to each client in the target geographic area is executed. Thereby completing the instant update of domain name resolution.
According to the updating scheme of domain name resolution provided by the embodiment of the invention, when domain name resolution is updated, a client side does not need to inquire IP addresses corresponding to domain names layer by layer from a server side; after the IP address in the mapping relation corresponding to any domain name is changed, the management server determines the changed IP address to obtain the IP address to be updated; and then issuing an update notification for any domain name to each DNS server, and directly notifying each client in the target geographic area, so that each client requests target resolution content from any server of each DNS server. Therefore, the problem of low efficiency in domain name resolution updating in the related technology can be solved by the scheme, so that the updating efficiency of domain name resolution is improved.
An update method for domain name resolution provided from the client side according to an embodiment of the present invention is described below with reference to fig. 2.
As shown in fig. 2, the method for updating domain name resolution provided in the present embodiment is applied to a client, and the method may include the following steps S201 to S202:
S201: receiving an analysis content update notification for any domain name sent by a management server;
wherein, the domain name resolution content update notification is: the management server side sends update notification for any domain name to each DNS server and then sends the update notification to each client side in a target geographic area; the domain name of any domain is the domain name with changed IP address in the corresponding mapping relation, and the IP address to be updated is the changed IP address; the update notification is used for indicating that the target geographic area corresponds to an IP address to be updated; the target geographic area is a designated geographic area corresponding to the changed IP address; the mapping relation corresponding to the domain name is recorded with the domain name and at least one corresponding IP address, each IP address corresponds to a specified geographic area, and when a client in the specified geographic area corresponding to each IP address resolves the domain name, the resolution content obtained is the IP address;
when the management server sends a notification of updating the resolution content for any domain name to the client, the client knows that the corresponding relationship between the domain name and the IP address of the corresponding geographical area is changed, and in order to complete updating of domain name resolution, a subsequent step needs to be executed.
For example, in one implementation, the client receiving the resolution content update notification for any domain name sent by the management server may be a DNS program on the client.
S202: requesting the IP address to be updated from any one of the DNS servers;
after receiving the notification that the management server sends the update of the resolution content for any domain name, the client can send a request to any server in all DNS servers to acquire and store the IP address to be updated.
For example, in one implementation, the DNS program of the client may issue a request to any of the various DNS servers to query for an IP address to be updated and update to the local cache.
According to the updating scheme of domain name resolution provided by the embodiment of the invention, when domain name resolution is updated, a client side does not need to inquire IP addresses corresponding to domain names layer by layer from a server side; after the IP address in the mapping relation corresponding to any domain name is changed, the management server determines the changed IP address to obtain the IP address to be updated; and then issuing an update notification for any domain name to each DNS server, and directly notifying each client in the target geographic area, so that each client requests target resolution content from any server of each DNS server. Therefore, the problem of low efficiency in domain name resolution updating in the related technology can be solved by the scheme, so that the updating efficiency of domain name resolution is improved.
In addition, any domain name corresponds to an IP address for each geographic region, i.e., domain name resolution is divided by geographic region. By dividing the domain name into geographical areas, the IP serving the client of each geographical area can be flexibly set for the domain name. And each geographical area corresponds to an IP range, i.e. if the IP of a client belongs to this IP range, the client will automatically divide into this geographical area.
The domain name configuration is maintained in conjunction with a tree structure, dividing the geographic area. For ease of understanding, the following description is provided in connection with fig. 3.
The root area in fig. 3 must set IP, and other areas automatically acquire IP from the upper layer if IP is not set.
Illustratively, if the IP of the root area is 6.6.6.6 and the asian area is not set, the IP of the upper layer, that is, IP6.6.6.6 of the root area is automatically acquired, and the IP of the asian area is 6.6.6.6.
By dividing the geographic areas, the geographic areas affected by the change of the IP address in the mapping relation corresponding to any domain name can be clearly determined, and the affected geographic areas (corresponding to the target geographic areas) can be notified in detail. And, when update notifications are sent to each client in the affected geographic area, all affected clients are notified. For example: if the IP address in the mapping relationship corresponding to any domain name is changed in the geographic area of china, each area of china is notified, for example: east China, north China, and cities in North China and east China, such as Beijing, shanghai, etc. The client corresponding to each affected region may request the target resolution content from any one of the DNS servers, thereby completing the updating of domain name resolution.
To facilitate understanding of the solution, a specific embodiment is described below in connection with fig. 4.
The embodiment can realize the updating method of domain name resolution provided by the embodiment of the invention through interaction of a domain name resolution management platform, domain name resolution service, center service, a message system and a client DNS program.
The domain name resolution management platform (corresponding to the configuration platform) is distinguished according to geographic positions, a tree structure (such as Asia-China-UNICOM-North China-Beijing, as shown in figure 3) can be constructed by combining operators and the geographic positions, one domain name can be provided with an IP (Internet protocol) at each layer of the tree structure, and a child node can automatically use the IP of a father node if not provided with the IP; the platform maintains the correspondence between the domain name and the IP (e.g., www.xxx.com domain name, service provided in beijing using 1.1.1.1, service provided in the open sea using 2.2.2.2); the platform also provides query and modification pages for administrator operations (e.g., change www.xxx.com to 1.2.3.4 in Beijing's IP, i.e., modify domain name); the platform supports output of full configuration policies (IP of all domain names in all areas) and incremental change policies (e.g. www.xxx.com IP in beijing is changed from 1.1.1.1 to 1.2.3.4).
The center service (corresponding to the management service end) connects the platform and the domain name resolution service, synchronously updates the strategy of the incremental change of the platform to the domain name resolution service cluster (for example, the IP of www.xxx.com in Beijing is changed to 1.2.3.4 on the platform, the platform informs the center service, and the center service distributes the updated data to each DNS domain name resolution server and gathers the updated result); after the updated data (corresponding to the IP address to be updated) is notified to the DNS domain name resolution server, if the success rate (corresponding to the target success rate) is higher than the set threshold, the analysis change details are notified to the clients corresponding to the geographic location (for example, the clients in beijing area are notified if beijing is modified, and the clients in the north of the china and all areas without independent resolution below the north of the china are notified if north of the china is modified).
Domain name resolution service (corresponding to each DNS server) can update its own local policy (i.e. update IP address to be updated, support incremental modification) according to the full or incremental policy; the domain name resolution service also provides a domain name resolution query service (e.g., resolution of user query www.xxx.com in Beijing yields 1.1.1.1, and user query in Shanghai yields 2.2.2.2).
The message system notifies the affected clients according to the change details, i.e. notifies the clients (such as APP on the mobile phone) of the updated information of the domain name.
The client DNS program, upon receipt of the notification, proactively queries the domain name resolution service for the latest IP and updates to the local cache (i.e., query resolution).
When a configurator modifies the corresponding relation between the domain name and the IP address in the domain name resolution management platform (wherein the configurator comprises one or more of modifying the corresponding relation between the domain name and the IP address or incrementally modifying the corresponding relation between the domain name and the IP address, namely, incrementally modifying the corresponding relation between the domain name and the IP address), the domain name resolution management platform sends the modified corresponding relation between the domain name and the IP address (corresponding to the updated data, namely, the IP address to be updated) to the central service; the center service sends the corresponding relation between the modified domain name and the IP address to the domain name resolution service and issues update to the message system; the domain name resolution service (namely DNS service, providing domain name resolution query service and supporting incremental modification) updates the corresponding relationship between the domain name and the IP address according to the content sent by the central service; the message system informs the affected clients according to the change details; the DNS program in the client queries the domain name resolution service for resolution (i.e., queries the updated IP address to be updated), and stores the correspondence between the updated domain name and the IP address in the local cache.
According to the updating scheme of domain name resolution provided by the embodiment of the invention, when domain name resolution is updated, a client side does not need to inquire IP addresses corresponding to domain names layer by layer from a server side; after the IP address in the mapping relation corresponding to any domain name is changed, the management server determines the changed IP address to obtain the IP address to be updated; and then issuing an update notification for any domain name to each DNS server, and directly notifying each client in the target geographic area, so that each client requests target resolution content from any server of each DNS server. Therefore, the problem of low efficiency in domain name resolution updating in the related technology can be solved by the scheme, so that the updating efficiency of domain name resolution is improved.
In contrast to the embodiment of the method described above, as shown in fig. 5, an embodiment of the present invention provides an updating device for domain name resolution, which is applied to a management server, where the device includes:
A determining module 510, configured to determine, when detecting that an IP address in a mapping relationship corresponding to any domain name changes, the changed IP address, and obtain an IP address to be updated; wherein, the mapping relation corresponding to the domain name records the domain name and at least one corresponding IP address, each IP address corresponds to a designated geographic area, and when clients in the designated geographic area corresponding to each IP address resolve the domain name, the resolution content obtained is the IP address;
A issuing module 520, configured to issue update notifications for the arbitrary domain name to each DNS server; the update notification is used for indicating that the target geographic area corresponds to the IP address to be updated; the target geographic area is a designated geographic area corresponding to the changed IP address;
And a sending module 530, configured to send a resolution content update notification for the arbitrary domain name to each client in the target geographic area, so that each client requests, after receiving the resolution content update notification, the IP address to be updated from any server in each DNS server.
According to the updating scheme of domain name resolution provided by the embodiment of the invention, when domain name resolution is updated, a client side does not need to inquire IP addresses corresponding to domain names layer by layer from a server side; after the IP address in the mapping relation corresponding to any domain name is changed, the management server determines the changed IP address to obtain the IP address to be updated; and then issuing an update notification for any domain name to each DNS server, and directly notifying each client in the target geographic area, so that each client requests target resolution content from any server of each DNS server. Therefore, the problem of low efficiency in domain name resolution updating in the related technology can be solved by the scheme, so that the updating efficiency of domain name resolution is improved.
Optionally, the apparatus further comprises:
the detection module is used for detecting whether the target success rate is greater than a preset threshold value or not; wherein, the target success rate is: the success rate of updating notification aiming at any domain name is issued to each DNS server;
and if the judgment result is yes, executing the step of sending the analysis content update notification aiming at any domain name to each client in the target geographic area.
Optionally, the changing the IP address in the mapping relationship corresponding to the arbitrary domain name includes: the IP address in the mapping relation corresponding to any domain name is modified or increased.
Optionally, the determining module is specifically configured to:
if a change instruction of the IP address in the mapping relation corresponding to any domain name sent by the configuration platform is detected, the changed IP address is resolved from the change instruction, and the IP address to be updated is obtained.
In comparison with the above embodiment of the device, the embodiment of the present invention further provides a device for updating domain name resolution, which is applied to a client, as shown in fig. 6, and the device includes:
A receiving module 610, configured to receive an update notification of resolution content for any domain name sent by a management server; wherein, the domain name resolution content update notification is: the management server side sends update notification for any domain name to each DNS server and then sends the update notification to each client side in a target geographic area; the domain name of any domain is the domain name with changed IP address in the corresponding mapping relation, and the IP address to be updated is the changed IP address; the update notification is used for indicating that the target geographic area corresponds to an IP address to be updated; the target geographic area is a designated geographic area corresponding to the changed IP address; the mapping relation corresponding to the domain name is recorded with the domain name and at least one corresponding IP address, each IP address corresponds to a specified geographic area, and when a client in the specified geographic area corresponding to each IP address resolves the domain name, the resolution content obtained is the IP address;
A request module 620, configured to request the IP address to be updated from any one of the DNS servers.
According to the updating scheme of domain name resolution provided by the embodiment of the invention, when domain name resolution is updated, a client side does not need to inquire IP addresses corresponding to domain names layer by layer from a server side; after the IP address in the mapping relation corresponding to any domain name is changed, the management server determines the changed IP address to obtain the IP address to be updated; and then issuing an update notification for any domain name to each DNS server, and directly notifying each client in the target geographic area, so that each client requests target resolution content from any server of each DNS server. Therefore, the problem of low efficiency in domain name resolution updating in the related technology can be solved by the scheme, so that the updating efficiency of domain name resolution is improved.
With respect to the above device embodiment, as shown in fig. 7, an embodiment of the present invention further provides a domain name resolution update system, including: a management server 710 and a client 720;
The management server 710 is configured to determine, after the IP address in the mapping relationship corresponding to any domain name is changed, the changed IP address, and obtain an IP address to be updated; and then issuing update notification for any domain name to each DNS server, and directly notifying each client in the target geographic area, so that each client requests an IP address to be updated from any server of each DNS server.
The client 720 is configured to receive an update notification of resolution content for any domain name sent by the management server; and after receiving the update notification, requesting an IP address to be updated from any one of the DNS servers.
Wherein, the domain name resolution content update notification is: the management server side sends update notification for any domain name to each DNS server and then sends the update notification to each client side in a target geographic area; the domain name of any domain is the domain name with changed IP address in the corresponding mapping relation, and the IP address to be updated is the changed IP address; the update notification is used for indicating that the target geographic area corresponds to an IP address to be updated; the target geographic area is a designated geographic area corresponding to the changed IP address; the mapping relation corresponding to the domain name is recorded with the domain name and at least one corresponding IP address, each IP address corresponds to a specified geographic area, and when a client in the specified geographic area corresponding to each IP address resolves the domain name, the resolution content obtained is the IP address;
for specific implementation steps of the management server 710 and the client 720 in this embodiment, reference may be made to the steps in the foregoing embodiments, which are not described herein.
According to the updating scheme of domain name resolution provided by the embodiment of the invention, when domain name resolution is updated, a client side does not need to inquire IP addresses corresponding to domain names layer by layer from a server side; after the IP address in the mapping relation corresponding to any domain name is changed, the management server determines the changed IP address to obtain the IP address to be updated; and then issuing an update notification for any domain name to each DNS server, and directly notifying each client in the target geographic area, so that each client requests target resolution content from any server of each DNS server. Therefore, the problem of low efficiency in domain name resolution updating in the related technology can be solved by the scheme, so that the updating efficiency of domain name resolution is improved.
The embodiment of the present invention further provides an electronic device, as shown in fig. 8, including a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete communication with each other through the communication bus 804,
A memory 803 for storing a computer program;
The processor 801 is configured to implement any domain name resolution updating method when executing the program stored in the memory 803.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or may include non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, abbreviated as CPU), a network processor (Network Processor, abbreviated as NP), etc.; but may also be a digital signal Processor (DIGITAL SIGNAL Processor, DSP), application Specific Integrated Circuit (ASIC), field-Programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In yet another embodiment of the present invention, a computer readable storage medium is provided, where a computer program is stored, where the computer program is executed by a processor to implement the method for updating domain name resolution according to any one of the foregoing embodiments.
In yet another embodiment of the present invention, a computer program product comprising instructions that, when executed on a computer, cause the computer to perform the method for updating domain name resolution described in any of the above embodiments is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk Solid STATE DISK (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (9)

1. The updating method of domain name resolution is characterized by being applied to a management server, wherein the management server is a server for managing each DNS server, and the method comprises the following steps:
When detecting the change of the IP address in the mapping relation corresponding to any domain name, determining the changed IP address to obtain the IP address to be updated; wherein, the mapping relation corresponding to the domain name records the domain name and at least one corresponding IP address, each IP address corresponds to a designated geographic area, and when clients in the designated geographic area corresponding to each IP address resolve the domain name, the resolution content obtained is the IP address;
issuing update notification for any domain name to each DNS server; the update notification is used for indicating that the target geographic area corresponds to the IP address to be updated; the target geographic area is a designated geographic area corresponding to the changed IP address;
After the IP address in the mapping relation corresponding to any domain name is changed, sending a resolution content update notification for any domain name to each client in the target geographic area, so that each client requests the IP address to be updated from any server in each DNS server after receiving the resolution content update notification.
2. The method of claim 1, wherein before sending the resolution content update notification for the arbitrary domain name to each client within the target geographic area, further comprising:
Detecting whether the target success rate is greater than a preset threshold value; wherein, the target success rate is: the success rate of updating notification aiming at any domain name is issued to each DNS server;
and if the judgment result is yes, executing the step of sending the analysis content update notification aiming at any domain name to each client in the target geographic area.
3. The method according to claim 1 or 2, wherein the changing the IP address in the mapping relationship corresponding to the domain name includes: the IP address in the mapping relation corresponding to any domain name is modified or increased.
4. The method according to claim 1 or 2, wherein when detecting the change of the IP address in the mapping relationship corresponding to any domain name, determining the changed IP address to obtain the IP address to be updated includes:
if a change instruction of the IP address in the mapping relation corresponding to any domain name sent by the configuration platform is detected, the changed IP address is resolved from the change instruction, and the IP address to be updated is obtained.
5. An updating method of domain name resolution, which is applied to a client, the method comprising:
Receiving an analysis content update notification for any domain name sent by a management server; the management server is a server for managing each DNS server, and the domain name resolution content update notification is: after issuing update notification for any domain name to each DNS server, the management server sends the update notification to each client in a target geographic area after the IP address in the mapping relation corresponding to any domain name is changed; any domain name is a domain name with changed IP address in the corresponding mapping relation; the update notification is used for indicating that the target geographic area corresponds to an IP address to be updated, and the IP address to be updated is a changed IP address; the target geographic area is a designated geographic area corresponding to the changed IP address; the mapping relation corresponding to the domain name is recorded with the domain name and at least one corresponding IP address, each IP address corresponds to a specified geographic area, and when a client in the specified geographic area corresponding to each IP address resolves the domain name, the resolution content obtained is the IP address;
The IP address to be updated is requested from any one of the respective DNS servers.
6. An updating device for domain name resolution, which is applied to a management server, wherein the management server is a server for managing each DNS server, and the device comprises:
The determining module is used for determining the changed IP address to obtain the IP address to be updated when detecting the change of the IP address in the mapping relation corresponding to any domain name; wherein, the mapping relation corresponding to the domain name records the domain name and at least one corresponding IP address, each IP address corresponds to a designated geographic area, and when clients in the designated geographic area corresponding to each IP address resolve the domain name, the resolution content obtained is the IP address;
The issuing module is used for issuing update notification aiming at any domain name to each DNS server; the update notification is used for indicating that the target geographic area corresponds to the IP address to be updated; the target geographic area is a designated geographic area corresponding to the changed IP address;
And the sending module is used for sending the analysis content update notification for any domain name to each client in the target geographic area after the IP address in the mapping relation corresponding to any domain name is changed, so that each client requests the IP address to be updated from any server in each DNS server after receiving the analysis content update notification.
7. An updating apparatus for domain name resolution, applied to a client, the apparatus comprising:
The receiving module is used for receiving the analysis content update notification aiming at any domain name and sent by the management server; the management server is a server for managing each DNS server, and the domain name resolution content update notification is: after issuing update notification for any domain name to each DNS server, the management server sends the update notification to each client in a target geographic area after the IP address in the mapping relation corresponding to any domain name is changed; any domain name is a domain name with changed IP address in the corresponding mapping relation; the update notification is used for indicating that the target geographic area corresponds to an IP address to be updated, and the IP address to be updated is a changed IP address; the target geographic area is a designated geographic area corresponding to the changed IP address; the mapping relation corresponding to the domain name is recorded with the domain name and at least one corresponding IP address, each IP address corresponds to a specified geographic area, and when a client in the specified geographic area corresponding to each IP address resolves the domain name, the resolution content obtained is the IP address;
And the request module is used for requesting the IP address to be updated from any one of the DNS servers.
8. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
A memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-5 when executing a program stored on a memory.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-5.
CN202210757222.2A 2022-06-29 2022-06-29 Domain name resolution updating method and device, electronic equipment and storage medium Active CN115297085B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210757222.2A CN115297085B (en) 2022-06-29 2022-06-29 Domain name resolution updating method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210757222.2A CN115297085B (en) 2022-06-29 2022-06-29 Domain name resolution updating method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115297085A CN115297085A (en) 2022-11-04
CN115297085B true CN115297085B (en) 2024-04-23

Family

ID=83822351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210757222.2A Active CN115297085B (en) 2022-06-29 2022-06-29 Domain name resolution updating method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115297085B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116389411B (en) * 2023-06-07 2023-08-18 阿里巴巴(中国)有限公司 Domain name data processing method, device and equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8200842B1 (en) * 2006-10-25 2012-06-12 Cellco Partnership Automatic traffic control using dynamic DNS update
CN103856569A (en) * 2012-11-28 2014-06-11 方正宽带网络服务股份有限公司 Method and device for synchronizing domain name system resource information
CN106888280A (en) * 2017-03-29 2017-06-23 北京奇虎科技有限公司 DNS update methods, apparatus and system
WO2018233140A1 (en) * 2017-06-24 2018-12-27 平安科技(深圳)有限公司 Domain name resolution apparatus and method and computer readable storage medium
CN109842690A (en) * 2017-11-24 2019-06-04 迈普通信技术股份有限公司 A kind of DNS data update method, system and equipment
CN109842497A (en) * 2017-11-24 2019-06-04 贵州白山云科技股份有限公司 Method and device, terminal device and the configuration more new system that the configuration of dns server updates
CN113271326A (en) * 2020-02-17 2021-08-17 阿里巴巴集团控股有限公司 Network protocol address scheduling method and device and electronic equipment
CN114124888A (en) * 2020-08-25 2022-03-01 ***通信有限公司研究院 Domain name resolution method and device
CN114205326A (en) * 2021-11-24 2022-03-18 腾讯科技(深圳)有限公司 Communication protocol library updating method and device, electronic equipment and storage medium
CN114338604A (en) * 2021-12-31 2022-04-12 北京奇艺世纪科技有限公司 DNS configuration updating method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100776047B1 (en) * 2006-01-19 2007-11-16 삼성전자주식회사 Operating method of domain name system for updating adress information of server and domain name system of enabling the method
JP2009165041A (en) * 2008-01-09 2009-07-23 Sony Corp Net work apparatus, address revision notifying method, and notifying program of address revision
US9497063B2 (en) * 2014-05-16 2016-11-15 Iboss, Inc. Maintaining IP tables

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8200842B1 (en) * 2006-10-25 2012-06-12 Cellco Partnership Automatic traffic control using dynamic DNS update
CN103856569A (en) * 2012-11-28 2014-06-11 方正宽带网络服务股份有限公司 Method and device for synchronizing domain name system resource information
CN106888280A (en) * 2017-03-29 2017-06-23 北京奇虎科技有限公司 DNS update methods, apparatus and system
WO2018233140A1 (en) * 2017-06-24 2018-12-27 平安科技(深圳)有限公司 Domain name resolution apparatus and method and computer readable storage medium
CN109842690A (en) * 2017-11-24 2019-06-04 迈普通信技术股份有限公司 A kind of DNS data update method, system and equipment
CN109842497A (en) * 2017-11-24 2019-06-04 贵州白山云科技股份有限公司 Method and device, terminal device and the configuration more new system that the configuration of dns server updates
CN113271326A (en) * 2020-02-17 2021-08-17 阿里巴巴集团控股有限公司 Network protocol address scheduling method and device and electronic equipment
CN114124888A (en) * 2020-08-25 2022-03-01 ***通信有限公司研究院 Domain name resolution method and device
CN114205326A (en) * 2021-11-24 2022-03-18 腾讯科技(深圳)有限公司 Communication protocol library updating method and device, electronic equipment and storage medium
CN114338604A (en) * 2021-12-31 2022-04-12 北京奇艺世纪科技有限公司 DNS configuration updating method and system

Also Published As

Publication number Publication date
CN115297085A (en) 2022-11-04

Similar Documents

Publication Publication Date Title
RU2739495C1 (en) Service registration and detection in communication network
WO2019165665A1 (en) Domain name resolution method, server and system
US20180205697A1 (en) Managing content delivery network service providers by a content broker
CN110677405B (en) Data processing method and device, electronic equipment and storage medium
EP2356577B1 (en) Request routing and updating routing information utilizing client location information
WO2021135835A1 (en) Resource acquisition method and apparatus, and node device in cdn network
US9465819B2 (en) Distributed database
US20120036246A1 (en) Methods, systems, and computer readable media for distributing diameter network management information
CN111212134A (en) Request message processing method and device, edge computing system and electronic equipment
CN110049503B (en) Method and equipment for acquiring data
US11494314B2 (en) Caching system for eventually consistent services
CN113037855B (en) Multimedia access system, method, device, terminal and medium
CN104378452A (en) Method, device and system for domain name resolution
CN111885216B (en) DNS query method, device, equipment and storage medium
CN112513830A (en) Back-source method and related device in content distribution network
CN115297085B (en) Domain name resolution updating method and device, electronic equipment and storage medium
CN116405460A (en) Domain name resolution method and device for content distribution network, electronic equipment and storage medium
CN113271359A (en) Method and device for refreshing cache data, electronic equipment and storage medium
CN111597259B (en) Data storage system, method, device, electronic equipment and storage medium
CN113067803A (en) Resource isolation system, request processing method and request processing device
CN114006915B (en) Resource request method, device, equipment and computer readable storage medium
CN113949708A (en) Service bus design method supporting gray scale upgrading access flow control
WO2019074546A1 (en) Conveying information in hostname in a content delivery network (cdn)
KR20100035681A (en) Data storing system and data processing method of informational household appliance
CN111104376B (en) Resource file query method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant