CN110855805B - Method and system for configuring forward and reverse records in batch based on synthetic record type - Google Patents
Method and system for configuring forward and reverse records in batch based on synthetic record type Download PDFInfo
- Publication number
- CN110855805B CN110855805B CN201811584693.8A CN201811584693A CN110855805B CN 110855805 B CN110855805 B CN 110855805B CN 201811584693 A CN201811584693 A CN 201811584693A CN 110855805 B CN110855805 B CN 110855805B
- Authority
- CN
- China
- Prior art keywords
- record
- domain name
- reverse
- records
- network segment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
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]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0889—Techniques to speed-up the configuration process
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to the field of computer domain name resolution, and discloses a method for configuring forward and reverse records in batches based on synthetic record types, which comprises the following steps: a user specifies a recorded domain name generation rule; the user specifies an IPv4/IPv6 network segment which needs to be configured with forward and reverse records; and the user self-configures the forward and reverse records of the IP address which are not suitable for the batch generation rule. The method provided by the invention can reduce the system resource consumption and performance influence caused by configuring mass forward and reverse records of the IP addresses in a large network segment for the server, is convenient to maintain the synchronous update of the forward and reverse records of the IP addresses in the network segment, and reduces the probability of influencing the service due to the missing or mismatching of the forward and reverse records.
Description
Technical Field
The invention relates to the technical field of computer domain name resolution, in particular to a method and a system for configuring forward and reverse records in batches based on synthetic record types.
Background
The forward record maps host names to IP addresses, containing a and AAAA record types, the former for mapping IPv4 addresses and the latter for mapping IPv6 addresses.
The reverse record is used to specify the host name associated with the IP, contains the PTR record type, and is reciprocal to the A and AAAA records in the case of normal configuration.
The DNS specification states that every internet-reachable host needs to have a domain name and that the forward and reverse records should correspond to each other. If a reverse record is missing or the forward and reverse records do not match, it may cause parts of the web service, such as ssh, mail server, etc., to malfunction.
The traditional record configuration method is low in efficiency and easy to make mistakes when configuring forward and reverse records for massive IP addresses of a large network segment, and simultaneously, massive record data can consume system resources such as a DNS (domain name system) server memory and a magnetic disk and influence the transmission and DNS resolution performance of a main area and an auxiliary area, and the problem is more prominent along with the wide deployment of IPv 6.
The DNS universal matching (wildcard) technology can implement batch configuration of a plurality of domain name records with the same suffix, but cannot meet the requirement scenario of one-to-one matching of forward and reverse records.
Disclosure of Invention
In order to solve the technical problems, the invention provides a method for configuring the forward and reverse records in batch based on the synthetic record type, so as to reduce the number of records, facilitate updating and maintenance and solve the management problem of mass forward and reverse records.
The invention provides a method for configuring forward and reverse records in batch based on a synthetic record type, which comprises the following steps:
s1, a domain name generation rule of a user specified record;
s2, the user specifies an IPv4/IPv6 network segment which needs to be configured with forward and reverse records;
and S3, configuring forward and backward records which are not suitable for batch generation rules by the user.
Preferably, in step S1, the user specifies a domain name generation rule of the synthesized record, and the domain name generation rule may have a certain correspondence with the IP.
Preferably, in step S2, the user designates one or more IPv4/IPv6 segments for the synthesis record, and forward/reverse record analysis of all IPs in the configured segment is applied to the batch generation rule.
Preferably, in step S3, the user configures, by itself, the forward and reverse records of the IP address not applicable to the synthesis recording rule under the specified network segment, and the record resolution priority configured by itself is higher than the synthesis type.
Preferably, the synthetic record is a normal DNS record, and the record management and operation mode applicable to DNS can be modified by DNS master and slave zone transmission and using a DNS dynamic update protocol.
In another aspect, the present invention provides a method for batch configuration of forward and backward records using a composite record type, wherein the system includes:
a domain name configuration unit for specifying a domain name generation rule of the synthetic record;
the network segment specifying unit is used for specifying an IPv4/IPv6 network segment which is suitable for generating forward and reverse records according to a domain name generation rule;
and the IP configuration unit is used for configuring forward and reverse records for the IP addresses which are not suitable for the domain name generation rule in the synthetic recording network segment.
Preferably, the domain name configuration unit synthesizes the recorded domain name generation rule, and the generation rule may have a certain correspondence with the IP.
Preferably, the network segment specifying unit specifies one or more IPv4/IPv6 network segments, and specifies that forward and reverse record analysis of all IPs in a network segment is applicable to the domain name generation rule.
Preferably, the network segment specifying unit specifies one or more IPv4/IPv6 network segments, and the forward and reverse record analysis of all the IPs in the specified network segment is modified synchronously with the domain name generation rule.
Preferably, the IP configuration unit configures forward and reverse records for IP addresses that are not applicable to the synthesis recording rule under the network segment, and the self-configured record analysis priority is higher than the synthesis type record.
Compared with the prior art, the method and the system for configuring the forward and reverse records in batch based on the type of the synthetic record, disclosed by the invention, have the advantages that a single synthetic record can respond to the forward and reverse analysis requests of all IP addresses in a network segment, and the influence of the resource consumption and the analysis performance of a DNS (domain name system) server, caused by excessive record quantity, caused by the fact that the forward and reverse records are required to be independently established for each IP address in the network segment in the traditional mode is avoided; meanwhile, by independently modifying the content of the synthetic record, the effect of globally updating or deleting the forward and reverse analytic records of all IP addresses in the network segment can be realized, the cost of maintenance work and the omission probability are greatly reduced, and the maintenance omission may cause the forward and reverse records of partial IP addresses to be lost or not matched, thereby causing influence on the service.
Drawings
FIG. 1 is a flow chart of a method for batch configuration of positive and negative records based on synthetic record type in a preferred embodiment of the present invention;
FIG. 2 is an example of a method for bulk configuration of forward records based on synthetic record types in a preferred embodiment of the present invention;
FIG. 3 is a block diagram of a system for batch configuration of positive and negative records based on synthetic record type in a preferred embodiment of the present invention;
Detailed Description
The present invention will be described in further detail below with reference to the accompanying drawings, but the present invention is not limited thereto.
In order to make the technical solutions of the present invention better understood, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The invention provides a method for configuring forward and reverse records in batch based on a synthetic record type, which comprises the following steps as shown in figure 1:
s201, a user specifies a domain name generation rule of the synthetic record.
Specifically, in step S1, when the user specifies the domain name generation rule of the synthesized record, the generation rule preferably has a certain correspondence with the IP, so that it is convenient to solve the problem that the DNS flooding matching (wildcard) technique cannot meet the requirement scenario of one-to-one correspondence between forward and reverse records.
Referring to fig. 2, a composite record is configured in the DNS zone file for batch generation of forward resolution records.
example.com IN 3600 BULK forward <Domain Name Pattern> <IPv4_NetA IPv6_NetB>
Where BULK indicates that the record type is composition, forward indicates that it is used to compose the forward record, and < Domain _ Name _ Pattern > represents the Domain Name generation rule, e.g. for a 16-bit network a.b.c.d/16, the Domain Name generation rule prefix- [3] - [4] -postfix indicates that the 3 rd field c and the 4 th field d of the IP address are embedded into the character string of the specified prefix, suffix and connector, and the Domain Name prefix-c-d-prefix.example.com corresponding to the IP address one-to-one is automatically generated.
S202, the user specifies the IPv4/IPv6 network segment needing to be configured for forward and reverse recording.
Specifically, in step S2, when the user specifies one or more IPv4/IPv6 segments for the synthetic record, forward/reverse record resolution for all IPs in the configured segment is applied to the domain name generation rule.
Referring to fig. 2 again, a composite record is configured in the DNS zone file for batch generation of the forward direction resolution records.
example.com IN 3600 BULK forward <Domain Name Pattern> <IPv4_NetA IPv6_NetB>
Wherein < IPv4_ NetA IPv6_ NetB > indicates that the domain name generation rule for the synthetic record is in effect for one IPv4 type network a and one IPv6 type network B, the record being used to answer forward resolution requests for all IP addresses in both segments a and B.
And S203, configuring forward and reverse records of the unsuitable batch generation rule by the user.
Specifically, in step S3, the user configures, by himself or herself, the forward and reverse records of the IP address that are not applicable to the synthesized record rule in the specified network segment, and the record analysis priority of the self-configuration is higher than the synthesized record type.
In this embodiment, as shown in fig. 2, three forward records are configured in the DNS zone file.
a.example.com IN 3600 A IPv4_NetA_IPA
b.example.com IN 3600 A IPv4_NetA_IPB
c.example.com IN 3600 A IPv6_NetB_IPC
It is indicated that the IP addresses a and B in the IPv4 network a correspond to domain names a.example.com and b.example.com, respectively, and the domain name corresponding to the IP address C in the IPv6 network B is c.example.com, and the domain names corresponding to these 3 IP addresses are no longer applicable to the domain name generation rule of the composition record.
Further, the synthetic record is a standard DNS record meeting DNS protocol specifications, and is suitable for existing record management and operation modes of DNS, and the synthetic record can be transmitted through a DNS master and slave region and modified using a DNS dynamic update protocol.
It will be understood by those skilled in the art that all or part of the steps in the method of the above embodiments may be implemented by a program, which is stored in a computer-readable storage medium and includes the steps of the method of the above embodiments when the program is executed, and the storage medium may be ROM/RAM, magnetic disk, optical disk, memory card, etc. Accordingly, it will be understood by those skilled in the art that, in correspondence with the method of the present invention, the present invention also encompasses a system for batch configuration of positive and negative records using a synthetic record type, see FIG. 3, comprising:
a domain name configuration unit for specifying a domain name generation rule of the synthetic record;
the network segment specifying unit is used for specifying an IPv4/IPv6 network segment which is suitable for generating forward and reverse records by a domain name generation rule;
and the IP configuration unit is used for configuring forward and reverse records for the IP addresses which are not suitable for the domain name generation rule in the synthetic recording network segment.
In the domain name configuration unit, the domain name generation rule of the synthetic record preferably has a certain corresponding relationship with the IP.
In addition, in the network segment specifying unit, one or more IPv4/IPv6 network segments may be specified, and forward and reverse record parsing of all IPs in the network segment may be specified to be applicable to the domain name generation rule. The single synthesized record can respond to the forward and reverse analysis requests of all IP addresses in the network segment, thereby avoiding the influence of the DNS server system resource consumption and the analysis performance caused by excessive record quantity because the forward and reverse records need to be independently established for each IP address in the network segment in the traditional mode
Furthermore, the network segment specifying unit specifies one or more IPv4/IPv6 network segments, and the forward and reverse record analysis of all the IPs in the specified network segment is modified synchronously with the domain name generation rule. The processing mode of independently modifying the forward and reverse records corresponding to each IP address in the network segment when the forward and reverse domain name generation rule is changed in the traditional mode is avoided, and the maintenance cost and the error probability are reduced.
And the IP configuration unit is used for self-configuring forward and reverse records for the IP addresses which are not suitable for the synthetic recording rule under the network segment, the recorded values can be different from the values generated by the synthetic rule and cannot be synchronously modified, and the self-configured record analysis priority is higher than the synthetic type record. The user can independently designate domain names for some hosts with special requirements in a network segment, can be compatible with existing recorded data which do not meet a single matching rule, and has good compatibility and expansibility.
Compared with the prior art, the method and the system for configuring the forward and reverse records in batch based on the synthetic record type reduce the system resource consumption and performance influence caused by configuring a large network segment of mass forward and reverse records by the server, facilitate the maintenance of the synchronous update of the forward and reverse records of the IP address in the network segment, and reduce the probability of influencing the service due to the missing or mismatching of the forward and reverse records.
The foregoing description shows and describes several preferred embodiments of the invention, but as aforementioned, it is to be understood that the invention is not limited to the forms disclosed herein, but is not to be construed as excluding other embodiments and is capable of use in various other combinations, modifications, and environments and is capable of changes within the scope of the inventive concept as expressed herein, commensurate with the above teachings, or the skill or knowledge of the relevant art. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (6)
1. A method for configuring forward and reverse records in batch based on a synthetic record type is characterized by comprising the following steps:
s1, configuring a domain name generating rule of the single synthetic record, wherein the domain name generating rule comprises: automatically generating domain names corresponding to the IP addresses one by one;
s2, specifying that forward and reverse record analysis of all IPs of an IPv4/IPv6 network segment which needs to be configured with forward and reverse record is suitable for the domain name generation rule;
and S3, configuring forward and reverse records of the IP address which are not applicable to the domain name generation rule by self.
2. The method according to claim 1, wherein in step S3, the user self-configures the forward and backward records of the IP address not applicable to the domain name generation rule of the synthesized record under the specified network segment, and the self-configured record resolution priority is higher than the synthesis type.
3. The method of claim 1, wherein the synthesized record is a standard DNS record that meets DNS protocol specifications, and is applicable to existing record management and operation modes of DNS.
4. A system for batch configuration of positive and negative records using a synthetic record type, the system comprising:
a domain name configuration unit, configured to configure a domain name generation rule of a single synthesized record, where the domain name generation rule includes: automatically generating domain names corresponding to the IP addresses one by one;
a network segment specifying unit, configured to specify that forward and reverse record analysis of all IPs of an IPv4/IPv6 network segment configured with forward and reverse records is applicable to the domain name generation rule;
and the IP configuration unit is used for configuring forward and reverse records for the IP address which is not suitable for the domain name generation rule in the synthetic recording network segment.
5. The system of claim 4, wherein the one or more IPv4/IPv6 network segments specified by the network segment specifying unit specify that forward and reverse record resolution of all IPs within a network segment is modified synchronously with the domain name generation rules.
6. The system of claim 4, wherein the IP configuration unit configures a forward record and a backward record for IP addresses that are not applicable to the synthesized record rule under the network segment, and the self-configured record resolution priority is higher than the synthesized type record.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811584693.8A CN110855805B (en) | 2018-12-24 | 2018-12-24 | Method and system for configuring forward and reverse records in batch based on synthetic record type |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811584693.8A CN110855805B (en) | 2018-12-24 | 2018-12-24 | Method and system for configuring forward and reverse records in batch based on synthetic record type |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110855805A CN110855805A (en) | 2020-02-28 |
CN110855805B true CN110855805B (en) | 2022-05-03 |
Family
ID=69594665
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811584693.8A Active CN110855805B (en) | 2018-12-24 | 2018-12-24 | Method and system for configuring forward and reverse records in batch based on synthetic record type |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110855805B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112468334B (en) * | 2020-11-13 | 2022-05-24 | 苏州浪潮智能科技有限公司 | Server configuration method, device, equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1694459A (en) * | 2005-04-13 | 2005-11-09 | 北京交通大学 | Method for updating dynamic field name in IPv6 network |
CN102984299A (en) * | 2012-12-10 | 2013-03-20 | 中国科学院计算机网络信息中心 | Method and service system for realizing domain name registration and resolution based on domain name group |
CN103701948A (en) * | 2013-12-25 | 2014-04-02 | 乐视网信息技术(北京)股份有限公司 | Acquisition method and device for configuration information of domain name resolving system |
CN103916486A (en) * | 2013-01-09 | 2014-07-09 | 索尼公司 | Information processing device, information processing method, and information processing system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130198409A1 (en) * | 2012-02-01 | 2013-08-01 | Microsoft Corporation | Efficient implementation of user-provided dns names |
-
2018
- 2018-12-24 CN CN201811584693.8A patent/CN110855805B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1694459A (en) * | 2005-04-13 | 2005-11-09 | 北京交通大学 | Method for updating dynamic field name in IPv6 network |
CN102984299A (en) * | 2012-12-10 | 2013-03-20 | 中国科学院计算机网络信息中心 | Method and service system for realizing domain name registration and resolution based on domain name group |
CN103916486A (en) * | 2013-01-09 | 2014-07-09 | 索尼公司 | Information processing device, information processing method, and information processing system |
CN103701948A (en) * | 2013-12-25 | 2014-04-02 | 乐视网信息技术(北京)股份有限公司 | Acquisition method and device for configuration information of domain name resolving system |
Non-Patent Citations (1)
Title |
---|
互联网资源命名寻址技术综述;赵雅静等;《计算机应用研究》;20070731;1-5 * |
Also Published As
Publication number | Publication date |
---|---|
CN110855805A (en) | 2020-02-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8972547B2 (en) | Method and apparatus for dynamically configuring virtual internet protocol addresses | |
CN100407625C (en) | Method for providing business according to its type | |
US8429258B2 (en) | Using unique local unicast addresses in a global domain name server by providing a centralized registry | |
US20050027778A1 (en) | Automatic configuration of an address allocation mechanism in a computer network | |
US10498694B2 (en) | Mapping IPv4 knowledge to IPv6 | |
KR20050033522A (en) | Central directory server | |
KR20010050156A (en) | Method and apparatus for identifying clients using incoming option data | |
US20180331895A1 (en) | Viral System Discovery and Installation for Distributed Networks | |
CN105359458A (en) | Network device communication method and network device | |
US20180052945A1 (en) | Generation of data model mapping a data center | |
US8369329B2 (en) | Dynamic hierarchical address resource management architecture, method and apparatus | |
CN102394947B (en) | Translation method, device and system and ALG device for IPv4 and IPv6 addresses | |
CN111147308A (en) | Network management method and system based on micro-service architecture | |
CN114489931B (en) | Container creation method and system for function instance | |
CN112866433A (en) | Message load balancing processing method and device and computer equipment | |
Rooney | IP Address Management: Principles and Practice | |
CN109088957B (en) | NAT rule management method, device and equipment | |
CN110855805B (en) | Method and system for configuring forward and reverse records in batch based on synthetic record type | |
CN115314353B (en) | Device and method for realizing single-pod multi-network card based on kubernetes | |
CN100382524C (en) | Method and arrangement for configuration of a device in a data network | |
CN104205730B (en) | Network element data access method, Virtual NE, network management server and NMS | |
CN114244654B (en) | URL forwarding method, device, equipment and computer storage medium | |
US20050125550A1 (en) | Location information via DHCP | |
CN114189492A (en) | Network card pressure testing method and system based on network address translation technology | |
CN104333615A (en) | Method and device for tracing address source |
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 |