Repository is archived
No commit activity in last 3 years
No release in over 3 years
create zone config from catalog zone file.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.12
~> 10.0

Runtime

>= 1.60.1, ~> 1.60
~> 0
 Project Readme

Dns::CatalogZone

Build Status Coverage Status

PoC of catalog zone (draft-muks-dnsop-dns-catalog-zones) README in Japanese

supported name server softwares

  • NSD4 (default)
  • Knot dns
  • YADIFA

Installation

$ git clone https://github.com/mimuret/dns-catalog_zone
$ cd dns-catalog_zone
$ bundle install --path=vendor/bundle

Usage

  • configuration

make CatalogZone file.

$ bundle exec catz init
$ cat CatalogZone

CatalogZone below

setting("catalog.example.jp") do |s|
	s.software="nsd"
	s.source="file"
	s.zonename="catalog.example.jp"
	s.zonefile="/etc/nsd/catalog.example.jp.zone"
end
  • make name server config

config output to stdout

$ bundle exec catz make

Settings attribute

name value default description
zonename string(domain name) catalog.example catalog zone domain name
software string nsd software module name
source string file source module name
output string stdout output module name

source modules

file module

name value required
source file true
zonefile path true

axfr module

name value default required
source axfr true
server ip or hostname true
port int 53 false
tsig string false
src_address ip false
timeout int 30 false

software modules

nsd module

name value required
software nsd

knot module

name value required
software knot

yadifa module

name value required
software yadifa

output modules

stdout module

name value required
output stdout

file module

name value required
output file
output_path path true

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mimuret/dns-catalog_zone.

OR make Dns::CatalogZone::Provider::(Software) gem

License

The gem is available as open source under the terms of the MIT License.