dnsimple / erldns

DNS server, in Erlang.
MIT License
402 stars 98 forks source link

Adding multiple json zone files to the config #96

Closed maxok closed 4 years ago

maxok commented 4 years ago

Hello,

We have installed erldns for testing purposes with around 100 zone json files. Is there any way we can indicate to include all *.zone.json files from priv directory as zones in erldns.config?

Best Regards,

Malkhaz

aeden commented 4 years ago

At the moment, no, only a single file can be loaded at a time. If you are interested in updating the code to support loading of multiple files, then https://github.com/dnsimple/erldns/blob/master/src/erldns_zone_loader.erl would need to be updated to support loading from a directory in addition to loading zones from a single JSON file.