CN113938462A - Domain name resolution method, domain name resolution device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN113938462A
CN113938462A CN202011579117.1A CN202011579117A CN113938462A CN 113938462 A CN113938462 A CN 113938462A CN 202011579117 A CN202011579117 A CN 202011579117A CN 113938462 A CN113938462 A CN 113938462A
Authority
CN
China
Prior art keywords
domain name
plug
target
name resolution
group
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
CN202011579117.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.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding 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 Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202011579117.1A priority Critical patent/CN113938462A/en
Publication of CN113938462A publication Critical patent/CN113938462A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a domain name resolution method, a domain name resolution device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a domain name resolution request sent by a user side; determining a target execution rule group corresponding to a target domain name in the domain name resolution request in a configuration file; and executing the target execution rule group to acquire the internet protocol address corresponding to the target domain name. According to the embodiment of the invention, different execution rule groups are configured for different domain names through the configuration file, so that the fine control of domain name resolution is realized, the existing processing rules are not influenced in the expansion process of the domain name resolution function by using the configuration file, and the function expansibility of the domain name resolution process is improved.

Description

Domain name resolution method, domain name resolution device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computer application, in particular to a domain name resolution method and device, electronic equipment and a storage medium.
Background
The rapid development of the network greatly increases the access amount of the server, and in the process of accessing the server, a Domain Name System (DNS) server needs to convert the Domain Name of the server into an Internet Protocol (IP) address.
In the process of implementing the invention, the following technical problems are found in the prior art:
in the existing HTTPDNS method, a client directly accesses an HTTPDNS interface to obtain an IP address configured on an HTTPDNS platform, and then the client accesses a server according to the IP address. However, the method needs to store data used for domain name resolution in the HTTPDNS platform, and functions such as traffic statistics, traffic analysis, source statistics need to be developed separately at the initial stage of platform establishment, and function expansion of the HTTPDNS platform cannot be realized in the subsequent process, and the existing HTTPDNS platform has poor function expansibility.
Disclosure of Invention
The invention provides a domain name resolution method, a domain name resolution device, electronic equipment and a storage medium, which are used for realizing the rapid resolution of a domain name, improving the scheduling accuracy of a resolution process and enhancing the expansibility of functions of the domain name resolution process.
In a first aspect, an embodiment of the present invention provides a domain name resolution method, where the method includes:
acquiring a domain name resolution request sent by a user side;
determining a target execution rule group corresponding to a target domain name in the domain name resolution request in a configuration file;
and executing the target execution rule group to acquire the internet protocol address corresponding to the target domain name.
In a second aspect, an embodiment of the present invention further provides a domain name resolution apparatus, where the apparatus includes:
the request acquisition module is used for acquiring a domain name resolution request sent by a user side;
a rule determining module, configured to determine, in a configuration file, a target execution rule group corresponding to a target domain name in the domain name resolution request;
and the address acquisition module is used for executing the target execution rule group to acquire the internet protocol address corresponding to the target domain name.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a domain name resolution method as in any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the domain name resolution method according to any one of the embodiments of the present invention.
According to the embodiment of the invention, by receiving a domain name resolution request sent by a user side, inquiring a target execution rule group corresponding to a target domain name in the domain name resolution request according to a pre-configured configuration file, acquiring an internet protocol address corresponding to the target domain name based on the execution process of the target execution rule group, and processing different domain names by using different execution rule groups, accurate scheduling in the domain name resolution process is realized, the access pressure of a domain name resolution server can be relieved, the occurrence probability of domain name resolution abnormity is reduced, the function of a domain name resolution platform is expanded by using the configuration file, the normal operation of the domain name resolution platform is not influenced in the function expansion process, and the function expansibility of the domain name resolution platform can be improved.
Drawings
Fig. 1 is a flowchart of a domain name resolution method according to an embodiment of the present invention;
fig. 2 is a flowchart of a domain name resolution method according to a second embodiment of the present invention;
FIG. 3 is an exemplary diagram of a conversion plug-in provided by the second embodiment of the invention;
fig. 4 is an exemplary diagram of a domain name resolution method according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a domain name resolution apparatus according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be noted that, for convenience of description, only a part of the structures related to the present invention, not all of the structures, are shown in the drawings, and furthermore, embodiments of the present invention and features of the embodiments may be combined with each other without conflict.
Example one
Fig. 1 is a flowchart of a domain name resolution method according to an embodiment of the present invention, where this embodiment is applicable to relieving the pressure of a conventional DNS server and implementing a fast domain name resolution, and the method may be executed by a domain name resolution device, and the device may be implemented in a hardware and/or software manner, referring to fig. 1, the method according to the embodiment of the present invention specifically includes the following steps:
step 110, obtaining a domain name resolution request sent by a user side.
The user side can be a terminal for requesting domain name resolution, and the terminal can comprise a mobile terminal, a server, intelligent wearable equipment and the like; the Domain Name resolution request may be a request for acquiring a network Protocol address of a Domain Name, and may be transmitted in a hypertext Transfer Protocol (HTTP), a User Datagram Protocol (UDP), a Domain Name System (DNS) Protocol, or the like, and may include a site Domain Name for requesting resolution.
Specifically, when the user accesses the website, a domain name resolution request may be sent, where the domain name resolution request may include a domain name of the website to be accessed. The device executing the method of the embodiment of the present invention may receive the domain name resolution request, and the receiving manner may include a receiving manner according to an HTTP message, a receiving manner according to a UDP message, or a receiving manner according to a DNS message. It can be understood that, in the embodiment of the present invention, a manner of sending the domain name resolution request is not limited.
Step 120, determining a target execution rule group corresponding to the target domain name in the domain name resolution request in the configuration file.
The configuration file may be parameters and information pre-configured for processing a site domain name, and may include rules for processing a domain name resolution request, and the like, the domain name and the execution rule group in the configuration file may be managed and stored, each domain name may have a corresponding execution rule group, it may be understood that the execution rule group may include processing rules for acquiring a network protocol address of the corresponding domain name, the number of the processing rules may be one or more, the execution rule group may specifically be a call function or a software plug-in, and the call function or the software plug-in may be encapsulated with rules for processing the domain name.
In the embodiment of the present invention, the configuration file may be an association table storing domain names and execution rule sets, each domain name in the association table may store a corresponding execution rule set, and after the domain name resolution request is obtained, a target domain name requested to be accessed in the domain name resolution request may be extracted, where the target domain name may identify a location of a website in a computer network. The target domain name may be used to look up the execution rule set corresponding to the target domain name in a pre-stored association table. Further, in order to facilitate management of the execution rule sets, the execution rule sets may be classified according to site attributes of corresponding domain names, the same set of enforcement rules may be used in each category, i.e., domain names with different site attributes may have different sets of enforcement rules, the site attribute may be an attribute of a website corresponding to the domain name, such as a video website, a music website, or a document website, and different sets of execution rules may be configured corresponding to different site attributes, for example, the rule for counting the video flow can be configured in the execution rule group corresponding to the video website, the rule for counting the browsing time can be configured in the execution rule group corresponding to the literature website, different domain names can be processed by using different domain name resolution rules through setting the execution rule group of the configuration file, and the management precision of the domain name resolution process is improved.
And step 130, executing the target execution rule group to acquire the internet protocol address corresponding to the target domain name.
The Internet Protocol (IP) address may be a uniform address format provided by the Internet Protocol, and the IP address allocates a logical address to each network and each host, and may shield a difference of physical addresses by the logical address.
In the embodiment of the present invention, each domain name has a corresponding internet protocol address, and domain name resolution may be performed according to the searched target execution rule set, for example, a calling function or a software plug-in included in the target execution rule is sequentially called to obtain a network protocol address corresponding to the target domain name.
In the embodiment of the invention, by receiving a domain name resolution request sent by a user side, a target execution rule group corresponding to a target domain name in the domain name resolution request is searched in a configuration file, the target execution rule is executed to obtain an internet protocol address corresponding to the target domain name, and different rule execution groups are used for different domain names by using the configuration file, so that fine scheduling of domain name resolution is realized, the access pressure to a server in the process of domain name resolution can be relieved, the occurrence probability of domain name resolution abnormity is reduced, the functions of a domain name resolution platform can be increased or reduced in the process of operating the domain name resolution platform by using the configuration file, the dynamic update of the domain name resolution platform can be realized, and the function expansibility of the domain name resolution platform is enhanced.
Example two
Fig. 2 is a flowchart of a domain name resolution method provided in the second embodiment of the present invention, where the second embodiment of the present invention is embodied on the basis of the above-described embodiment of the present invention, and in the embodiment of the present invention, a configuration file is preset according to a domain name type, and a network protocol address is obtained by using different execution rule sets for configuration files of different domain name types in a domain name resolution process, referring to fig. 2, the method provided in the second embodiment of the present invention specifically includes the following steps:
and step 210, acquiring the domain name and the domain name type input by the user.
The domain name type can be attribute information reflecting the domain name type, the domain name type can represent information of the type of a website corresponding to the domain name, the domain name type divided according to the resource type of the website can comprise a resource type domain name, a software type domain name, an entertainment type domain name and the like, and the domain name type divided according to the network position of the website can comprise an outer network domain name, an inner network static domain name, an inner network dynamic domain name and the like.
Specifically, a visual interface may be provided for the user, and the visual interface may include an option or a text box, and the user may input the domain name and the domain name type corresponding to the domain name by selecting the option or filling in the information.
Step 220, searching an execution rule set corresponding to the domain name type, wherein the execution rule set at least comprises an outer network domain name plug-in set, an inner network static domain name plug-in set and an inner network dynamic domain name plug-in set.
The execution rule group may be a plug-in group template composed of one or more plug-ins, the execution rule group may be designed in advance by a developer, a user may adjust the types and the number of the plug-ins in the execution rule group according to the needs of the user, different domain name types may be associated with different execution rule groups, for example, the domain name type and the execution rule group may have the same identification number.
In the embodiment of the present invention, after the domain name and the domain name type are obtained, the execution rule group having an association relationship with the domain name type may be searched in a plurality of preset execution rule groups, and it can be understood that after the execution rule group is obtained, the adjustment information input by the user may also be obtained to adjust the execution rule group so as to meet the requirement. The execution rule group can comprise an outer network domain name plug-in group according to the incidence relation with different domain name types, and the plug-in group can process a domain name resolution request with a domain name being an outer network domain name; the system can also comprise an intranet static domain name plug-in set, wherein the plug-in set can process a domain name resolution request with a fixed network protocol address and the domain name being an intranet domain name; the method can also comprise an intranet dynamic domain name plug-in program group, and the plug-in program group can process the domain name resolution request with the domain name being the intranet domain name and the network protocol address changing.
Step 230, storing the domain name and the execution rule set association as a configuration file.
Specifically, the domain name and the execution rule group may be stored in association, one execution rule group may correspond to a plurality of domain names, and the configuration file may include association relationships between the plurality of execution rule groups and the domain name. For example, the configuration file may be an information table, each record in the information table may store one execution rule group and one domain name, and further, each record in the information table may also be composed of one execution rule group and a plurality of domain names, and the record content in the information table may be identification information of the execution rule group and the domain name.
And step 240, acquiring a domain name resolution request sent by the user side.
In the embodiment of the present invention, a protocol packet sent by a user side may be received, and a domain name resolution request in the protocol packet may be extracted. For example, an HTTP connection may be established with the user end to obtain the domain name resolution request sent through an HTTP message.
Step 250, extracting the target domain name in the domain name resolution request.
Specifically, data may be extracted from a domain name field in the domain name resolution request, and the extracted data may be used as the target domain name.
And step 260, searching a plug-in program group stored in association with the target domain name in the configuration file as a target execution rule group.
In the embodiment of the invention, the plug-in program group stored in association with the target domain name can be searched in the configuration file by taking the target domain name as a keyword, and the found plug-in program group can be used as a target execution rule group.
Step 270, executing the target execution rule set to obtain the internet protocol address corresponding to the target domain name.
Further, on the basis of the embodiment of the present invention, if the target execution rule set includes an extranet domain name plug-in program set, the executing the target execution rule set to obtain the internet protocol address corresponding to the target domain name includes: counting flow data of a target domain name based on a monitoring statistical plug-in of an outer network domain name plug-in program group; acquiring the position of a server for analyzing a target domain name according to an intelligent scheduling plug-in of an outer network domain name plug-in program group; and converting the domain name resolution request into a domain name system message by using a conversion plug-in of the outer network domain name plug-in program group, sending the domain name system message to the server based on the position and acquiring the Internet protocol address returned by the server.
In the embodiment of the present invention, the outer network domain name plug-in program group may include a monitoring statistics plug-in, an intelligent scheduling plug-in, and a conversion plug-in, where the monitoring statistics plug-in may monitor and count traffic accessing the target domain name, the monitoring statistics plug-in may specifically be a promethus plug-in, the intelligent scheduling plug-in may be a location of an analysis server that obtains an analysis target domain name, the analysis server may be a DNS server, location information of the DNS server, such as an IP address, may be obtained by the intelligent scheduling plug-in, the conversion plug-in may be a plug-in that performs message format conversion on a domain name analysis request, and the plug-in may convert the domain name analysis request into a domain name system message and transmit the domain name system message to a server that performs outer network domain name analysis to obtain an internet protocol address of the target domain name. Referring to fig. 3, the embodiment of the present invention may receive a domain name resolution request in an Http protocol packet format, convert the Http protocol packet into a DNS protocol packet by using a conversion plug-in, and access a DNS node through the DNS protocol packet, thereby implementing compatibility with a conventional DNS protocol without data migration, and implementing an automatic compatibility function. Specifically, when processing a domain name resolution request of an external network domain name, the monitoring and counting plug-in, the intelligent scheduling plug-in and the conversion plug-in may be sequentially executed to obtain an internet protocol address corresponding to a target domain name.
Further, on the basis of the embodiment of the present invention, if the target execution rule set includes an intranet static domain name plug-in set, the executing the target execution rule set to obtain an internet protocol address corresponding to the target domain name includes: an intelligent scheduling plug-in based on an intranet static domain name plug-in group acquires a storage position of an internet protocol address; and obtaining the internet protocol address of the storage position in the local cache by using the local cache plug-in of the intranet static domain name plug-in group.
Specifically, the intranet static domain name plug-in set may include an intelligent scheduling plug-in and a local cache plug-in, and the intelligent scheduling plug-in may be sequentially called to obtain a storage location of the internet protocol address of the target domain name, and then the internet protocol address stored in the storage location is obtained by using the local cache plug-in. Further, the intranet static domain name plug-in may further include a local storage plug-in, and if the local cache plug-in is used to not obtain the internet protocol address of the target domain name, the storage location of the internet protocol address may also be used to search for the internet protocol address corresponding to the target domain name in the persistent storage file.
Further, on the basis of the embodiment of the present invention, if the target execution rule set includes an intranet dynamic domain name plugin set, the executing the target execution rule set to obtain an internet protocol address corresponding to the target domain name includes: an intelligent scheduling plug-in based on an intranet static domain name plug-in group acquires a storage position of an internet protocol address; and using a second-level cache plug-in of the intranet static domain name plug-in group to obtain the Internet protocol address of the storage position in the second-level cache.
The second-level cache may be a cache region other than the local cache, or may be a cache region in another Server, and the second-level cache may include a Remote Dictionary service (Remote Dictionary Server, Redis) cluster, an Ehcache cache cluster, a memcache cluster, and the like.
In the embodiment of the invention, the intranet dynamic domain name plug-in set can comprise an intelligent scheduling plug-in and a secondary cache plug-in, when a target domain name belonging to the intranet dynamic domain name is processed, the intelligent scheduling plug-in can be called to obtain the storage position of the internet protocol address of the target domain name, and the secondary cache plug-in is used for obtaining the internet protocol address in the secondary cache according to the storage position.
According to the embodiment of the invention, the domain name and the domain name type input by the user are acquired, the execution rule group corresponding to the domain name type is searched, the execution rule group and the domain name are stored in a configuration file in an associated manner, the domain name resolution request sent by the user side is acquired, the target execution rule group is acquired according to the target domain name search configuration file in the domain name resolution request, and the target execution rule group is executed to search the internet protocol address corresponding to the target domain name, so that the fine scheduling of domain name resolution is realized, the access pressure to a server in the process of domain name resolution can be relieved, the occurrence probability of domain name resolution abnormity is reduced, the functions of a domain name resolution platform can be increased or reduced in the operation process of the domain name resolution platform by using the configuration file, the dynamic updating of the domain name resolution platform can be realized, and the function expansibility of the domain name resolution platform is enhanced.
Further, on the basis of the above embodiment of the invention, the method further includes: and when the service discovery plug-in the intranet dynamic domain name plug-in group determines that the application address of the service application changes, replacing the corresponding internet protocol address in the secondary cache according to the changed application address.
In the embodiment of the invention, the internet protocol address cached in the secondary cache can be changed at any time, and the internet protocol address cached in the secondary cache can be updated by using the service discovery plug-in. Specifically, when the application address of the service application changes, the changed application address may be sent to the plug-in interface of the service discovery plug-in by the service server to activate the service discovery plug-in, and the service discovery plug-in updates the internet address in the secondary cache to the changed application address.
Fig. 4 is an exemplary diagram of a domain name resolution method provided in the second embodiment of the present invention, and referring to fig. 4, in an exemplary embodiment, each function of the domain name resolution method is established on a plug-in, and the use of the plug-in is controlled by a configuration file, so that a user can obtain different domain name resolution processes by using a customized plug-in or a customized plug-in using method, and can divide domain names to be processed into different domains according to domain name types, configure different plug-in groups for each domain, and sequentially invoke each plug-in group, and by configuring the plug-in groups by using the domains as units, great flexibility is brought to the domain name resolution process. Different plug-in groups are set for different domains, a ha.com domain, a cbp.com domain and an api.com domain respectively correspond to the respective plug-in groups, and the ha.com domain sequentially uses promethus plug-ins to realize monitoring statistics, uses a view plug-in to realize intelligent scheduling and uses a transfer plug-in to forward traffic to a dns node to acquire an internet protocol address. Com domain calls view plug-ins in sequence to achieve intelligent scheduling, the cache plug-ins and the file plug-ins search internet protocol addresses in local cache and local storage respectively, health conditions of the internet protocol addresses can be detected by using the health plug-ins, and the ready plug-ins acquire whether the internet protocol addresses are stored or not. and the redis plug-in acquires the Internet protocol address stored in the secondary cache, acquires a service change address sent by the service application through the ercd plug-in, and updates the Internet protocol address according to the service change address.
EXAMPLE III
Fig. 5 is a schematic structural diagram of a domain name resolution device according to a third embodiment of the present invention, and the device shown in fig. 5 can execute a domain name resolution method according to any embodiment of the present invention, and specifically execute functional modules and beneficial effects corresponding to the method. The device can be implemented by software and/or hardware, and specifically comprises: a request acquisition module 301, a rule determination module 302, and an address acquisition module 303.
The request obtaining module 301 is configured to obtain a domain name resolution request sent by a user side.
A rule determining module 302, configured to determine, in a configuration file, a target execution rule group corresponding to a target domain name in the domain name resolution request.
An address obtaining module 303, configured to execute the target execution rule set to obtain an internet protocol address corresponding to the target domain name.
According to the embodiment of the invention, a request acquisition module receives a domain name resolution request sent by a user side, a rule determination module searches a configuration file for a target execution rule group corresponding to a target domain name in the domain name resolution request, an address acquisition module executes the target execution rule to acquire an internet protocol address corresponding to the target domain name, and domain name resolution is performed on different domain names by using different rule execution groups by using the configuration file, so that fine scheduling of domain name resolution is realized, the access pressure to a server in the domain name resolution process can be relieved, the occurrence probability of domain name resolution abnormity is reduced, the functions of a domain name resolution platform can be increased or reduced in the operation process of the domain name resolution platform by using the configuration file, dynamic update of the domain name resolution platform can be realized, and the function expansibility of the domain name resolution platform is enhanced.
Further, on the basis of the above embodiment of the present invention, the rule determining module 302 includes:
and the domain name extraction unit is used for extracting the target domain name in the domain name resolution request.
And the plug-in group determining unit is used for searching a plug-in group stored in association with the target domain name in the configuration file as a target execution rule group.
Further, on the basis of the above embodiment of the invention, the apparatus further includes:
and the domain name acquisition unit is used for acquiring the domain name and the domain name type input by the user.
And the rule determining unit is used for searching an execution rule group corresponding to the domain name type, wherein the execution rule group at least comprises an outer network domain name plug-in group, an inner network static domain name plug-in group and an inner network dynamic domain name plug-in group.
And the file generation unit is used for storing the domain name and the execution rule group into a configuration file in an associated manner.
Further, on the basis of the above embodiment of the present invention, the address obtaining module 303 includes an extranet processing unit, and is specifically configured to: counting the flow data of the target domain name based on a monitoring statistical plug-in of the outer network domain name plug-in program group; acquiring the position of a server for analyzing the target domain name according to an intelligent scheduling plug-in of the outer network domain name plug-in program group; and converting the domain name resolution request into a domain name system message by using a conversion plug-in of the outer network domain name plug-in program group, sending the domain name system message to the server based on the position, and acquiring the Internet protocol address returned by the server.
Further, on the basis of the above embodiment of the present invention, the address obtaining module 303 includes an intranet static processing unit, and is specifically configured to: acquiring a storage position of the Internet protocol address based on an intelligent scheduling plug-in of the intranet static domain name plug-in group; and using a local cache plug-in of the intranet static domain name plug-in group to acquire the internet protocol address of the storage position in the local cache.
Further, on the basis of the above embodiment of the present invention, the address obtaining module 303 includes an intranet dynamic processing unit, configured to obtain a storage location of the internet protocol address based on an intelligent scheduling plug-in of the intranet static domain name plug-in group; and using a secondary cache plug-in of the intranet static domain name plug-in group to acquire the internet protocol address of the storage position in a secondary cache.
Further, on the basis of the above embodiment of the present invention, the intranet dynamic processing unit is further configured to: and when the service discovery plug-in the intranet dynamic domain name plug-in group determines that the application address of the service application changes, replacing the corresponding internet protocol address in the secondary cache according to the changed application address.
Example four
Fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, as shown in fig. 6, the electronic device includes a processor 40, a memory 41, an input device 42, and an output device 43; the number of the processors 40 in the electronic device may be one or more, and one processor 40 is taken as an example in fig. 6; the processor 40, the memory 41, the input device 42 and the output device 43 in the electronic apparatus may be connected by a bus or other means, and the bus connection is exemplified in fig. 6.
The memory 41, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the domain name resolution method in the embodiment of the present invention (for example, the request acquisition module 301, the rule determination module 302, and the address acquisition module 303 in the domain name resolution device). The processor 40 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 41, that is, implements the domain name resolution method described above.
The memory 41 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 41 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 41 may further include memory located remotely from processor 40, which may be connected to the electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 42 is operable to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the electronic apparatus. The output device 43 may include a display device such as a display screen.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a domain name resolution method, and the method includes:
acquiring a domain name resolution request sent by a user side;
determining a target execution rule group corresponding to a target domain name in the domain name resolution request in a configuration file;
and executing the target execution rule group to acquire the internet protocol address corresponding to the target domain name.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the domain name resolution method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the domain name resolution apparatus, each included unit and module are only divided according to functional logic, but are not limited to the above division, as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A domain name resolution method, the method comprising:
acquiring a domain name resolution request sent by a user side;
determining a target execution rule group corresponding to a target domain name in the domain name resolution request in a configuration file;
and executing the target execution rule group to acquire the internet protocol address corresponding to the target domain name.
2. The method according to claim 1, wherein the determining, in the configuration file, the set of target execution rules corresponding to the target domain name in the domain name resolution request includes:
extracting a target domain name in the domain name resolution request;
and searching a plug-in program group stored in association with the target domain name in the configuration file as a target execution rule group.
3. The method of claim 1 or 2, further comprising:
acquiring a domain name and a domain name type input by a user;
searching an execution rule group corresponding to the domain name type, wherein the execution rule group at least comprises an outer network domain name plug-in component group, an inner network static domain name plug-in component group and an inner network dynamic domain name plug-in component group;
and storing the domain name and the execution rule group as a configuration file in an associated manner.
4. The method of claim 2, wherein the set of target execution rules includes a set of extranet domain name plug-ins, and the executing the set of target execution rules to obtain the internet protocol address corresponding to the target domain name includes:
counting the flow data of the target domain name based on a monitoring statistical plug-in of the outer network domain name plug-in program group;
acquiring the position of a server for analyzing the target domain name according to an intelligent scheduling plug-in of the outer network domain name plug-in program group;
and converting the domain name resolution request into a domain name system message by using a conversion plug-in of the outer network domain name plug-in program group, sending the domain name system message to the server based on the position, and acquiring the Internet protocol address returned by the server.
5. The method according to claim 2, wherein the target execution rule set includes an intranet static domain name plug-in set, and the executing the target execution rule set to obtain the internet protocol address corresponding to the target domain name includes:
acquiring a storage position of the Internet protocol address based on an intelligent scheduling plug-in of the intranet static domain name plug-in group;
and using a local cache plug-in of the intranet static domain name plug-in group to acquire the internet protocol address of the storage position in the local cache.
6. The method according to claim 2, wherein the target execution rule set includes an intranet dynamic domain name plugin set, and the executing the target execution rule set to obtain the internet protocol address corresponding to the target domain name includes:
acquiring a storage position of the Internet protocol address based on an intelligent scheduling plug-in of the intranet static domain name plug-in group;
and using a secondary cache plug-in of the intranet static domain name plug-in group to acquire the internet protocol address of the storage position in a secondary cache.
7. The method of claim 6, further comprising:
and when the service discovery plug-in the intranet dynamic domain name plug-in group determines that the application address of the service application changes, replacing the corresponding internet protocol address in the secondary cache according to the changed application address.
8. A domain name resolution apparatus, the apparatus comprising:
the request acquisition module is used for acquiring a domain name resolution request sent by a user side;
a rule determining module, configured to determine, in a configuration file, a target execution rule group corresponding to a target domain name in the domain name resolution request;
and the address acquisition module is used for executing the target execution rule group to acquire the internet protocol address corresponding to the target domain name.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a domain name resolution method as recited in any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a domain name resolution method according to any one of claims 1 to 7.
CN202011579117.1A 2020-12-28 2020-12-28 Domain name resolution method, domain name resolution device, electronic equipment and storage medium Pending CN113938462A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011579117.1A CN113938462A (en) 2020-12-28 2020-12-28 Domain name resolution method, domain name resolution device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011579117.1A CN113938462A (en) 2020-12-28 2020-12-28 Domain name resolution method, domain name resolution device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113938462A true CN113938462A (en) 2022-01-14

