CN112615945A - Domain name resolution record management method and device, computer equipment and storage medium - Google Patents
Domain name resolution record management method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN112615945A CN112615945A CN202011500909.5A CN202011500909A CN112615945A CN 112615945 A CN112615945 A CN 112615945A CN 202011500909 A CN202011500909 A CN 202011500909A CN 112615945 A CN112615945 A CN 112615945A
- Authority
- CN
- China
- Prior art keywords
- record
- domain
- domain name
- sub
- analysis
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000007726 management method Methods 0.000 title claims abstract description 109
- 238000004458 analytical method Methods 0.000 claims abstract description 121
- 238000000034 method Methods 0.000 claims abstract description 26
- 238000012545 processing Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 9
- 238000003491 array Methods 0.000 claims description 7
- 230000008569 process Effects 0.000 abstract description 16
- 108020001568 subdomains Proteins 0.000 description 19
- 230000002159 abnormal effect Effects 0.000 description 6
- 230000004044 response Effects 0.000 description 6
- 238000013475 authorization Methods 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000009849 deactivation Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 239000013074 reference sample Substances 0.000 description 1
- 239000000523 sample Substances 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Computing Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a domain name resolution record management method, a domain name resolution record management device, computer equipment and a storage medium, which relate to a network protocol in the technical field of computers and comprise a sub-domain, wherein the sub-domain comprises a target source and node information; determining the target source in a preset domain name management data table according to the sub-domain, wherein the domain name management data table comprises a plurality of domain names; acquiring at least one analysis record matched with the subdomain in a preset analysis record table according to the node information, and forming an initial data set, wherein the analysis record table comprises at least one analysis record, and each domain name of the domain name management data table is associated with at least one analysis record in the analysis record table; analyzing the subdomain based on the initial data set to generate a target result; the problem of current manual addition to the domain name resolution record, lead to appearing the condition of discerning the anomaly easily in subdomain request process, consume long and inefficiency is solved.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for managing a domain name resolution record, a computer device, and a storage medium.
Background
The DNS is an abbreviation of Domain Name System (Domain Name System) and is used to Name computers and network services in a hierarchical structure from an organization to a Domain, and DNS resolution is a key service in the Domain Name service field. Because the domain name owner can freely allocate the resolution right of the subdomain, namely the resolution right is allocated to a plurality of domain name resolution servers by setting NS records, and the business requirements of the domain name owner are met by mutual guidance among the domain name resolution servers.
The existing DNS analysis usually needs a domain name owner to manually add a main domain analysis record, and does not support the analysis of a sub-domain, the domain name owner can allocate the analysis right of the sub-domain to different domain name analysis servers, when an authorization server sends a sub-domain analysis request and does not have a result of inquiring the domain name of a domain name analysis server pointed by NS, the domain name analysis server can respond to the domain name of the main domain instead of the sub-domain, so that the authorization server is identified as abnormal analysis, at the moment, the authorization server can traverse all the domain name analysis servers pointed by NS, and then the ultra-long waiting of a user side is triggered, the consumed time is longer, and the efficiency is lower.
Disclosure of Invention
The invention aims to provide a domain name resolution record management method, a domain name resolution record management device, computer equipment and a storage medium, which are used for solving the problems that the existing domain name resolution records are added manually, all sub-domains are difficult to add, abnormal identification is easy to occur in the sub-domain requesting process, the consumed time is long, and the efficiency is low.
In order to achieve the above object, the present invention provides a method for managing domain name resolution records, comprising:
acquiring a sub-domain, wherein the sub-domain comprises a target source and node information;
determining the target source in a preset domain name management data table according to the sub-domain, wherein the domain name management data table comprises a plurality of domain names;
acquiring at least one analysis record matched with the subdomain in a preset analysis record table according to the node information, and forming an initial data set, wherein the analysis record table comprises at least one analysis record, and each domain name of the domain name management data table is associated with at least one analysis record in the analysis record table;
and analyzing the subdomain based on the initial data set to generate a target result.
Further, the determining the target source according to the sub-domain and the domain name management data table includes:
sequentially splitting the subdomain into a plurality of arrays according to domain name separators to obtain a first array set;
extracting arrays at preset positions in the first array set to generate first candidate data;
searching whether a character string consistent with the first candidate data exists in the domain name management data;
if yes, obtaining a target source based on the first candidate data; if not, extracting an array of preset positions in the first candidate data to obtain new first candidate data.
Further, the parsing the sub-domain based on the initial data set to generate a target result includes the following steps:
obtaining an analytic record matched with the subdomain based on the initial data set;
configuring basic information of the subdomains according to the resolution records matched with the subdomains;
configuring line information of the subdomains according to the analysis records matched with the subdomains;
generating initial data based on the line information and the basic information;
and configuring a second analysis record identifier, a second domain name identifier, a second record type and second analysis state post-synchronization load balancing information based on the initial result, and obtaining an analysis record corresponding to the sub-domain as a target result.
Further, the configuring the line information of the sub-domain according to the resolution record matched with the sub-domain name includes the following steps:
obtaining a first line list and a line grouping list according to the sub-domain matching analysis record;
acquiring first line data according to the first line list and the line grouping list;
and generating a second line or line group corresponding to the sub-domain name based on the first line data, namely the line information of the sub-domain.
Further, the step of configuring the basic information of the sub-field according to the parsing record matched with the sub-field and the parsing record matched with the sub-field specifically includes the following steps:
obtaining a first host record, a first record value, a first line or line grouping identifier and a first weight value according to the analysis record matched with the sub-domain;
extracting a character string from the first host record according to a first preset condition to generate a second host record;
extracting a character string from the first record value according to a second preset condition to generate a second record value;
generating a second weight value according to a third preset condition and the first weight value;
and generating basic information of the subdomain according to the second host record, the second record value and the second weight value.
Further, before the target source is determined in the management data table according to the preset domain name, the following is also included:
and acquiring a target main domain corresponding to the sub-domain, and setting the state of the target main domain to be a first state.
Further, after analyzing the sub-field pairs based on the initial data set and generating a target result, the method includes the following steps:
and adding the sub domain name into the domain name management data table, and setting the main domain name state as a second state.
In order to achieve the above object, the present invention further provides a domain name resolution record management apparatus, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a sub-domain, and the sub-domain comprises a target source and node information;
the determining unit is used for determining the target source according to the subdomain and a preset domain name management data table, wherein the domain name management data table comprises a plurality of domain names;
the processing unit is used for acquiring at least one analysis record matched with the subdomain to form an initial data set according to the node information and a preset analysis record table, wherein the analysis record table comprises at least one analysis record, and each domain name of the domain name management data table is associated with at least one analysis record in the analysis record table;
and the analysis unit is used for analyzing the subdomain pairs based on the initial data set to generate a target result.
In order to achieve the above object, the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the domain name resolution record management method when executing the computer program.
In order to achieve the above object, the present invention further provides a computer storage medium, which includes a plurality of storage media, each storage medium storing a computer program, and the computer programs stored in the storage media, when executed by a processor, collectively implement the steps of the domain name resolution record management method.
According to the domain name resolution record management method, the device, the computer equipment and the readable storage medium, after the sub-domains are obtained, the target source and node information is determined according to the preset domain name resolution management data table, then the resolution records matched with the sub-domains in the resolution record table are extracted to serve as the initial data set, automatic generation of the sub-domain resolution records is achieved according to the target data corresponding to the sub-domains generated in the initial data set, and the problems that due to the fact that existing domain name resolution records are manually added and lack of addition to all the sub-domains, identification abnormality is prone to occur in the sub-domain requesting process, time consumption is long, and efficiency is low are solved.
Drawings
Fig. 1 is a flowchart of a first embodiment of a domain name resolution record management method according to the present invention;
fig. 2 is a flowchart of a second embodiment of a domain name resolution record management method according to the present invention;
fig. 3 is a flowchart of determining the target source according to the sub-domain and the domain name management data table in the second embodiment of the domain name resolution record management method of the present invention;
fig. 4 is a flowchart of analyzing the initial dataset pair and the sub-domain pair to generate a target result in the second embodiment of the domain name resolution record management method of the present invention;
fig. 5 is a flowchart of configuring basic information of a sub-domain according to the resolution record matched with the sub-domain in the second embodiment of the domain name resolution record management method of the present invention;
fig. 6 is a flowchart of configuring line information of a sub-domain according to the resolution record matched with the sub-domain name in the second embodiment of the domain name resolution record management method according to the present invention;
fig. 7 is a schematic diagram of a program module of a third embodiment of a domain name resolution record management apparatus according to the present invention;
fig. 8 is a schematic diagram of a hardware structure of a computer device according to a fourth embodiment of the present invention.
Reference numerals:
5. domain name resolution record management device 51, acquisition unit 52, and determination unit
53. Processing unit 54, analysis unit 55, and control unit
6. Computer device 61, memory 62, processor 63, network interface
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The invention provides a domain name resolution record management method, a domain name resolution record management device, computer equipment and a storage medium, which are suitable for the field of network protocols and are based on an acquisition unit, a determination unit, a processing unit, a resolution unit and a control unit. The invention determines target source and node information through a determining unit and a preset domain name resolution management data table after a sub-domain is obtained through an obtaining unit, extracts resolution records matched with the sub-domain as an initial data set through a processing unit from the domain name resolution management data table and a resolution record table associated with the domain name resolution management data table, solves the problems that the existing manual addition of domain name resolution records, lack of addition of all sub-domains, abnormal recognition easily occurs in the sub-domain request process, the consumed time is long, the efficiency is low and controls the state (stopping or starting) of a target main domain corresponding to the sub-domain through a control module according to the target data (including resolution record identification, domain name identification, host record, record type, record value, line or line grouping identification, weight value and resolution state) corresponding to the sub-domain generated in the initial data set, the method avoids intercepting the main domain request under the condition that the sub-domain is not configured, and simultaneously adds the target data into the domain name resolution management data table, thereby further increasing the resolution management of the sub-domain and reducing the waiting time of internet users.
Example one
Referring to fig. 1, a domain name resolution record management method of this embodiment is applied to a resolution system, and specifically, can be applied to a domain name resolution server, and includes the following steps:
s100: acquiring a sub-domain, wherein the sub-domain comprises a target source and node information;
in the scheme, the problem that the existing DNS resolution record only focuses on the resolution setting of a main domain, a domain name owner needs to manually add the main domain resolution record, and resolution management of the sub-domain is not supported is solved.
It should be noted that each sub-domain is composed of the target source and the node information, but the character strings included in the target source and the node information are not directly determined, and after the target source is determined by a preset domain name management data table (described in step S200 below), the remaining character strings can be determined as the node information.
In the following steps, it is necessary to acquire an existing analysis record from the node information (step S300 below), and to autonomously generate an analysis result corresponding to the sub-domain from the existing analysis record (step S300 below). The method and the device solve the problems that in the prior art, domain name resolution records are manually added, all sub-domains are difficult to add, abnormal identification is easy to occur in the sub-domain requesting process, time is consumed, and efficiency is low.
S200: determining the target source in a preset domain name management data table according to the sub-domain, wherein the domain name management data table comprises a plurality of domain names;
in the above steps, the preset domain name management data table is preset in an analysis system and used for domain name management, the domain name management data table includes a plurality of domain names, the domain names (main domain and partial sub-domains) and corresponding analysis records thereof, which are manually stored in advance by a domain name owner are stored in the domain name management data table, in the scheme, the analysis records (i.e. the target data in step S400) corresponding to the sub-domains are generated according to the pre-stored analysis records, and the sub-domains and the corresponding analysis records thereof are also added to the domain name management data table after the sub-domain analysis records are generated, so as to enrich the domain name management data table and facilitate the subsequent analysis of more sub-domains.
S300: acquiring at least one analysis record matched with the subdomain in a preset analysis record table according to the node information, and forming an initial data set, wherein the analysis record table comprises at least one analysis record, and each domain name of the domain name management data table is associated with at least one analysis record in the analysis record table;
it should be noted that the analysis record includes an analysis record identifier, a domain name identifier, a host record, a record type, a record value, a line or line group identifier, a weight value, an analysis state, and the like, and in the above steps, records with suffixes consistent with node information of all host records are searched as an initial data set.
And S400, analyzing the subdomains based on the initial data set to generate a target result.
In the above steps, the basic information (the resolution record identifier, the domain name identifier, the host record, the record type, the record value, the weight value and the resolution state) and the route information (the line or line grouping identifier) of the sub-domain are configured according to the resolution record matched with the sub-domain in the initial data set, and the resolution result corresponding to the sub-domain is automatically generated.
Example two
Referring to fig. 2, a domain name resolution record management method of this embodiment is applied to a resolution system, and specifically, can be applied to a domain name resolution server, and includes the following steps:
s100: acquiring a sub-domain, wherein the sub-domain comprises a target source and node information;
in the scheme, the problem that the existing DNS resolution record only focuses on resolution setting of a main domain, a domain name owner needs to manually add the main domain resolution record, and resolution management of the sub-domain is not supported is solved, the obtained sub-domain is sent by a client, and a server response corresponding to an IP address is obtained according to the sub-domain, for example, "a 1. www.klpa.com", a target source refers to a higher-level domain name on which the sub-domain depends, and a character string mutually exclusive with the target source is node information.
S200: and determining the target source in a preset domain name management data table according to the sub-domain.
In the above steps, the preset domain name management data table is preset in an analysis system and used for domain name management, the domain name management data table includes a plurality of domain names, the domain names (main domain and partial sub-domains) and corresponding analysis records thereof, which are manually stored in advance by a domain name owner are stored in the domain name management data table, in the scheme, the analysis records (i.e. the target data in step S400) corresponding to the sub-domains are generated according to the pre-stored analysis records, and the sub-domains and the corresponding analysis records thereof are also added to the domain name management data table after the sub-domain analysis records are generated, so as to enrich the domain name management data table and facilitate the subsequent analysis of more sub-domains.
It should be noted that, in the actual application process, the parsing system may also receive other domain name requests (such as a main domain request) in the process of receiving the sub-domain and generating the parsing record, and a case of intercepting the main domain request may occur at this time, so before determining the target source according to the preset domain name management data table, the following is further included:
s100-1: and acquiring a target main domain corresponding to the sub-domain, and setting the state of the target main domain to be a first state.
It should be noted that the target main domain is a main domain corresponding to the sub-domain, and for example and without limitation, the main domain corresponding to "a 1. www.klpa.com" is "klpa.com", and in an actual application process, a sub-domain suffix ("com") may be identified according to a static domain name suffix table (including but not limited to com/cn/com.cn), so as to identify the main domain corresponding to the sub-domain. The first state is a deactivated state, that is, the target main domain is set to a deactivated state after receiving the sub-domain resolution request, so as to prevent the sub-domain from intercepting the main domain request under the condition that the sub-domain is not configured (the following steps S200 to S400 are a configuration process), and after the sub-domain configuration process is completed, the target main domain is restored to an activated state (such as the following second state).
Specifically, the determining the target source according to the sub-domain and the domain name management data table, where the target source is mainly used to determine a previous-level domain name having an analysis record and on which the sub-domain depends, and further generate an analysis record corresponding to the sub-domain according to the analysis record of the previous-level domain name, refer to fig. 3, and specifically include the following steps:
s210: sequentially splitting the subdomain into a plurality of arrays according to domain name separators to obtain a first array set;
in the above steps, the separators include, but are not limited to "", and for example, "a 1.www. klpa. com" is split into "a 1", "www", "klpa" and "com" according to the separators to form the first array set.
S220: extracting arrays at preset positions in the first array set to generate first candidate data;
in this scheme, the preset position is an array at a position other than the first array at the head, that is, when the arrays in the first array set are arranged according to the positions before splitting, the first array on the left side is deleted to obtain the first candidate data.
S230: searching whether a character string consistent with the first candidate data exists in the domain name management data;
s240: if yes, obtaining a target source based on the first candidate data;
s250: if not, extracting an array of preset positions in the first candidate data to obtain new first candidate data.
When the first candidate data has the character string with the consistent matching in the domain name management data, it indicates that the first candidate data has the corresponding resolution record, and the resolution record (i.e. the target data) corresponding to the next-level sub-domain can be generated according to the stored resolution record. Take the above-mentioned subdomain as an example "a 1.www. klpa. com", the corresponding target source is "www.klpa.com", and the node information is "a 1".
S300: acquiring at least one analysis record matched with the subdomain in a preset analysis record table according to the node information, and forming an initial data set, wherein the analysis record table comprises at least one analysis record, and each domain name of the domain name management data table is associated with at least one analysis record in the analysis record table;
it should be noted that the analysis record includes an analysis record identifier, a domain name identifier, a host record, a record type, a record value, a line or line group identifier, a weight value, an analysis state, and the like, and in the above steps, records with suffixes consistent with node information of all host records are searched as an initial data set.
For example, let "www.klpa.com" correspond to the analysis record table and the analysis records as shown in table 1 below:
the host records include 2 and 3 which are consistent with the node information of "a 1. www.kwpa.com", and the 2 nd and 3 rd records constitute an initial data set corresponding to "a 1. www.kwpa.com", and as a supplementary example, it is easy to understand that if the new sub-domain is set to "a 2.a1. www.kwpa.com", the corresponding initial data set includes the 3 rd record in table 1.
S400: and analyzing the subdomain based on the initial data set to generate a target result.
The parsing the subfield pairs based on the initial dataset to generate the target result as described above with reference to fig. 4 includes the following:
s410: obtaining an analytic record matched with the subdomain based on the initial data set;
s420: configuring line information and basic information of a sub-domain according to the analysis record matched with the sub-domain;
in the scheme, the resolution record of the sub-domain is generated according to the resolution record of the upper level domain name corresponding to the sub-domain, so that the problem that the pre-writing of the resolution records of all the sub-domains cannot be realized due to the lack of the management of the sub-domains in the prior art is solved.
Specifically, in step S420, configuring basic information of the sub-field according to the parsing record matched with the sub-field, referring to fig. 5, the method includes the following steps:
s421-1: obtaining a first host record, a first record value, a first line or line grouping identifier and a first weight value according to the analysis record matched with the sub-domain name;
s421-2: extracting a character string from the first host record according to a first preset condition to generate a second host record;
the first preset condition is that a character string with the suffix of the first host record consistent with the node information is deleted, a second host record is generated, and if the first host records the node information, the second host record is @.
S421-3: extracting a character string from the first record value according to a second preset condition to generate a second record value;
the second preset condition is to judge whether the end of the character string corresponding to the first recorded value includes ". multidot..
S421-4: generating a second weight value according to a third preset condition and the first weight value;
the third preset condition is that whether the first weight value is greater than 1 is judged, if not, a second weight value is generated according to a default weight value, and if so, the second weight value is generated according to the first weight value.
S421-5: and generating basic information of the subdomain according to the second host record, the second record value and the second weight value.
Specifically, the basic information corresponding to "a 1.www. klpa. com" is shown in table 2 below, by way of example:
more specifically, in step S420, the configuring the line information of the sub-domain according to the resolution record matched with the sub-domain name, with reference to fig. 6, includes the following steps:
s422-1: obtaining a first line list and a line grouping list according to the sub-domain matching analysis record;
by way of example, let "www.klpa.com" correspond to the first route list and route group list as shown in Table 3 below:
s422-2: acquiring first line data according to the first line list and the line grouping list;
as shown in table 1 and the initial data set, the first line data corresponding to "a 1. www.klpa.com" is the lines corresponding to 2 and 3 in table 1, i.e., lineId _02 and groupId _ 01.
S422-3: and generating a second line or line group corresponding to the sub-domain name based on the first line data, namely the line information of the sub-domain.
As an explanation, first line data (a data set belonging to a user-defined line and a line grouping) is obtained according to a first line or a line grouping identifier in an initial data set, a user-defined line list and a line grouping list are distinguished from the set according to a marked line or a line grouping, then a line under each grouping is obtained according to a relation table of the line and the line grouping, a grouping off-line list is generated, all user-defined lines belonging to a sub-domain are automatically generated according to the user-defined line list, and then a line grouping (namely, a second line or line grouping identifier) belonging to the sub-domain is generated according to the line grouping list and the grouping off-line list.
As can be seen from the above example, the first route data and table 3 show that the route information corresponding to "a 1.www. klpa. com" is shown in table 4 below:
s430: generating initial data based on the line information and the basic information;
s440: and synchronizing load balancing information after configuring a second resolution record identifier, a second domain name identifier, a second record type and a second resolution state based on the initial result to obtain a target result.
In the above step, the target result is the resolution record corresponding to the sub-domain, as described in step S300, the resolution record includes a resolution record identifier, a domain name identifier, a host record, a record type, a record value, a line or line grouping identifier, a weight value, a resolution status, and the like; in addition to the line information (line or line group identifier) and the basic information (host record, record value, line or line group identifier, weight value), other information is information that needs to be configured in step S400 (i.e., second resolved record identifier, second domain name identifier, second record type, and load balancing information after second resolution state).
In the above steps, the load balancing information includes a load balancing identifier, an analysis record identifier, a domain name identifier, and a load balancing status. For the analysis records with the weight value of 1, corresponding load balancing records are available, and when the analysis records meet the user-defined load balancing condition, the load balancing state is automatically changed to be started, so when the analysis records exist in the initial data set, if the load balancing is stopped, the sub-domain analysis records are generated, and the corresponding load balancing state needs to be separately set to be stopped.
After parsing the subdomain pairs based on the initial dataset to generate a target result, comprising the steps of:
s400-1: and adding the sub domain name into the domain name management data table, and setting the main domain name state as a second state.
It should be emphasized that the second state is an enabled state, and the enablement of the main domain state is restored after the sub-domain addition is completed, so as to ensure normal response of the main domain request. After the above process is completed, the analysis system returns the analysis record to the client, and the client can query the corresponding server based on the ip corresponding to the sub-domain name to obtain the response information fed back by the server and send the response information to the client.
According to the scheme, a target source is automatically identified to extract a set of analysis records matched with a sub-domain to generate an initial data set, then a user-defined line of the sub-domain is generated to realize the successful addition of line grouping, and the sub-domain analysis records can be automatically generated according to the generated user-defined line and line grouping (step S420); and finally, the completeness of the whole sub-domain analysis record is ensured through synchronous analysis and load balancing states and weighted values, the automatic generation of the sub-domain analysis record is realized, the method is different from the manual addition of the analysis record in the prior art, the working efficiency is further improved, and the problems that the existing manual addition of the domain name analysis record is lack of the addition of all sub-domains, the abnormal identification condition is easy to occur in the sub-domain request process, the consumed time is long, and the efficiency is low are solved through the automatic generation of the sub-domain analysis record. Meanwhile, the resolution record (namely target data) generated by the subdomain is added to the domain name management data table, so that the resolution management of the subdomain is further increased, and the backtracking action when no result is generated in the resolution response is reduced, thereby further reducing the waiting time of internet users and effectively reducing the configuration work of domain name holders.
The domain name management data table, the analysis records and the target data can be uploaded to the block chain so as to be used as a reference sample or a training sample subsequently, the safety and the fair transparency to a user can be guaranteed by uploading the domain name management data table, the analysis records and the target data to the block chain, the user equipment can download the abstract information from the block chain so as to check whether the priority list is falsified, and can download a voice file which obtains corresponding amount data from the block chain for voice broadcasting subsequently without a management process, so that the voice processing efficiency is effectively improved.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and manage the next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Example three:
referring to fig. 7, a domain name resolution record management apparatus 5 of the present embodiment includes: an acquisition unit 51, a determination unit 52, a processing unit 53, an analysis unit 54, and a control unit 55.
An obtaining unit 51, configured to obtain a sub-domain, where the sub-domain includes target source and node information;
the determining unit 52 determines the target source according to the sub-domain and a preset domain name management data table, where the domain name management data table includes a plurality of domain names;
a processing unit 53, configured to obtain at least one resolution record matched with the sub-domain according to the node information and a preset resolution record table to form an initial data set, where the resolution record table includes at least one resolution record, and each domain name in the domain name management data table is associated with at least one resolution record in the resolution record table;
a parsing unit 54, configured to parse the subfield pairs based on the initial data set, so as to generate a target result;
the analysis unit is specifically configured to obtain an analysis record matched with the subdomain based on the initial data set; configuring line information and basic information of a sub-domain according to the analysis record matched with the sub-domain; generating initial data based on the line information and the basic information; and configuring a second analysis record identifier, a second domain name identifier, a second record type and a second analysis state based on the initial result, and then synchronizing load balancing information to obtain a target result, wherein the target result comprises the analysis record identifier, the domain name identifier, a host record, the record type, a record value, a line or line group identifier, a weight value and an analysis state.
Further comprising: a control unit 55, configured to set the target main domain state to a first state before the target source is determined in the preset domain name management data table, where the first state is a deactivation state;
and after the subdomain pairs are analyzed based on the initial data set and a target result is generated, adding the subdomain names into the domain name management data table, and setting the main domain name state to be a second state, wherein the second state is enabled.
The technical scheme is based on the route identification in the network protocol of the network, firstly, an obtaining unit obtains a sub-domain, a target source corresponding to the sub-domain is automatically identified through a determining unit and a processing unit to extract an initial data set corresponding to the sub-domain, finally, a resolving unit configures line information (a user-defined line of the sub-domain is preferentially generated to ensure the successful addition of line grouping and ensure the automatic generation of the resolution record of the sub-domain) and basic information of the sub-domain according to the resolution record matched with the sub-domain, and the integrity of the resolution record of the whole sub-domain is ensured through synchronous resolution and a load balancing state and a weight value to realize the automatic generation of the resolution record of the sub-domain, thereby further improving the working efficiency, solving the problems that the prior manual addition of the domain name resolution record and the addition of all the sub-domains are lacked through the automatic generation of, the problems of long time consumption and low efficiency are caused by the fact that the abnormal recognition condition is easy to occur in the sub-domain request process, backtracking action when the analysis response is not result is reduced, and the working efficiency is improved.
Meanwhile, the control unit adds the resolution record (namely target data) generated by the subdomain to the domain name management data table, and further increases the resolution management of the subdomain, thereby further reducing the waiting time of internet users, effectively reducing the configuration work of domain name holders, controlling the target main domain state before and after the resolution record of the subdomain is generated, and avoiding intercepting the main domain request under the condition that the subdomain is not configured.
Example four:
in order to achieve the above object, the present invention further provides a computer device 6, where the computer device may include a plurality of computer devices, components of the domain name resolution record management apparatus 1 in the second embodiment may be distributed in different computer devices 6, and the computer device 6 may be a smartphone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a rack server (including an independent server or a server cluster formed by a plurality of servers) that executes a program, and the like. The computer device of the embodiment at least includes but is not limited to: a memory 61, a processor 62, a network interface 63, and a domain name resolution record management apparatus 5, which are communicably connected to each other through a system bus, as shown in fig. 8. It should be noted that fig. 8 only shows a computer device with components, but it should be understood that not all of the shown components are required to be implemented, and more or fewer components may be implemented instead.
In the present embodiment, the memory 61 includes at least one type of computer-readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the memory 61 may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the memory 61 may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the computer device. Of course, the memory 61 may also include both internal and external storage devices of the computer device. In this embodiment, the memory 61 is generally used for storing an operating system and various types of application software installed in the computer device, for example, a program code of the domain name resolution record management apparatus 5 according to the first embodiment. Further, the memory 61 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 62 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 62 is typically used to control the overall operation of the computer device. In this embodiment, the processor 62 is configured to run program codes stored in the memory 61 or process data, for example, run a domain name resolution record management apparatus, so as to implement the domain name resolution record management method according to the first embodiment.
The network interface 63 may comprise a wireless network interface or a wired network interface, and the network interface 63 is typically used to establish a communication connection between the computer device 6 and other computer devices 6. For example, the network interface 63 is used to connect the computer device 6 to an external terminal via a network, establish a data transmission channel and a communication connection between the computer device 6 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, and the like.
It is noted that fig. 8 only shows the computer device 6 with components 61-63, but it is to be understood that not all shown components are required to be implemented, and that more or less components may be implemented instead.
In this embodiment, the domain name resolution record management apparatus 5 stored in the memory 61 may be further divided into one or more program modules, and the one or more program modules are stored in the memory 61 and executed by one or more processors (in this embodiment, the processor 62) to complete the present invention.
Example five:
to achieve the above objects, the present invention also provides a computer-readable storage medium including a plurality of storage media such as a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, which when executed by the processor 23, implements corresponding functions. The computer-readable storage medium of this embodiment is used for storing the domain name resolution record management apparatus 5, and when being executed by the processor 63, the computer-readable storage medium implements the domain name resolution record management method according to the first embodiment.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A domain name resolution record management method is characterized by comprising the following steps:
acquiring a sub-domain, wherein the sub-domain comprises a target source and node information;
determining the target source in a preset domain name management data table according to the sub-domain, wherein the domain name management data table comprises a plurality of domain names;
acquiring at least one analysis record matched with the subdomain in a preset analysis record table according to the node information, and forming an initial data set, wherein the analysis record table comprises at least one analysis record, and each domain name of the domain name management data table is associated with at least one analysis record in the analysis record table;
and analyzing the subdomain based on the initial data set to generate a target result.
2. The domain name resolution record management method according to claim 1, wherein the determining the target source according to the subdomain and the domain name management data table comprises:
sequentially splitting the subdomain into a plurality of arrays according to domain name separators to obtain a first array set;
extracting arrays at preset positions in the first array set to generate first candidate data;
searching whether a character string consistent with the first candidate data exists in the domain name management data;
if yes, obtaining a target source based on the first candidate data; if not, extracting an array of preset positions in the first candidate data to obtain new first candidate data.
3. The domain name resolution record management method according to claim 1, wherein the resolving the subdomains based on the initial dataset to generate a target result comprises:
obtaining an analytic record matched with the subdomain based on the initial data set;
configuring basic information of the subdomains according to the resolution records matched with the subdomains;
configuring line information of a sub-domain according to the analysis record matched with the sub-domain;
generating initial data based on the line information and the basic information;
and synchronizing load balancing information after configuring a second resolution record identifier, a second domain name identifier, a second record type and a second resolution state based on the initial data, and obtaining a resolution record corresponding to a subdomain as a target result.
4. The domain name resolution record management method according to claim 3, wherein the step of configuring the line information of the sub-domain according to the resolution record matched with the sub-domain specifically includes the following steps:
obtaining a first line list and a line grouping list according to the sub-domain matching analysis record;
acquiring first line data according to the first line list and the line grouping list;
and generating a second line or line group corresponding to the sub-domain name based on the first line data, namely the line information of the sub-domain.
5. The domain name resolution record management method according to claim 3, wherein the step of configuring the basic information of the subdomains according to the resolution records matched with the subdomains specifically includes the following steps:
obtaining a first host record, a first record value, a first line or line grouping identifier and a first weight value according to the analysis record matched with the sub-domain;
extracting a character string from the first host record according to a first preset condition to generate a second host record;
extracting a character string from the first record value according to a second preset condition to generate a second record value;
generating a second weight value according to a third preset condition and the first weight value;
and generating basic information of the subdomain according to the second host record, the second record value and the second weight value.
6. The domain name resolution record management method according to claim 1, before determining the target source in the management data table according to the preset domain name, further comprising the following steps:
and acquiring a target main domain corresponding to the sub-domain, and setting the state of the target main domain to be a first state.
7. The domain name resolution record management method according to claim 6, wherein after the sub-domain pairs are resolved based on the initial data set to generate a target result, the method comprises the following steps:
and adding the sub domain name into the domain name management data table, and setting the main domain name state as a second state.
8. A domain name resolution record management apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a sub-domain, and the sub-domain comprises a target source and node information;
the determining unit is used for determining the target source according to the subdomain and a preset domain name management data table, wherein the domain name management data table comprises a plurality of domain names;
the processing unit is used for acquiring at least one analysis record matched with the subdomain to form an initial data set according to the node information and a preset analysis record table, wherein the analysis record table comprises at least one analysis record, and each domain name of the domain name management data table is associated with at least one analysis record in the analysis record table;
and the analysis unit is used for analyzing the subdomain pairs based on the initial data set to generate a target result.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the domain name resolution record management method according to any one of claims 1 to 7 when executing the computer program.
10. A computer storage medium comprising a plurality of storage media each having a computer program stored thereon, wherein the computer programs stored in the plurality of storage media, when executed by a processor, collectively implement the steps of the domain name resolution record management method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011500909.5A CN112615945B (en) | 2020-12-18 | 2020-12-18 | Domain name resolution record management method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011500909.5A CN112615945B (en) | 2020-12-18 | 2020-12-18 | Domain name resolution record management method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112615945A true CN112615945A (en) | 2021-04-06 |
CN112615945B CN112615945B (en) | 2022-10-18 |
Family
ID=75240841
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011500909.5A Active CN112615945B (en) | 2020-12-18 | 2020-12-18 | Domain name resolution record management method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112615945B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113395361A (en) * | 2021-08-17 | 2021-09-14 | 苏州浪潮智能科技有限公司 | Load balancing access domain name coordination method, system, terminal and storage medium |
CN113660359A (en) * | 2021-08-25 | 2021-11-16 | 北京搜房科技发展有限公司 | Management method and device for domain name resolution record, storage medium and electronic equipment |
CN115277636A (en) * | 2022-09-14 | 2022-11-01 | 中国科学院大学 | Method and system for analyzing extensive domain name |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107682465A (en) * | 2017-06-24 | 2018-02-09 | 平安科技(深圳)有限公司 | Domain name mapping device, method and computer-readable recording medium |
CN110809070A (en) * | 2019-11-12 | 2020-02-18 | 睿哲科技股份有限公司 | Website domain name resolution record processing method and device, electronic equipment and storage medium |
CN110913007A (en) * | 2019-11-29 | 2020-03-24 | 杭州安恒信息技术股份有限公司 | Domain name resolution method, device and equipment |
-
2020
- 2020-12-18 CN CN202011500909.5A patent/CN112615945B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107682465A (en) * | 2017-06-24 | 2018-02-09 | 平安科技(深圳)有限公司 | Domain name mapping device, method and computer-readable recording medium |
CN110809070A (en) * | 2019-11-12 | 2020-02-18 | 睿哲科技股份有限公司 | Website domain name resolution record processing method and device, electronic equipment and storage medium |
CN110913007A (en) * | 2019-11-29 | 2020-03-24 | 杭州安恒信息技术股份有限公司 | Domain name resolution method, device and equipment |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113395361A (en) * | 2021-08-17 | 2021-09-14 | 苏州浪潮智能科技有限公司 | Load balancing access domain name coordination method, system, terminal and storage medium |
CN113395361B (en) * | 2021-08-17 | 2021-11-05 | 苏州浪潮智能科技有限公司 | Load balancing access domain name coordination method, system, terminal and storage medium |
CN113660359A (en) * | 2021-08-25 | 2021-11-16 | 北京搜房科技发展有限公司 | Management method and device for domain name resolution record, storage medium and electronic equipment |
CN113660359B (en) * | 2021-08-25 | 2024-01-19 | 北京搜房科技发展有限公司 | Domain name resolution record management method and device, storage medium and electronic equipment |
CN115277636A (en) * | 2022-09-14 | 2022-11-01 | 中国科学院大学 | Method and system for analyzing extensive domain name |
Also Published As
Publication number | Publication date |
---|---|
CN112615945B (en) | 2022-10-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112615945B (en) | Domain name resolution record management method and device, computer equipment and storage medium | |
CN108965388B (en) | Operation and maintenance auditing method and device | |
CN106933854B (en) | Short link processing method and device and server | |
CN112367246B (en) | Message pushing method and device, electronic equipment and storage medium | |
CN109831487B (en) | Fragmented file verification method and terminal equipment | |
US20050262218A1 (en) | System and method for DHCP-based assignment of IP addresses to servers based on geographic identifiers | |
US9584481B2 (en) | Host providing system and communication control method | |
CN110661829B (en) | File downloading method and device, client and computer readable storage medium | |
CA2988434C (en) | Automatic recharging system, method and server | |
US20140359066A1 (en) | System, method and device for offline downloading resource and computer storage medium | |
US8843915B2 (en) | Signature-based update management | |
CN105072608B (en) | A kind of method and device of administrative authentication token | |
CN104092555A (en) | Parameter value updating method, device and system | |
CN103220352A (en) | Terminal, server, file storage system and file storage method | |
CN109981569B (en) | Network system access method, device, computer equipment and readable storage medium | |
CN114153910A (en) | Data acquisition method and device, electronic device and computer program product | |
US9345062B2 (en) | Relay system, relay device, and control method and control program of relay device | |
US20140222771A1 (en) | Management device and management method | |
CN110765125B (en) | Method and device for storing data | |
US20090192993A1 (en) | Method and system for setting domain name and network device thereof | |
US10951600B2 (en) | Domain authentication | |
CN108173892B (en) | Cloud mirror image operation method and device | |
CN111367573B (en) | Equipment login method, device, storage medium and computer equipment | |
CN113986835A (en) | Management method, device, equipment and storage medium for FastDFS distributed files | |
CN110677353B (en) | Data access method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231031 Address after: 200232 Room 301-2, No. 206 Kaibin Road, Xuhui District, Shanghai Patentee after: Ping An Technology (Shanghai) Co.,Ltd. Address before: 518000 Guangdong, Shenzhen, Futian District Futian street Fu'an community Yitian road 5033, Ping An financial center, 23 floor. Patentee before: PING AN TECHNOLOGY (SHENZHEN) Co.,Ltd. |
|
TR01 | Transfer of patent right |