大网数据广告活动
服务器运维问答

Revert back to manual text edits in Bind

· 52CE 我爱测

I've tried searching for this online, but could not find an answer. We currently run a bind cluster with 1 master and 8 slaves in our infrastructure. One of the things I wanted to implement an automated way of doing updates inste…

问题原文

原帖链接 · user1782878 · CC BY-SA 4.0

I've tried searching for this online, but could not find an answer. We currently run a bind cluster with 1 master and 8 slaves in our infrastructure. One of the things I wanted to implement an automated way of doing updates instead of manually having to enter data into zone files. When I tested nsupdate, it looked like it would work wonders until I realized that once nsupdate is used, your updates can no longer be done manually. This is a deal breaker and I have not been able to implement this feature at all due to this limitation.

Is there anyway of reverting back and forth between the journaled database once you implement nsupdate and its text based editing?

已采纳解答

原帖链接 · HBruijn · CC BY-SA 4.0

My apologies for quoting the manual verbatim, but the authors are probably better writers than I am https://ftp.isc.org/www/bind/arm95/Bv9ARM.ch04.html

The section on the journal database starts with:

All changes made to a zone using dynamic update are stored in the zone's journal file. This file is automatically created by the server when the first dynamic update takes place. The name of the journal file is formed by appending the extension .jnl to the name of the corresponding zone file unless specifically overridden. The journal file is in a binary format and should not be edited manually.

As you had already discerned. But the manual goes on with:

If you have to make changes to a dynamic zone manually, the following procedure will work:

  • Disable dynamic updates to the zone using rndc freeze zone.
    This will also remove the zone's .jnl file and update the master file.
  • Edit the zone file.
  • Run rndc thaw zone to reload the changed zone and re-enable dynamic updates.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-02-27)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。