CN113660359A - Management method and device for domain name resolution record, storage medium and electronic equipment - Google Patents

Management method and device for domain name resolution record, storage medium and electronic equipment Download PDF

Info

Publication number
CN113660359A
CN113660359A CN202110980764.1A CN202110980764A CN113660359A CN 113660359 A CN113660359 A CN 113660359A CN 202110980764 A CN202110980764 A CN 202110980764A CN 113660359 A CN113660359 A CN 113660359A
Authority
CN
China
Prior art keywords
domain name
record
database
instruction
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
Application number
CN202110980764.1A
Other languages
Chinese (zh)
Other versions
CN113660359B (en
Inventor
王翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Soufun Science & Technology Development Co ltd
Original Assignee
Beijing Soufun Science & Technology Development Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Soufun Science & Technology Development Co ltd filed Critical Beijing Soufun Science & Technology Development Co ltd
Priority to CN202110980764.1A priority Critical patent/CN113660359B/en
Publication of CN113660359A publication Critical patent/CN113660359A/en
Application granted granted Critical
Publication of CN113660359B publication Critical patent/CN113660359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/219Managing data history or versioning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a management method and a device for domain name resolution records, a storage medium and electronic equipment, wherein the method comprises the following steps: when a triggering instruction for carrying out domain name resolution management on a domain name is received, judging whether the triggering instruction is a record modification instruction corresponding to the domain name, and if so, determining record change information corresponding to the domain name; determining a database record corresponding to the domain name in a constructed database, wherein the database record corresponds to an analysis record of the domain name currently applied by a domain name system; changing the database record according to the record change information to obtain the database record corresponding to the domain name after the change; and generating an analysis configuration file corresponding to the database record corresponding to the changed domain name, and importing the analysis configuration file into a domain name system so as to change the analysis record of the domain name applied by the domain name system. The method of the invention does not need to manually search the analysis configuration file to modify the analysis record, has simple and convenient process and can save human resources.

Description

Management method and device for domain name resolution record, storage medium and electronic equipment
Technical Field
The present invention relates to the field of domain name resolution technologies, and in particular, to a method and an apparatus for managing domain name resolution records, a storage medium, and an electronic device.
Background
In internet technology, domain name resolution is one of the important services. Domain name resolution refers to pointing a domain name to a website space IP, so that people can conveniently access a service of a website through a registered domain name. The domain name resolution work is usually performed by a Domain Name System (DNS).
The DNS generally performs domain name resolution according to a set domain name resolution record. When information such as an IP corresponding to a domain name changes, the resolution record of the domain name needs to be changed to ensure normal access to the domain name.
At present, when the resolution record of a domain name needs to be changed, a worker usually finds a resolution configuration file recording the resolution record of the domain name, and manually changes the content of the resolution record in the resolution configuration file. In an actual working scenario, the resolution records of the domain names often need to be changed, and the resolution records of a plurality of domain names may need to be changed simultaneously. And the mode of manually searching and analyzing the configuration file and changing the configuration file is complex in process, low in efficiency and large in human resource consumption.
Disclosure of Invention
In view of this, the embodiment of the present invention provides a method for managing domain name resolution records, so as to solve the problems of complicated process, low efficiency and large consumption of human resources when the domain name resolution records are modified manually.
The embodiment of the invention also provides a management device for the domain name resolution record, which is used for ensuring the actual realization and application of the method.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a management method of domain name resolution records comprises the following steps:
when a triggering instruction for carrying out domain name resolution management on a domain name is received, judging whether the triggering instruction is a record modification instruction corresponding to the domain name;
if the triggering instruction is a record modification instruction corresponding to the domain name, determining record modification information corresponding to the domain name;
determining a database record corresponding to the domain name in a constructed database, wherein the database record corresponding to the domain name corresponds to an analysis record of the domain name currently applied by a domain name system;
changing the database record corresponding to the domain name in the database according to the record change information to obtain the changed database record corresponding to the domain name;
and generating an analysis configuration file corresponding to the database record corresponding to the changed domain name, and importing the analysis configuration file into the domain name system so as to change the analysis record of the domain name applied by the domain name system.
Optionally, the determining record change information corresponding to the domain name includes:
acquiring an IP address corresponding to the domain name input by a user;
and determining the IP address as the record change information corresponding to the domain name.
Optionally, in the method, the changing the database record corresponding to the domain name in the database according to the record change information includes:
determining an IP address included in the record change information;
and determining a field corresponding to the IP address in a database record corresponding to the domain name, and modifying a field value corresponding to the field into the IP address.
The above method, optionally, the database construction process includes:
acquiring each analysis configuration file corresponding to the domain name system;
determining a domain name resolution record corresponding to each resolution configuration file corresponding to the domain name system;
determining a database record corresponding to the domain name resolution record corresponding to each resolution configuration file based on each preset database field;
and constructing a database according to the database record corresponding to each domain name resolution record.
The above method, optionally, further includes:
if the triggering instruction is not the record modification instruction corresponding to the domain name, judging whether the triggering instruction is a record adding instruction corresponding to the domain name;
if the triggering instruction is a record newly-increased instruction corresponding to the domain name, determining analysis record information corresponding to the domain name;
adding a database record corresponding to the analysis record information into the database to obtain a newly added database record;
and generating an analysis configuration file corresponding to the newly added database record, and importing the analysis configuration file corresponding to the newly added database record into the domain name system.
The above method, optionally, further includes:
if the trigger instruction is not the record modification instruction corresponding to the domain name, judging whether the trigger instruction is the record deletion instruction corresponding to the domain name;
if the triggering instruction is a record deleting instruction corresponding to the domain name, determining a target database record in the database;
executing a delete operation on the target database record;
determining a target analysis configuration file corresponding to the target database record in each analysis configuration file corresponding to the domain name system, and determining a target analysis record in the target analysis configuration file;
and deleting the target analysis record in the target analysis configuration file.
The above method, optionally, further includes:
if the triggering instruction is not the record modification instruction corresponding to the domain name, judging whether the triggering instruction is the record query instruction corresponding to the domain name;
and if the triggering instruction is a record query instruction corresponding to the domain name, determining a database record corresponding to the domain name in the database, and sending the database record corresponding to the domain name to a user.
A management apparatus of a domain name resolution record, comprising:
the first judging unit is used for judging whether the triggering instruction is a record modification instruction corresponding to the domain name or not when the triggering instruction for performing domain name resolution management on the domain name is received;
a first determining unit, configured to determine record change information corresponding to the domain name if the trigger instruction is a record modification instruction corresponding to the domain name;
a second determining unit, configured to determine a database record corresponding to the domain name in a constructed database, where the database record corresponding to the domain name corresponds to an analysis record of the domain name currently applied by a domain name system;
a changing unit, configured to change, according to the record change information, a database record corresponding to the domain name in the database, to obtain a database record corresponding to the domain name after the change;
and the generating unit is used for generating an analysis configuration file corresponding to the database record corresponding to the changed domain name, and importing the analysis configuration file into the domain name system so as to change the analysis record of the domain name applied by the domain name system.
A storage medium comprising stored instructions, wherein the instructions, when executed, control a device on which the storage medium is located to execute the above-mentioned management method for domain name resolution record.
An electronic device comprising a memory, and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to perform the method of managing domain name resolution records as described above.
Based on the foregoing, the method for managing a domain name resolution record provided by the embodiment of the present invention includes: when a triggering instruction for carrying out domain name resolution management on a domain name is received, judging whether the instruction is a record modification instruction corresponding to the domain name; if the command is a record modification command corresponding to the domain name, determining record modification information corresponding to the domain name; determining a database record corresponding to the domain name in a constructed database, wherein the database record corresponding to the domain name corresponds to an analysis record of the domain name currently applied by a domain name system; changing the database record corresponding to the domain name in the database according to the record change information to obtain a changed database record; and generating an analysis configuration file corresponding to the changed database record, and importing the analysis configuration file into the domain name system so as to change the analysis record applied by the domain name system. By applying the method provided by the embodiment of the invention, when the analysis record of the domain name needs to be modified, the user can trigger and generate the corresponding analysis configuration file to change the analysis record applied in the domain name system by sending the instruction without manually searching the analysis configuration file for modification, the modification process is simpler and more convenient, a large amount of human resources can be saved, and the efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for managing a domain name resolution record according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for managing a domain name resolution record according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a management process of a domain name resolution record according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a management apparatus for domain name resolution records according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a management apparatus for domain name resolution records according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
As can be known from the background art, the existing domain name resolution records are usually managed manually, and when the domain name resolution records need to be modified, the resolution configuration files need to be modified manually, which is a tedious process.
Therefore, the embodiment of the invention provides a management method for domain name resolution records, which is based on the resolution records applied by a database management domain name system, and a user can modify the resolution records of the domain name by sending an instruction without manually searching a resolution configuration file for modification, so that the process is simple and convenient, and the manpower resources can be saved.
An embodiment of the present invention provides a method for managing domain name resolution records, where the method is applicable to a management system for domain name resolution records, an execution subject of the method may be a processor of the system, and a flowchart of the method is shown in fig. 1, and includes:
s101: when a triggering instruction for carrying out domain name resolution management on a domain name is received, judging whether the triggering instruction is a record modification instruction corresponding to the domain name;
in the method provided by the embodiment of the invention, when a user needs to manage the domain name resolution record applied by the domain name system, the relevant information of the domain name to be managed can be input through the front end of the management system so as to send the corresponding trigger instruction. Therefore, when the user needs to modify the resolution record of the domain name, the corresponding trigger instruction can be sent through the front end. When the processor of the management system receives a trigger instruction sent by a user, whether the trigger instruction is a record modification instruction corresponding to the domain name can be judged according to an instruction identifier in the trigger instruction.
S102: if the triggering instruction is a record modification instruction corresponding to the domain name, determining record modification information corresponding to the domain name;
in the method provided by the embodiment of the present invention, if it is determined that the instruction identifier of the trigger instruction represents that the trigger instruction is a record modification instruction, the method obtains the relevant information of the domain name resolution record that needs to be changed, such as the domain name and the new resolution record after the change, which is input by the user at the front end, and uses the information input by the user as the record change information corresponding to the domain name, where the record change information is the change information of the resolution record of the domain name. The type of the changed resolution record may be an a (address) record, an mx (mail exchange) record, or the like.
S103: determining a database record corresponding to the domain name in a constructed database, wherein the database record corresponding to the domain name corresponds to an analysis record of the domain name currently applied by a domain name system;
in the method provided by the embodiment of the invention, a database can be constructed in advance, and the analysis records of each domain name applied by the domain name system are recorded in a database recording mode. The domain name to be managed can be matched in the database according to the current domain name to be managed, and the corresponding database record of the domain name in the database is found.
S104: changing the database record corresponding to the domain name in the database according to the record change information to obtain the changed database record corresponding to the domain name;
in the method provided by the embodiment of the present invention, the database record content corresponding to the domain name in the database is changed into the content corresponding to the record change information corresponding to the domain name, so as to obtain the changed database record.
S105: and generating an analysis configuration file corresponding to the database record corresponding to the changed domain name, and importing the analysis configuration file into the domain name system so as to change the analysis record of the domain name applied by the domain name system.
In the method provided by the embodiment of the invention, the preset file generation strategy can be triggered in real time when the database record of the database changes, and the file generation strategy can also be triggered when the database record in the database changes by detecting whether the database record in the database changes at regular time. And generating a corresponding analysis configuration file according to the changed database record, wherein the record in the generated analysis configuration file is the analysis record corresponding to the changed database record. Specifically, the format of the parsing configuration file may be configured in advance, the required data may be identified from the database record, and then the corresponding file may be generated. After the management system exports the analysis configuration file, the analysis configuration file is imported into a domain name system, so that the analysis record of the domain name corresponding to the domain name system is changed into the record content recorded in the analysis configuration file.
Based on the method provided by the embodiment of the invention, when a record modification instruction corresponding to a domain name is received, record modification information corresponding to the domain name can be determined; and determining a database record corresponding to the domain name in the constructed database, wherein the database record corresponds to a resolution record of the domain name currently applied by the domain name system. Changing the database record corresponding to the domain name in the database according to the record change information to obtain a changed database record; and generating an analysis configuration file corresponding to the changed database record, and importing the analysis configuration file into the domain name system so as to change the analysis record applied by the domain name system. By applying the method provided by the embodiment of the invention, when the user needs to change the domain name resolution record, the user can send the corresponding instruction through the front end without manually searching the corresponding resolution configuration file for modification, the change process is simple and convenient, the working efficiency can be improved, and a large amount of human resources can be saved.
Further, on the basis of the method shown in fig. 1, an embodiment of the present invention provides another method for managing domain name resolution records, where the step S102 of determining record change information corresponding to the domain name includes:
acquiring an IP address corresponding to the domain name input by a user;
and determining the IP address as the record change information corresponding to the domain name.
In the method provided by the embodiment of the present invention, the database record in the database may be a record corresponding to the record a. When the IP address pointed by the domain name in the domain name resolution is changed, the user can change the resolution record of the a record of the domain name, where the a record is used to specify the IP address corresponding to the domain name. The user can input the domain name with the changed corresponding IP address and the IP address to which the domain name should point after the change at the front end. And acquiring the newly pointed IP address input by the user in the front-end graphical interface, and taking the IP address as record change information.
Based on the method provided by the embodiment of the invention, the user can input the record information for changing at the front end, the modification process is convenient and quick, and the user experience is better.
Further, on the basis of the method provided by the foregoing embodiment, in the method provided by the embodiment of the present invention, the step S104 of changing the database record corresponding to the domain name in the database according to the record change information includes:
determining an IP address included in the record change information;
and determining a field corresponding to the IP address in a database record corresponding to the domain name, and modifying a field value corresponding to the field into the IP address.
In the method provided by the embodiment of the invention, when a user needs to change the record A corresponding to the domain name, the IP address contained in the record change information, namely the IP address newly pointed by the domain name input by the user, can be acquired. Each database record in the database records the field value of each preset field, the preset field may have a domain name, a record and the like, the field value of the domain name is a specific domain name, and the field value of the record a is an IP address to which the domain name points. In the database record corresponding to the domain name of the current analysis record needing to be changed, determining the field corresponding to the newly pointed IP address, namely the A record field, and modifying the field value of the field into the newly pointed IP address.
Based on the method provided by the embodiment of the invention, the field value of the matched field can be modified through field matching of the database records, so that the database records can be changed.
To better explain the method provided by the embodiment of the present invention, on the basis of the method shown in fig. 1, the embodiment of the present invention provides another method for managing domain name resolution records, such as the method flowchart shown in fig. 2, and the database construction process mentioned in step S103 includes:
s201: acquiring each analysis configuration file corresponding to the domain name system;
in the method provided by the embodiment of the present invention, in an initial process of implementing domain name resolution record management of a domain name system, each resolution configuration file currently applied by the domain name system can be obtained, that is, the domain name system performs domain name resolution according to the resolution record configured in each resolution configuration file. The parsing configuration file is a file with a fixed format, and is an existing configuration file in domain name parsing work, and will not be described in detail here.
S202: determining a domain name resolution record corresponding to each resolution configuration file corresponding to the domain name system;
in the method provided by the embodiment of the invention, the domain name resolution record recorded by the file can be acquired from the resolution configuration file corresponding to the domain name system.
S203: determining a database record corresponding to the domain name resolution record corresponding to each resolution configuration file based on each preset database field;
in the method provided by the embodiment of the present invention, for each domain name resolution record, a field value corresponding to each database field may be obtained from the domain name resolution record according to a preset database field, so as to obtain a database record corresponding to each domain name resolution record.
S204: and constructing a database according to the database record corresponding to each domain name resolution record.
In the method provided by the embodiment of the invention, a database is constructed by using the database records corresponding to the domain name resolution records for subsequent management of the domain name resolution records. And each database record in the constructed database is a database record corresponding to each domain name resolution record. It can be understood that the parsing configuration file corresponding to the domain name system is imported into the database according to a predetermined format, and the domain name parsing records recorded in each parsing configuration file are recorded in a data format preset in the database.
Based on the method provided by the embodiment of the invention, the domain name resolution records recorded by each resolution configuration file of the domain name system can be recorded in a preset database data format, the imported data can be automatically identified to construct the database, the construction process is more convenient and faster, and the use experience of a user can be further improved.
Further, an embodiment of the present invention provides another method for managing domain name resolution records, where on the basis of the method shown in fig. 1, the method provided in the embodiment of the present invention further includes:
if the triggering instruction is not the record modification instruction corresponding to the domain name, judging whether the triggering instruction is a record adding instruction corresponding to the domain name;
in the method provided by the embodiment of the invention, under the condition of establishing a new site and the like, a user can add the resolution record of the domain name through the front end. If it is determined that the trigger instruction is not the record modification instruction corresponding to the domain name in the determination process of step S101, it is determined whether the trigger instruction is the record newly-added instruction corresponding to the domain name according to the instruction identifier.
If the triggering instruction is a record newly-increased instruction corresponding to the domain name, determining analysis record information corresponding to the domain name;
in the method provided by the embodiment of the present invention, if it is determined that the instruction identifier of the trigger instruction represents that the trigger instruction is a record addition instruction, a newly added analysis record required by the user input at the front end is obtained and used as the analysis record information corresponding to the domain name.
Adding a database record corresponding to the analysis record information into the database to obtain a newly added database record;
in the method provided by the embodiment of the invention, the operation of adding records can be executed on the database, and the method can be specifically realized based on the database operation instruction. And adding a database record corresponding to the analysis record information in the database, namely recording the analysis record contained in the analysis record information in a data format preset by the database.
And generating an analysis configuration file corresponding to the newly added database record, and importing the analysis configuration file corresponding to the newly added database record into the domain name system.
In the method provided in the embodiment of the present invention, for the newly added database record, a corresponding parsing configuration file may be generated, and a specific generation method is the same as the generation method of the parsing configuration file mentioned in step S105, and reference may be made to the description in the above embodiment, which is not described herein again. The analysis configuration file corresponding to the newly added record is also imported into the domain name system so as to add the analysis record applied by the domain name system.
Based on the method provided by the embodiment of the invention, the user can add the domain name resolution record by sending the instruction from the front end, so that the newly added work of the domain name resolution record can be conveniently and quickly completed, the human resources are saved, and the use experience of the user can be further improved.
Further, an embodiment of the present invention provides another method for managing domain name resolution records, where on the basis of the method shown in fig. 1, the method provided in the embodiment of the present invention further includes:
if the trigger instruction is not the record modification instruction corresponding to the domain name, judging whether the trigger instruction is the record deletion instruction corresponding to the domain name;
if the triggering instruction is a record deleting instruction corresponding to the domain name, determining a target database record in the database;
executing a delete operation on the target database record;
determining a target analysis configuration file corresponding to the target database record in each analysis configuration file corresponding to the domain name system, and determining a target analysis record in the target analysis configuration file; and deleting the target analysis record in the target analysis configuration file.
In the method provided by the embodiment of the invention, the user can delete the resolution record of the domain name through the front end. If it is determined in the determination process of step S101 that the trigger instruction is not the record modification instruction corresponding to the domain name, further determining whether the trigger instruction is the record deletion instruction corresponding to the domain name according to the instruction identifier. If the instruction identifier of the trigger instruction represents that the trigger instruction is a record deletion instruction, acquiring a domain name and an analysis record which need to be deleted and are input by a user at the front end, and determining a target database record corresponding to the domain name in a database, namely a database record corresponding to the analysis record which needs to be deleted in the database. A delete record operation may be performed on the database to delete the target database record. In addition, in the analysis configuration file corresponding to the domain name system, the analysis record corresponding to the target database record is deleted. Specifically, when the database is deleted, a deletion task of an analysis record of the analysis configuration file may be triggered, or whether the database in the database is changed or not may be detected at regular time, and if the database is changed in record deletion, corresponding deletion information is generated, so as to delete the corresponding analysis record in the corresponding analysis configuration file according to the deletion information.
Based on the method provided by the embodiment of the invention, the user can delete the resolution record of the domain name by sending the instruction through the front end, the deletion work of the domain name resolution record can be conveniently and rapidly finished, the human resources can be saved, and the use experience of the user is further improved.
Further, an embodiment of the present invention provides another method for managing domain name resolution records, where on the basis of the method shown in fig. 1, the method provided in the embodiment of the present invention further includes:
if the triggering instruction is not the record modification instruction corresponding to the domain name, judging whether the triggering instruction is the record query instruction corresponding to the domain name;
and if the triggering instruction is a record query instruction corresponding to the domain name, determining a database record corresponding to the domain name in the database, and sending the database record corresponding to the domain name to a user.
In the method provided by the embodiment of the invention, the user can inquire the resolution record of the domain name through the front end. If it is determined in the determining process of step S101 that the triggering instruction is not the record modification instruction corresponding to the domain name, it is determined whether the domain name is the record query instruction according to the instruction identifier. If the instruction identifier of the trigger instruction represents that the trigger instruction is a record query instruction, the domain name queried by the user at the front end is obtained, and the user can also specify the type of the queried analysis record. According to the information input by the user, determining a database record corresponding to the domain name in a database, sending the database record to the user, wherein the database record corresponds to the resolution record corresponding to the domain name, recording the resolution record in a preset format, and feeding back the database record to realize the query of the domain name resolution record.
Based on the method provided by the embodiment of the invention, the user can query the resolution record of the domain name by sending the instruction through the front end, the query work of the domain name resolution record can be conveniently and quickly finished, the user does not need to manually search the resolution configuration file, the human resources can be saved, and the use experience of the user is further improved.
In order to better explain the method provided by the embodiment of the present invention, in combination with the schematic diagram of the management process of domain name resolution records shown in fig. 3, the embodiment of the present invention provides another management method of domain name resolution records, which explains the specific implementation of the method provided by the embodiment of the present invention.
As shown in fig. 3, in the method provided in the embodiment of the present invention, an import program for setting an analysis configuration file may be developed, and in an initialization stage, all the analysis configuration files of the domain name system may be imported into the database according to a specified format.
In the method provided by the embodiment of the invention, a graphical management interface of a foreground of the system is constructed, and a user can manage the resolution record through the graphical management interface of the foreground, for example, after a new site is created, the resolution record of the domain name needs to be newly added, or the resolution record of the domain name needs to be changed after the site is migrated, and the like, specifically, the management operations of modifying the resolution record of the domain name, inquiring the resolution record of the domain name, increasing the resolution record of the domain name or deleting the resolution record of the domain name and the like are performed. The user can input related information through the foreground graphical management interface to send a corresponding instruction. The foreground can call the database by calling the interface program, and performs corresponding operations of adding, deleting, modifying and checking on the data in the database.
In the method provided by the embodiment of the invention, a derivation program can be developed and set, a timing task is set in the derivation program, and whether the data in the database is changed or not is detected at regular time, for example, the detection is carried out every 5 minutes. When the data in the database are detected to be changed, the database can be called, the changed database content is exported, and a text with a pre-specified format is generated to be imported into an analysis system of the domain name for the analysis system to use, wherein the analysis system is a Domain Name System (DNS).
Corresponding to the management method for domain name resolution records shown in fig. 1, an embodiment of the present invention further provides a management apparatus for domain name resolution records, which is used for implementing the method shown in fig. 1 specifically, and a schematic structural diagram of the management apparatus is shown in fig. 4, and includes:
a first determining unit 301, configured to determine, when a trigger instruction for performing domain name resolution management on a domain name is received, whether the trigger instruction is a record modification instruction corresponding to the domain name;
a first determining unit 302, configured to determine record change information corresponding to the domain name if the trigger instruction is a record modification instruction corresponding to the domain name;
a second determining unit 303, configured to determine a database record corresponding to the domain name in a constructed database, where the database record corresponding to the domain name corresponds to an analysis record of the domain name currently applied by a domain name system;
a changing unit 304, configured to change, according to the record change information, a database record corresponding to the domain name in the database, to obtain a database record corresponding to the domain name after the change;
a generating unit 305, configured to generate an analysis configuration file corresponding to the database record corresponding to the changed domain name, and import the analysis configuration file into the domain name system, so as to change the analysis record of the domain name applied by the domain name system.
Based on the device provided by the embodiment of the invention, when a record modification instruction corresponding to a domain name is received, record modification information corresponding to the domain name can be determined; and determining a database record corresponding to the domain name in the constructed database, wherein the database record corresponds to a resolution record of the domain name currently applied by the domain name system. Changing the database record corresponding to the domain name in the database according to the record change information to obtain a changed database record; and generating an analysis configuration file corresponding to the changed database record, and importing the analysis configuration file into the domain name system so as to change the analysis record applied by the domain name system. By applying the device provided by the embodiment of the invention, when a user needs to change the domain name resolution record, the user can send the corresponding instruction through the front end without manually searching the corresponding resolution configuration file for modification, the change process is simple and convenient, the working efficiency can be improved, and a large amount of human resources can be saved.
On the basis of the apparatus provided in the foregoing embodiment, in the apparatus provided in the embodiment of the present invention, the first determining unit 302 includes:
the acquiring subunit is used for acquiring the IP address corresponding to the domain name input by the user; and determining the IP address as the record change information corresponding to the domain name.
In addition to the above apparatus, in an apparatus according to an embodiment of the present invention, the changing unit 304 includes:
a determining subunit configured to determine an IP address included in the record change information;
and the modifying subunit is used for determining a field corresponding to the IP address in the database record corresponding to the domain name, and modifying a field value corresponding to the field into the IP address.
On the basis of the apparatus shown in fig. 4, an embodiment of the present invention provides another apparatus for managing domain name resolution records, a schematic structural diagram of which is shown in fig. 5, and the apparatus provided in the embodiment of the present invention further includes:
an obtaining unit 306, configured to obtain each parsing configuration file corresponding to the domain name system;
a third determining unit 307, configured to determine a domain name resolution record corresponding to each resolution configuration file corresponding to the domain name system;
a constructing unit 308, configured to determine, based on preset database fields, a database record corresponding to the domain name resolution record corresponding to each resolution configuration file; and constructing a database according to the database record corresponding to each domain name resolution record.
On the basis of the device provided by the above embodiment, the device provided by the embodiment of the present invention further includes:
a second judging unit, configured to judge whether the trigger instruction is a record newly-added instruction corresponding to the domain name if the trigger instruction is not the record modification instruction corresponding to the domain name;
a fourth determining unit, configured to determine, if the trigger instruction is a record newly-added instruction corresponding to the domain name, analysis record information corresponding to the domain name;
the adding unit is used for adding a database record corresponding to the analysis record information into the database to obtain a newly added database record;
and the importing unit is used for generating an analysis configuration file corresponding to the newly added database record and importing the analysis configuration file corresponding to the newly added database record into the domain name system.
On the basis of the device provided by the above embodiment, the device provided by the embodiment of the present invention further includes:
a third determining unit, configured to determine whether the trigger instruction is a record deletion instruction corresponding to the domain name if the trigger instruction is not the record modification instruction corresponding to the domain name;
a fifth determining unit, configured to determine a target database record in the database if the trigger instruction is a record deletion instruction corresponding to the domain name;
a first deletion unit configured to perform a deletion operation on the target database record;
a second deleting unit, configured to determine, in each resolution configuration file corresponding to the domain name system, a target resolution configuration file corresponding to the target database record, and determine a target resolution record in the target resolution configuration file; and deleting the target analysis record in the target analysis configuration file.
On the basis of the device provided by the above embodiment, the device provided by the embodiment of the present invention further includes:
a fourth determining unit, configured to determine whether the trigger instruction is a record query instruction corresponding to the domain name if the trigger instruction is not the record modification instruction corresponding to the domain name;
and the sending unit is used for determining the database record corresponding to the domain name in the database and sending the database record corresponding to the domain name to a user if the triggering instruction is the record query instruction corresponding to the domain name.
The embodiment of the present invention further provides a storage medium, where the storage medium includes a stored instruction, and when the instruction runs, the device where the storage medium is located is controlled to execute the above management method for domain name resolution record.
An electronic device is provided in an embodiment of the present invention, and the structural diagram of the electronic device is shown in fig. 6, which specifically includes a memory 401 and one or more instructions 402, where the one or more instructions 402 are stored in the memory 401 and configured to be executed by one or more processors 403 to perform the following operations for executing the one or more instructions 402:
when a triggering instruction for carrying out domain name resolution management on a domain name is received, judging whether the triggering instruction is a record modification instruction corresponding to the domain name;
if the triggering instruction is a record modification instruction corresponding to the domain name, determining record modification information corresponding to the domain name;
determining a database record corresponding to the domain name in a constructed database, wherein the database record corresponding to the domain name corresponds to an analysis record of the domain name currently applied by a domain name system;
changing the database record corresponding to the domain name in the database according to the record change information to obtain the changed database record corresponding to the domain name;
and generating an analysis configuration file corresponding to the database record corresponding to the changed domain name, and importing the analysis configuration file into the domain name system so as to change the analysis record of the domain name applied by the domain name system.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for managing a domain name resolution record, comprising:
when a triggering instruction for carrying out domain name resolution management on a domain name is received, judging whether the triggering instruction is a record modification instruction corresponding to the domain name;
if the triggering instruction is a record modification instruction corresponding to the domain name, determining record modification information corresponding to the domain name;
determining a database record corresponding to the domain name in a constructed database, wherein the database record corresponding to the domain name corresponds to an analysis record of the domain name currently applied by a domain name system;
changing the database record corresponding to the domain name in the database according to the record change information to obtain the changed database record corresponding to the domain name;
and generating an analysis configuration file corresponding to the database record corresponding to the changed domain name, and importing the analysis configuration file into the domain name system so as to change the analysis record of the domain name applied by the domain name system.
2. The method according to claim 1, wherein the determining record change information corresponding to the domain name comprises:
acquiring an IP address corresponding to the domain name input by a user;
and determining the IP address as the record change information corresponding to the domain name.
3. The method according to claim 2, wherein the changing the database record corresponding to the domain name in the database according to the record change information includes:
determining an IP address included in the record change information;
and determining a field corresponding to the IP address in a database record corresponding to the domain name, and modifying a field value corresponding to the field into the IP address.
4. The method of claim 1, wherein the database building process comprises:
acquiring each analysis configuration file corresponding to the domain name system;
determining a domain name resolution record corresponding to each resolution configuration file corresponding to the domain name system;
determining a database record corresponding to the domain name resolution record corresponding to each resolution configuration file based on each preset database field;
and constructing a database according to the database record corresponding to each domain name resolution record.
5. The method of claim 1, further comprising:
if the triggering instruction is not the record modification instruction corresponding to the domain name, judging whether the triggering instruction is a record adding instruction corresponding to the domain name;
if the triggering instruction is a record newly-increased instruction corresponding to the domain name, determining analysis record information corresponding to the domain name;
adding a database record corresponding to the analysis record information into the database to obtain a newly added database record;
and generating an analysis configuration file corresponding to the newly added database record, and importing the analysis configuration file corresponding to the newly added database record into the domain name system.
6. The method of claim 1, further comprising:
if the trigger instruction is not the record modification instruction corresponding to the domain name, judging whether the trigger instruction is the record deletion instruction corresponding to the domain name;
if the triggering instruction is a record deleting instruction corresponding to the domain name, determining a target database record in the database;
executing a delete operation on the target database record;
determining a target analysis configuration file corresponding to the target database record in each analysis configuration file corresponding to the domain name system, and determining a target analysis record in the target analysis configuration file;
and deleting the target analysis record in the target analysis configuration file.
7. The method of claim 1, further comprising:
if the triggering instruction is not the record modification instruction corresponding to the domain name, judging whether the triggering instruction is the record query instruction corresponding to the domain name;
and if the triggering instruction is a record query instruction corresponding to the domain name, determining a database record corresponding to the domain name in the database, and sending the database record corresponding to the domain name to a user.
8. A management apparatus for a domain name resolution record, comprising:
the first judging unit is used for judging whether the triggering instruction is a record modification instruction corresponding to the domain name or not when the triggering instruction for performing domain name resolution management on the domain name is received;
a first determining unit, configured to determine record change information corresponding to the domain name if the trigger instruction is a record modification instruction corresponding to the domain name;
a second determining unit, configured to determine a database record corresponding to the domain name in a constructed database, where the database record corresponding to the domain name corresponds to an analysis record of the domain name currently applied by a domain name system;
a changing unit, configured to change, according to the record change information, a database record corresponding to the domain name in the database, to obtain a database record corresponding to the domain name after the change;
and the generating unit is used for generating an analysis configuration file corresponding to the database record corresponding to the changed domain name, and importing the analysis configuration file into the domain name system so as to change the analysis record of the domain name applied by the domain name system.
9. A storage medium, characterized in that the storage medium comprises stored instructions, wherein when the instructions are executed, a device on which the storage medium is located is controlled to execute the management method of domain name resolution record according to any one of claims 1 to 7.
10. An electronic device comprising a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to perform the method of managing domain name resolution records of any of claims 1-7.
CN202110980764.1A 2021-08-25 2021-08-25 Domain name resolution record management method and device, storage medium and electronic equipment Active CN113660359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110980764.1A CN113660359B (en) 2021-08-25 2021-08-25 Domain name resolution record management method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110980764.1A CN113660359B (en) 2021-08-25 2021-08-25 Domain name resolution record management method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113660359A true CN113660359A (en) 2021-11-16
CN113660359B CN113660359B (en) 2024-01-19

Family

ID=78481955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110980764.1A Active CN113660359B (en) 2021-08-25 2021-08-25 Domain name resolution record management method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113660359B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114201458A (en) * 2022-02-16 2022-03-18 苏州浪潮智能科技有限公司 Information updating method, micro-service system and computer readable storage medium
CN115842803A (en) * 2022-10-27 2023-03-24 新浪技术(中国)有限公司 File processing method, device and system

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030005157A1 (en) * 1999-11-26 2003-01-02 Edmon Chung Network address server
CN101217576A (en) * 2008-01-18 2008-07-09 厦门纳网科技有限公司 A dynamic domain name analysis system and the corresponding dynamic analysis method
CN102868550A (en) * 2012-08-17 2013-01-09 新浪网技术(中国)有限公司 Total network flow scheduler and method for querying domain name resolution record by using total network flow scheduler
CN103248725A (en) * 2013-05-23 2013-08-14 中国科学院计算机网络信息中心 Safe and reliable domain name resolution repairing method and system
CN103957285A (en) * 2014-04-18 2014-07-30 上海聚流软件科技有限公司 Method and system for providing root domain name analysis services
CN106452831A (en) * 2016-08-25 2017-02-22 平安科技(深圳)有限公司 Operation and maintenance management method for GTM equipment, and terminal
US20190190883A1 (en) * 2017-04-13 2019-06-20 Wangsu Science & Technology Co., Ltd. Dns server and configuration loading method, dns network system, and domain name resolution method and system
CN110851411A (en) * 2019-10-12 2020-02-28 新浪网技术(中国)有限公司 DNS dynamic change system and method based on file synchronization
CN111586201A (en) * 2020-04-30 2020-08-25 苏州亿歌网络科技有限公司 Domain name resolution system, method, device and storage medium
WO2021051420A1 (en) * 2019-09-21 2021-03-25 华为技术有限公司 Dns cache record determination method and apparatus
CN112615945A (en) * 2020-12-18 2021-04-06 平安科技(深圳)有限公司 Domain name resolution record management method and device, computer equipment and storage medium
CN113163023A (en) * 2021-02-26 2021-07-23 北京车和家信息技术有限公司 Domain name management method, device, medium and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030005157A1 (en) * 1999-11-26 2003-01-02 Edmon Chung Network address server
CN101217576A (en) * 2008-01-18 2008-07-09 厦门纳网科技有限公司 A dynamic domain name analysis system and the corresponding dynamic analysis method
CN102868550A (en) * 2012-08-17 2013-01-09 新浪网技术(中国)有限公司 Total network flow scheduler and method for querying domain name resolution record by using total network flow scheduler
CN103248725A (en) * 2013-05-23 2013-08-14 中国科学院计算机网络信息中心 Safe and reliable domain name resolution repairing method and system
CN103957285A (en) * 2014-04-18 2014-07-30 上海聚流软件科技有限公司 Method and system for providing root domain name analysis services
CN106452831A (en) * 2016-08-25 2017-02-22 平安科技(深圳)有限公司 Operation and maintenance management method for GTM equipment, and terminal
US20190190883A1 (en) * 2017-04-13 2019-06-20 Wangsu Science & Technology Co., Ltd. Dns server and configuration loading method, dns network system, and domain name resolution method and system
WO2021051420A1 (en) * 2019-09-21 2021-03-25 华为技术有限公司 Dns cache record determination method and apparatus
CN110851411A (en) * 2019-10-12 2020-02-28 新浪网技术(中国)有限公司 DNS dynamic change system and method based on file synchronization
CN111586201A (en) * 2020-04-30 2020-08-25 苏州亿歌网络科技有限公司 Domain name resolution system, method, device and storage medium
CN112615945A (en) * 2020-12-18 2021-04-06 平安科技(深圳)有限公司 Domain name resolution record management method and device, computer equipment and storage medium
CN113163023A (en) * 2021-02-26 2021-07-23 北京车和家信息技术有限公司 Domain name management method, device, medium and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114201458A (en) * 2022-02-16 2022-03-18 苏州浪潮智能科技有限公司 Information updating method, micro-service system and computer readable storage medium
CN114201458B (en) * 2022-02-16 2022-04-26 苏州浪潮智能科技有限公司 Information updating method, micro-service system and computer readable storage medium
CN115842803A (en) * 2022-10-27 2023-03-24 新浪技术(中国)有限公司 File processing method, device and system

Also Published As

Publication number Publication date
CN113660359B (en) 2024-01-19

Similar Documents

Publication Publication Date Title
US10839167B2 (en) Systems and methods for dynamically expanding natural language processing agent capacity
CN110519409B (en) Domain name dynamic configuration method, device, equipment and storage medium
CN107423070B (en) Page generation method and device
CN113660359A (en) Management method and device for domain name resolution record, storage medium and electronic equipment
CN109618176B (en) Processing method, equipment and storage medium for live broadcast service
US10372512B2 (en) Method and apparatus for automatic processing of service requests on an electronic device
CN108228770A (en) A kind of method and device of application file source inquiry
WO2019019670A1 (en) Application accessing method and device, computer apparatus, and storage medium
WO2016110203A1 (en) File path storing and local file accessing method and device
CN112597020A (en) Interface testing method and device, computer equipment and storage medium
CN105354195B (en) Information searching method and device
CN112306471A (en) Task scheduling method and device
CN108804711B (en) Data processing method and device and computer readable storage medium
CN101924821A (en) Mobile communication terminal as well as method and system for starting application program by same
CN109446445B (en) Resource acquisition method and device
CN113688183A (en) Multi-type data source extraction method, system, terminal equipment and storage medium
CN113067853A (en) Data pushing method and device, electronic equipment and storage medium
CN110532457B (en) Method and system for acquiring network segment ID
CN111984660A (en) Data synchronization method, device, equipment and storage medium
CN111026669A (en) Test log management method, test log management device, and storage medium
CN113709187B (en) Multi-server data request method, device, equipment and storage medium
CN111209325A (en) Service system interface identification method, device and storage medium
CN112685102B (en) Gateway plug-in hot loading method, device, equipment and medium
CN112486796B (en) Method and device for collecting information of vehicle-mounted intelligent terminal
CN109408547B (en) SAM registry reading method, reading system and related device

Legal Events

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