Family

ID=79274115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011579117.1A Pending CN113938462A (en) 2020-12-28 2020-12-28 Domain name resolution method, domain name resolution device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113938462A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615276A (en) * 2022-03-11 2022-06-10 北京字节跳动网络技术有限公司 Content distribution network domain name scheduling method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8990425B1 (en) * 2014-02-19 2015-03-24 Iboss, Inc. Determining device location based on domain name response
CN106657431A (en) * 2016-11-17 2017-05-10 腾讯科技(深圳)有限公司 Service platform address resolution method and system and related devices
US20170339563A1 (en) * 2016-05-23 2017-11-23 Citrix Systems, Inc. Browser Plug-In for Secure Web Access
CN107959601A (en) * 2018-01-04 2018-04-24 深圳市富途网络科技有限公司 A kind of method and system for being switched fast network test environment
WO2018233140A1 (en) * 2017-06-24 2018-12-27 平安科技(深圳)有限公司 Domain name resolution apparatus and method and computer readable storage medium
CN110830458A (en) * 2019-10-25 2020-02-21 云深互联(北京)科技有限公司 Domain name access method, system and equipment
CN111786984A (en) * 2020-06-28 2020-10-16 杭州海康威视数字技术股份有限公司 Pod communication connection method and device, electronic equipment and storage medium
CN111935329A (en) * 2020-07-16 2020-11-13 郑州悉知信息科技股份有限公司 Domain name resolution method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8990425B1 (en) * 2014-02-19 2015-03-24 Iboss, Inc. Determining device location based on domain name response
US20170339563A1 (en) * 2016-05-23 2017-11-23 Citrix Systems, Inc. Browser Plug-In for Secure Web Access
CN106657431A (en) * 2016-11-17 2017-05-10 腾讯科技(深圳)有限公司 Service platform address resolution method and system and related devices
WO2018233140A1 (en) * 2017-06-24 2018-12-27 平安科技(深圳)有限公司 Domain name resolution apparatus and method and computer readable storage medium
CN107959601A (en) * 2018-01-04 2018-04-24 深圳市富途网络科技有限公司 A kind of method and system for being switched fast network test environment
CN110830458A (en) * 2019-10-25 2020-02-21 云深互联(北京)科技有限公司 Domain name access method, system and equipment
CN111786984A (en) * 2020-06-28 2020-10-16 杭州海康威视数字技术股份有限公司 Pod communication connection method and device, electronic equipment and storage medium
CN111935329A (en) * 2020-07-16 2020-11-13 郑州悉知信息科技股份有限公司 Domain name resolution method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615276A (en) * 2022-03-11 2022-06-10 北京字节跳动网络技术有限公司 Content distribution network domain name scheduling method and device
CN114615276B (en) * 2022-03-11 2024-01-26 抖音视界有限公司 Domain name scheduling method and device for content distribution network

