CN103338222B - A kind of autosynchronous method of area's data for realizing DNS master and auxiliary server - Google Patents
A kind of autosynchronous method of area's data for realizing DNS master and auxiliary server Download PDFInfo
- Publication number
- CN103338222B CN103338222B CN201310195626.8A CN201310195626A CN103338222B CN 103338222 B CN103338222 B CN 103338222B CN 201310195626 A CN201310195626 A CN 201310195626A CN 103338222 B CN103338222 B CN 103338222B
- Authority
- CN
- China
- Prior art keywords
- area
- server
- auxiliary
- master
- master server
- 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
Landscapes
- Computer And Data Communications (AREA)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of autosynchronous method of area's data for realizing DNS master and auxiliary server.This method is:1) when master server increases area, deletes area or changes area to be recorded, the Notify message for including area's name is sent to each auxiliary server;2) after auxiliary server receives the message in a certain area, the SOA for asking the area to the master server is recorded, and inquires about the master server with the presence or absence of the area:If master server is returned does not exist the area, auxiliary server is locally deleting the area automatically;If master server is returned has the area, auxiliary server lookup locally whether there is the area;If the not no area of auxiliary server local, auxiliary server is localling create a dead zone first, is then transmitted to master server request area;If auxiliary server possesses the area, transmitted to master server request area according to XFR agreements.The present invention can accomplish that major-minor server increases area newly, area's automatic synchronization deleted, without in third-party instrument.
Description
Technical field
The present invention relates to a kind of method of data synchronization, more particularly to a kind of area's data for realizing DNS master and auxiliary server from
Synchronous method is moved, belongs to network technique field.
Background technology
Domain name system (Domain Name System, DNS) is the important infrastructure of internet, mainly responsible domain name and
Conversion between IP address, the normal operation of DNS systems, be nearly all network service such as web services, E-mail service just
The basis often run.
The data of whole DNS systems are presented tree structure, and each node can be considered an area.It is responsible for parsing certain area
Dns server is referred to as the authoritative server in the area.One authoritative server can manage multiple areas.Each area can be by one or many
Platform authoritative server provides parsing, i.e., added the auxiliary server of platform and provided parsing by a master server or a master server.When
When the data in one area are changed, the master server for being responsible for parsing the area will send in accordance with NOTIFY (RFC1996) agreement
" Notify message " notify it is all parsing the areas auxiliary servers, auxiliary server according to XFR (RFC1035 and RFC1995) agreement,
Newest area's data are asked to master server, to update local area's data.
NOTIFY is the RFC agreements of standard with XFR agreements, but these agreements specify only the method for synchronization in known area, false
If premise be that main and auxiliary server all configures good area to be synchronized in advance, therefore NOTIFY and XFR agreements are for increasing newly, deleting
The area for removing cannot accomplish data syn-chronization.I.e. when master server is newly-increased or deletes area, auxiliary server cannot automatically increase or delete
Corresponding area.But existing DNS system users, the particularly user such as Domain Name Registrar, often have substantial amounts of increase, deletion
The operation in area.In order to realize dynamic additions and deletions area, these users have to using third party's instrument, carry out dynamic and change authoritative server
Area's configuration information realize main and auxiliary data syn-chronization.
The content of the invention
For the technical problem that prior art is present, realize DNS master with auxiliary service it is an object of the invention to provide one kind
The autosynchronous method of area's data of device.In order to realize master and auxiliary server automatic synchronization additions and deletions area, the present invention is existing
On the basis of Notify agreements, " semanteme " extension is carried out to Notify message, when master server increase area, deletion area, repaiied
When changing area's record, Notify message is sent to auxiliary server, for notifying that it is newest that auxiliary server is obtained from master server
Area's data message;After auxiliary server receives the NOTIFY in a certain area, the SOA for asking the area to master server is recorded, such as
Fruit master server informs the area not asked, and auxiliary server is locally deleting the area automatically.If obtaining SOA replies, and auxiliary clothes
The local not area of business device, auxiliary server is localling create a dead zone first, is then transmitted to master server request area.If
Auxiliary server possesses the area, then transmitted to master server request area according to existing XFR agreements.
Area's data of auxiliary server need not be increased, delete newly by the method by means of third party's instrument again.
The technical scheme is that:
A kind of autosynchronous method of area's data for realizing DNS master and auxiliary server, wherein, area's data corresponding are solved
The master server in Xi Gai areas and at least one secondary server for parsing the area, its step is:
1) when master server increases area, deletes area or changes area to be recorded, sent to each auxiliary server and include area
The Notify message of name, for notifying that auxiliary server obtains newest area's data message from master server;
2) after auxiliary server receives the Notify message in a certain area, the master server is inquired about with the presence or absence of the area:
If a) master server is returned and do not exist the area, auxiliary server is locally deleting the area automatically;
If b) master server is returned and there is the area, auxiliary server lookup locally whether there is the area;If auxiliary service
The local not area of device, then auxiliary server localling create a dead zone first, then transmitted to master server request area;If
Auxiliary server possesses the area, then transmitted to master server request area according to XFR agreements.
Further, described master server of inquiring about is with the presence or absence of the method in the area:Auxiliary server is to the master server
The SOA in the area is asked to record, if master server returns to the SOA records in the area, master server has the area, otherwise main service
Device does not exist the area.
Further, after the auxiliary server receives the Notify message that master server sends, this is first verified that
The legitimacy of Notify message, inquires about the master server with the presence or absence of the area after being verified.
Further, the auxiliary server is to the method that master server request area transmits:Auxiliary server is to master server
Initiate the increment area transmission in area, the data newest to obtain the area.
Further, the auxiliary server is to the method that master server request area transmits:Auxiliary server is to master server
Initiate the full dose area transmission in area, the data newest to obtain the area.
Compared with prior art, advantages of the present invention:
The present invention can accomplish that DNS master is fully automated synchronous with auxiliary server area data, including newly-increased area, deletion area, area
Record modification etc., without again by means of third-party instrument.Deployment and the maintenance cost of DNS are greatly reduced, DNS systems are improve
The flexibility of system deployment.
Specific embodiment
Specific implementation method of the present invention for different situations is described below in detail;
It is automatic to increase area
The step of auxiliary server increases area automatically is as follows:
1) when master server increases an area, sent to configured good all auxiliary server and contain newly-increased area's name
Notify message;
2) after auxiliary server receives Notify message, the legitimacy of Notify message is first verified that, verifies NOTIFY
Whether believable authoritative server is come from.Enter next step after being verified, otherwise terminate treatment;
3) after being verified, auxiliary server to master server inquire about the area SOA record (Start of Authority,
" initial authority record "), to decide whether that promoter region is transmitted;SOA records are first records in area file, in an area only
There can be the information such as a SOA record, the version number for describing area, attendant's mailbox.
4) after auxiliary server receives the SOA replies of master server, local area's data are first checked for, if not managing this
Area, then be its one dead zone of establishment first, then initiates the full dose in area to master server or increment area transmits, to obtain the area most
New data;
5) update local area's data, then the auxiliary server after the renewal send the area Notify message informings other
Auxiliary server;
It is automatically deleted area
The step of auxiliary server is automatically deleted area is as follows:
1) after master server deletes an area, sent to configured good all auxiliary server and contain the trivial name
Notify message;
2) after auxiliary server receives Notify message, the legitimacy of Notify message is first verified that.Enter after being verified
Next step, otherwise terminates treatment;
3) after being verified, auxiliary server is recorded to the SOA that master server inquires about the area, to decide whether that promoter region passes
Send;
4) auxiliary server judges whether this records non-existent mark comprising the prompting such as REFUSED, NODATA for SOA response to query
Will position, if it is, representing that master server has deleted this area.The area is deleted from auxiliary server, and sends the Notify in the area
Message informing other auxiliary servers;
Change the synchronized update in area
Updating for modification area can be exactly to solve the side that modification area updates using existing NOTIFY agreements and XFR agreements
Method.
Claims (5)
1. a kind of autosynchronous method of area's data for realizing DNS master and auxiliary server, wherein, an area data correspondence one is parsed
The master server in the area and at least one auxiliary server for parsing the area, its step is:
1) when master server increases area, deletes area or changes area to be recorded, sent to each auxiliary server and include area's name
Notify message, for notifying that auxiliary server obtains newest area's data message from master server;
2) after auxiliary server receives the Notify message in a certain area, the master server is inquired about with the presence or absence of the area:
If a) master server is returned and do not exist the area, auxiliary server is locally deleting the area automatically;
If b) master server is returned and there is the area, auxiliary server lookup locally whether there is the area;If auxiliary server sheet
Ground is localling create a dead zone first without the area, then auxiliary server, is then transmitted to master server request area;If auxiliary clothes
Business device possesses the area, then transmitted to master server request area according to XFR agreements.
2. the method for claim 1, it is characterised in that the inquiry master server is with the presence or absence of the method in the area:
Auxiliary server asks the SOA in the area to record to the master server, and whether auxiliary server should comprising prompting according to SOA response to query
Whether SOA records non-existent flag bit, judge the master server in the absence of the area.
3. method as claimed in claim 1 or 2, it is characterised in that it is described that the auxiliary server receives that master server sends
After Notify message, the legitimacy of the Notify message is first verified that, the master server is inquired about after being verified with the presence or absence of this
Area.
4. method as claimed in claim 1 or 2, it is characterised in that the side that the auxiliary server is transmitted to master server request area
Method is:Auxiliary server is transmitted to the increment area that master server initiates area, the data newest to obtain the area.
5. method as claimed in claim 1 or 2, it is characterised in that the side that the auxiliary server is transmitted to master server request area
Method is:Auxiliary server is transmitted to the full dose area that master server initiates area, the data newest to obtain the area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310195626.8A CN103338222B (en) | 2013-05-23 | 2013-05-23 | A kind of autosynchronous method of area's data for realizing DNS master and auxiliary server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310195626.8A CN103338222B (en) | 2013-05-23 | 2013-05-23 | A kind of autosynchronous method of area's data for realizing DNS master and auxiliary server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103338222A CN103338222A (en) | 2013-10-02 |
CN103338222B true CN103338222B (en) | 2017-06-06 |
Family
ID=49246316
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310195626.8A Active CN103338222B (en) | 2013-05-23 | 2013-05-23 | A kind of autosynchronous method of area's data for realizing DNS master and auxiliary server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103338222B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104883373A (en) * | 2015-06-19 | 2015-09-02 | 中国互联网络信息中心 | Method and system for DNS region transmission monitoring |
CN107819795A (en) * | 2016-09-12 | 2018-03-20 | 北京金山云网络技术有限公司 | A kind of major-minor server data synchronous method of DNS, apparatus and system |
CN112565477B (en) * | 2020-12-04 | 2023-03-24 | 深圳网基科技有限公司 | DNS data update notification method supporting multiple intelligent lines and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101841409A (en) * | 2010-01-26 | 2010-09-22 | 中国科学院计算机网络信息中心 | Method, server and domain name system for realizing purpose of creating synchronization in DNS region |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7200863B2 (en) * | 2000-05-16 | 2007-04-03 | Hoshiko Llc | System and method for serving content over a wide area network |
CN1805450A (en) * | 2005-01-10 | 2006-07-19 | 华为技术有限公司 | Method of implementing data synchronization between server and client in DNS mechanism |
CN101815285B (en) * | 2010-04-12 | 2014-09-10 | 中兴通讯股份有限公司 | Data synchronization method and data synchronization system in internet mobile number application |
-
2013
- 2013-05-23 CN CN201310195626.8A patent/CN103338222B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101841409A (en) * | 2010-01-26 | 2010-09-22 | 中国科学院计算机网络信息中心 | Method, server and domain name system for realizing purpose of creating synchronization in DNS region |
Also Published As
Publication number | Publication date |
---|---|
CN103338222A (en) | 2013-10-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2190168B1 (en) | Dispatching method, dispatching apparatus and dispatching system | |
EP1965540B1 (en) | A method and network device for configuring the domain name in ipv6 access network | |
US8351349B2 (en) | Method and system for realizing location management of multihomed terminals in universal network | |
US20120297087A1 (en) | Method And Apparatus For Message Distribution In A Device Management System | |
CN103078877B (en) | Based on the user authentication of DNS and domain name access control method and system | |
CN103338222B (en) | A kind of autosynchronous method of area's data for realizing DNS master and auxiliary server | |
CN105282269A (en) | Local DNS root server configuration method and service method | |
CN109936632B (en) | CNAME acceleration method applied to DNS authoritative server | |
WO2009009940A1 (en) | A mobile terminal registration method in a radio network | |
CN100442920C (en) | Method for user accessing information in next generation network | |
CN110876154B (en) | Method, apparatus and storage medium for implementing NF proximity selection | |
CN105744579A (en) | Method for switching terminal between APs, switching control apparatus, and access apparatus | |
CN104836839A (en) | Universal user self-defining session system and session management method thereof | |
WO2019129033A1 (en) | Transport network subslice management method and device | |
CN105323325A (en) | Address assignment method for identity and position separation network, and access service node | |
CN108989220A (en) | Route Method And Route System | |
CN102123161B (en) | Distributed mobility management method and distributed mobility management system | |
JP4180279B2 (en) | Routing method and system using name resolution | |
CN105337766A (en) | Network element automatic discovery method and system based on DHCP | |
CN106878475B (en) | Domain name addressing method and system | |
CN106534390B (en) | The storage and management method and system of authoritative domain name system server data | |
CN110035134A (en) | Method for network address translation, device and access device | |
CN104618450B (en) | The Web caching systems and method of a kind of WLAN | |
CN103108055B (en) | A kind of ENUM/DNS and real-time data processing method thereof | |
CN109714197B (en) | Method and device for configuring centralized control strategy in centralized control |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210204 Address after: 100190 room 506, building 2, courtyard 4, South 4th Street, Zhongguancun, Haidian District, Beijing Patentee after: CHINA INTERNET NETWORK INFORMATION CENTER Address before: 100190 No. four, 4 South Street, Haidian District, Beijing, Zhongguancun Patentee before: Computer Network Information Center, Chinese Academy of Sciences |