Hi there, On Wed, 27 Nov 2024, Dimitry Bansikov wrote:
... I need to simplify adding and removing a domain so that it is enough to just add the zone file itself whitout editing the big list. Is this possible?
I'm sure it's possible. If it were my "big list", and I could see no alternative but to maintain it in that form, I would probably script something in Perl which took the information needed and then performed the necessary manipulations to the zone files and the "big list". At the simplest for example if I had a file "z" containing example1.org example2.org example3.org It would be trivial to produce the "big list" file using something like $ cat z | perl -pe 'chomp; $z=$_; $_="zone \"$z\" {type master; file \"/etc/bind/zones/$z.db\";};\n"' zone "example1.org" {type master; file "/etc/bind/zones/example1.org.db";}; zone "example2.org" {type master; file "/etc/bind/zones/example2.org.db";}; zone "example3.org" {type master; file "/etc/bind/zones/example3.org.db";}; $ This would eliminate a lot of the potential for human error which is a risk when editing files by hand. On the other hand, I have no issues editing files of *much* more than a thousand lines using emacs or vim. Is the problem really your text editor? We could probably help you better if you were to be more forthcoming about your configuration and the tools which you use. -- 73, Ged. -- 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@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users