<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">在 2018年8月22日,下午8:54,Matus UHLAR - fantomas <<a href="mailto:uhlar@fantomas.sk" class="">uhlar@fantomas.sk</a>> 写道:</div><br class="Apple-interchange-newline"><div class=""><div class="">On 22.08.18 20:37, Zhengyu Pan wrote:<br class=""><blockquote type="cite" class="">Thank you for your reply.  How to switch slave to master in real time? <br class=""></blockquote><br class="">If you store the data in a file, simply redefine the zone type, change<br class="">"type master;" to<br class="">"type slave;”<br class=""><br class=""></div></div></blockquote><div style="orphans: 2; widows: 2;" class="">However, I have hundreds of thousands of zone files in my master. If I modify these zone files sequentially and  then reload bind, it will spend a lot of time.  <font color="#ffffff" face="Arial, PingFang SC, Hiragino Sans GB, STHeiti, Microsoft YaHei, WenQuanYi Micro Hei, sans-serif" class=""><span style="caret-color: rgb(255, 255, 255); font-size: 14px; background-color: rgb(67, 149, 255);" class=""></span></font></div><br class=""><blockquote type="cite" class=""><div class=""><div class="">If you don't keep slave zones in files, you are out of luck.<br class=""><br class=""><blockquote type="cite" class="">Does bind have command?<br class=""></blockquote><br class="">no.<br class=""><br class=""><blockquote type="cite" class="">Am 22.08.2018 um 12:17 schrieb Zhengyu Pan:<br class="">Because I need to a master as a cold standby.<br class=""></blockquote><br class="">the question apparently was, why do you need it. This is not an answer to<br class="">that question.<br class=""><br class=""></div></div></blockquote><div>  Why I need the second master is that one master may send notify packet unsuccessfully with the increment of slave dns. I need that  one part of slave servers connect the first master, the other part of slave servers connect the second master. So  i need that these two master’s zone are fully consistent.</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><blockquote type="cite" class="">Another master need to<br class="">have the same zone  and configuration with the former.   When a master<br class="">is down, I need to switch to another master right away.<br class=""></blockquote><br class="">slaves can be slaves to multiple servers. Servers can have multiple roles.<br class=""><br class="">ine server can fetch one zone from its master, but be a master to another<br class="">server for the same zone.<br class=""><br class=""></div></div></blockquote><div> How to make a zone is type master for slave dns and the same zone is slave for master in a server. How to configure it in  named.conf?</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class=""><blockquote type="cite" class="">In my application scenario, I have two master. Each master connect<br class="">several slave dns. When users update zone, i update these two master<br class="">respectively in a for loop. However, when any master update fails, i<br class="">will roll bock. you know, whenever any update, zone's serial will<br class="">increase. this cause that the serial numbers of zone in two<br class="">masters are<br class="">inconsistent. How can i keep these two masters' zones consistent<br class="">in real<br class="">time? Is using rsync tool a good way?  In the industry, is there<br class="">a good<br class="">way to synchronize two masters?<br class=""></blockquote><br class="">The one example of this case it the active directory. It supports multiple<br class="">masters, BUT:<br class="">a DNS server should not be DNS slave to multiple AD servers. The AD servers<br class="">contain the data, but serial numbers are unrealiable in this case.<br class=""><br class="">I'm afraid the same would apply for your application.<br class=""><br class=""></div></div></blockquote><div><br class=""></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class="">-- <br class="">Matus UHLAR - fantomas, <a href="mailto:uhlar@fantomas.sk" class="">uhlar@fantomas.sk</a> ; <a href="http://www.fantomas.sk/" class="">http://www.fantomas.sk/</a><br class="">Warning: I wish NOT to receive e-mail advertising to this address.<br class="">Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.<br class="">WinError #98652: Operation completed successfully.<br class="">_______________________________________________<br class="">Please visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" class="">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list<br class=""><br class="">bind-users mailing list<br class=""><a href="mailto:bind-users@lists.isc.org" class="">bind-users@lists.isc.org</a><br class="">https://lists.isc.org/mailman/listinfo/bind-users<br class=""></div></div></blockquote></div><br class=""></body></html>