CN110855805A - 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 PDF

Info

Publication number
CN110855805A
CN110855805A CN201811584693.8A CN201811584693A CN110855805A CN 110855805 A CN110855805 A CN 110855805A CN 201811584693 A CN201811584693 A CN 201811584693A CN 110855805 A CN110855805 A CN 110855805A
Authority
CN
China
Prior art keywords
record
domain name
records
reverse
generation rule
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
CN201811584693.8A
Other languages
Chinese (zh)
Other versions
CN110855805B (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.)
INTERNET DOMAIN NAME SYSTEM BEIJING ENGINEERING RESEARCH CENTER LLC
Original Assignee
INTERNET DOMAIN NAME SYSTEM BEIJING ENGINEERING RESEARCH CENTER LLC
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 INTERNET DOMAIN NAME SYSTEM BEIJING ENGINEERING RESEARCH CENTER LLC filed Critical INTERNET DOMAIN NAME SYSTEM BEIJING ENGINEERING RESEARCH CENTER LLC
Priority to CN201811584693.8A priority Critical patent/CN110855805B/en
Publication of CN110855805A publication Critical patent/CN110855805A/en
Application granted granted Critical
Publication of CN110855805B publication Critical patent/CN110855805B/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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment 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

Method and system for configuring forward and reverse records in batch based on synthetic record type
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 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 resolution of all the IPs in the specified network segment is modified synchronously with the domain name 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:
s1, the user specifies a domain name generation rule for the composite 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 3600BULK 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, Domain Name 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, automatically generating the Domain Name prefix-c-d-prefix.example.com, which corresponds to the IP address one-to-one.
S2, the user specifies the IPv4/IPv6 network segment which needs to be configured with forward and reverse records.
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 3600BULK forward<Domain Name Pattern><IPv4_NetA IPv6_NetB>
Wherein < IPv4_ NetA IPv6_ NetB > indicates that the domain name rule for the composite record, which is used to answer forward resolution requests for all IP addresses in both segments a and B, is in effect for one IPv4 type network a and one IPv6 type network B.
And S3, configuring forward and reverse records of the inapplicable 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 3600A IPv4_NetA_IPA
b.example.com IN 3600A IPv4_NetA_IPB
c.example.com IN 3600A 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 network segment is synchronously modified along with the domain name 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 rules are 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 (10)

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, a user specifies a domain name generation rule of the synthetic 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 reverse records of the IP address which are not applicable to the domain name generation rule by the user.
2. The method according to claim 1, wherein in step S1, the user specifies a domain name generation rule for the synthetic record, and the generation rule has a correspondence relationship with the IP.
3. The method of claim 1, wherein in step S2, the user designates one or more IPv4/IPv6 segments for the synthetic record, and forward and reverse records for all IPs in a segment are applicable to the domain name generation rule.
4. The method according to claim 1 or 3, 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.
5. 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.
6. A system for batch configuration of positive and negative records using a synthetic record type, the system 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 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.
7. The system according to claim 6, wherein the domain name configuration unit synthesizes the recorded domain name generation rule, and the generation rule has a certain correspondence with the IP address.
8. The method of claim 6, wherein the segment specifying unit specifies one or more IPv4/IPv6 segments for which forward and reverse log resolution of all IPs within a segment is applicable.
9. The method of claim 8, wherein the one or more IPv4/IPv6 segments specified by the segment specifying unit specify that forward and reverse record resolution for all IPs within a segment is modified synchronously with the domain name rule.
10. The method of claim 6, 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.
CN201811584693.8A 2018-12-24 2018-12-24 Method and system for configuring forward and reverse records in batch based on synthetic record type Active CN110855805B (en)

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 true CN110855805A (en) 2020-02-28
CN110855805B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112468334A (en) * 2020-11-13 2021-03-09 苏州浪潮智能科技有限公司 Server configuration method, device, equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
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
US20130198409A1 (en) * 2012-02-01 2013-08-01 Microsoft Corporation Efficient implementation of user-provided dns names
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
US20130198409A1 (en) * 2012-02-01 2013-08-01 Microsoft Corporation Efficient implementation of user-provided dns names
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)

* Cited by examiner, † Cited by third party
Title
赵雅静等: "互联网资源命名寻址技术综述", 《计算机应用研究》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112468334A (en) * 2020-11-13 2021-03-09 苏州浪潮智能科技有限公司 Server configuration method, device, equipment and computer readable storage medium
CN112468334B (en) * 2020-11-13 2022-05-24 苏州浪潮智能科技有限公司 Server configuration method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN110855805B (en) 2022-05-03

Similar Documents

Publication Publication Date Title
US20090106404A1 (en) Method and Apparatus for Dynamically Configuring Virtual Internet Protocol Addresses
Mockapetris et al. Development of the domain name system
US7603474B2 (en) Efficient endpoint matching using a header-to-bit conversion table
US8447846B2 (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
CN103685590B (en) Obtain the method and system of IP address
CN112840601B (en) Method, apparatus and computer readable medium for configuring an apparatus to be named
JP2005505830A (en) Central directory server
CN109729187B (en) Proxy communication method, system, device and storage medium
CN105359458A (en) Network device communication method and network device
CN111314450B (en) Data transmission method and device, electronic equipment and computer storage medium
US20180052945A1 (en) Generation of data model mapping a data center
CN110995883A (en) Method, system and storage medium for DHCPv6 fixed address configuration based on EUI-64
US20220286495A1 (en) Domain Name Query Method and Related Device
CN107896257A (en) Method, apparatus, equipment and the medium of deploying client subsystem function
CN109088957B (en) NAT rule management method, device and equipment
CN111147308A (en) Network management method and system based on micro-service architecture
CN112866433A (en) Message load balancing processing method and device and computer equipment
US6826621B1 (en) Method and system for aggregating interface addresses
CN110855805B (en) Method and system for configuring forward and reverse records in batch based on synthetic record type
CN100382524C (en) Method and arrangement for configuration of a device in a data network
CN114189492A (en) Network card pressure testing method and system based on network address translation technology
US20050125550A1 (en) Location information via DHCP
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