nix-community / dns.nix

A Nix DSL for DNS zone files [maintainers=@raitobezarius @kirelagin @Tom-Hubrecht]
Mozilla Public License 2.0
128 stars 24 forks source link

Unqualified domain names #33

Open pigam opened 4 months ago

pigam commented 4 months ago

This add a useOrigin option to zone type. It is a boolean, equals to false by default. By default, it changes nothing to the actual result of toString.

If set to true, this change the toString behaviour to add $ORIGIN directive, and use @ as domain name for the zone itself. writeRecord has been patched accordingly if called with @ as zone name.

This should address #17

I had the need for a RPZ zone.