Netdot icon indicating copy to clipboard operation
Netdot copied to clipboard

Add zone-list option to exporter.pl (patch)

Open ksyz opened this issue 10 years ago • 1 comments

A request for simple feature. Add an option for exporter.pl so that it will list all available BIND zones. For example, if one wants only export .ninja and .x.xyz domains:

bin/exporter.pl -t BIND -z $(bin/exporter.pl --list-zones | grep -P '(\.ninja|\.x.xyz)$' | cut -d\; -f2 | paste -d, -s -)

or generate bind config file from list, without using netdot API/direct database access.

Same scenario could be applied to DHCP scopes. Therefore command line interface would be consistent with web interface, in a way it provides data to user.

listzones.patch.txt

ksyz avatar Nov 11 '15 14:11 ksyz

Hi,

Sorry for the terribly late reply. Would you mind issuing a pull request?

Thanks

cvicente avatar Jan 06 '17 21:01 cvicente