Change records in DNS slave if master is offline

Warren Kumari warren at kumari.net
Thu Dec 16 18:42:58 UTC 2021


On Thu, Dec 16, 2021 at 10:37 AM Roberto Carna <robertocarna36 at gmail.com>
wrote:

> Dear all, I have one BIND9 server as master and 3 as slaves.
>
> The master and one slave are in a given site #1, and the other two
> slaves are in a geographical different site #2.
>
> In case site #1 goes offline, I need to edit records in both slaves
> from site #2, in order to point some services to other public IP's for
> contingency.
>
> My question is:
>
> What is the recommended way to edit the records from a BIND9 slave?
> Because the zone files are binary files


Yup, if you are running (IIRC) > v9.9.x, the default is binary files.
You can convert these beck to text with:
named-compilezone -f raw -F text -o example.com.text example.com
example.com.binary

You can also change the default in named.conf:
options {
// many many options
masterfile-format text;
//
// many other options
//
}

The raw (binary) zone files are good for large zones, but for small zones,
where speed isn't super important, text format works just fine...
W



> and using the Webmin interface
> is blocked.
>
> The only manner is changing the configuration from slave to master?
>
> Thanks in advance, greetings!!!
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to
> unsubscribe from this list
>
> ISC funds the development of this software with paid support
> subscriptions. Contact us at https://www.isc.org/contact/ for more
> information.
>
>
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
>


-- 
The computing scientist’s main challenge is not to get confused by the
complexities of his own making.
  -- E. W. Dijkstra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20211216/6cc72e9b/attachment.htm>


More information about the bind-users mailing list