Similar Documents

Publication Publication Date Title
US9544355B2 (en) Methods and apparatus for realizing short URL service
US20200382465A1 (en) Client subnet efficiency by equivalence class aggregation
CN109218457B (en) Network data processing method, device and system
CN110727417B (en) Data processing method and device
CN112565406B (en) Gray release method, gray release system and electronic equipment
US8566448B2 (en) System and method for providing device file using device identifier
US20130094403A1 (en) Method and apparatus for providing sensor network information
CN111753223A (en) Access control method and device
CN113938462A (en) Domain name resolution method, domain name resolution device, electronic equipment and storage medium
CN113315852B (en) Domain name resolution method, device and system
CN112468585A (en) Data transmission method and device, electronic equipment and storage medium
KR102624680B1 (en) Mash-up method for integrating heterogeneous data and apparatus thereof
JP2017118248A (en) Device, method and program for name resolution
CN110691023B (en) Address system
JP6442545B2 (en) DNS server, black list generation method in DNS server, and black list generation program used for DNS server
CN114301872B (en) Domain name based access method and device, electronic equipment and storage medium
US20210173729A1 (en) Systems and methods of application program interface (api) parameter monitoring
CN112714078A (en) Network traffic identification method and device, storage medium and server
JP6339538B2 (en) Authoritative DNS server device, DNS query processing method, and DNS query processing program
KR100347985B1 (en) System for Providing the Internet Address Supplementary Services and Method thereof
CN111078736A (en) Data aggregation processing method and device, terminal and storage medium
EP4068104A1 (en) Method for controlling an opc ua server, opc ua server, control circuit, computer program, and computer-readable medium
CN111090804B (en) Data filtering method, device and computer storage medium
EP2076849A1 (en) Method for processing native language internet address and storage medium for saving program of executing the same
KR20030000692A (en) System for mapping keyword name to url and method thereof

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