{"id":20332120,"url":"https://github.com/aspyatkin/nsd-cookbook","last_synced_at":"2026-05-28T13:31:08.264Z","repository":{"id":73687328,"uuid":"110081893","full_name":"aspyatkin/nsd-cookbook","owner":"aspyatkin","description":"Chef cookbook to configure nsd master and slaves","archived":false,"fork":false,"pushed_at":"2021-03-22T09:54:31.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T12:43:22.632Z","etag":null,"topics":["chef-cookbook","nsd"],"latest_commit_sha":null,"homepage":"https://supermarket.chef.io/cookbooks/nsd","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aspyatkin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-09T07:26:16.000Z","updated_at":"2021-03-22T09:54:29.000Z","dependencies_parsed_at":"2023-02-25T10:46:30.399Z","dependency_job_id":null,"html_url":"https://github.com/aspyatkin/nsd-cookbook","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/aspyatkin/nsd-cookbook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspyatkin%2Fnsd-cookbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspyatkin%2Fnsd-cookbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspyatkin%2Fnsd-cookbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspyatkin%2Fnsd-cookbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aspyatkin","download_url":"https://codeload.github.com/aspyatkin/nsd-cookbook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspyatkin%2Fnsd-cookbook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33611248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chef-cookbook","nsd"],"created_at":"2024-11-14T20:25:05.358Z","updated_at":"2026-05-28T13:31:08.246Z","avatar_url":"https://github.com/aspyatkin.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nsd cookbook\n[![Chef cookbook](https://img.shields.io/cookbook/v/nsd.svg?style=flat-square)]()\n[![license](https://img.shields.io/github/license/aspyatkin/nsd-cookbook.svg?style=flat-square)]()  \nA Chef cookbook to install nsd master and slaves along with initial zone configuration.\n\n## Resources\n\nThe examples below configure one master (`ns1.example.com`) and two slave servers (`ns2.example.com` and `ns3.example.com`), all of which host two zones - `example.com` itself and `test.com`. SOA records will contain `hostmaster@example.com` as an email address.\n\n### nsd_master\n\n```ruby\nnsd_master 'ns1.example.com' do\n  port 53\n  ipv4_address '1.1.1.1'\n  ipv6_address '2001:0db8:0a0b:12f0:0000:0000:0000:0001'\n  contact 'hostmaster@example.com'\n  bind_addresses %w(1.1.1.1 2001:0db8:0a0b:12f0:0000:0000:0000:0001)\n  enable_ipv6 true\n  keys({\n    'ns2.example.com' =\u003e '7DzUnLpx9H...',\n    'ns3.example.com' =\u003e '1ADEn1fqOo...'\n  })\n  slaves({\n    'ns2.example.com' =\u003e {\n      'ipv4_address' =\u003e '2.2.2.2',\n      'ipv6_address' =\u003e '2001:0db8:0a0b:12f0:0000:0000:0000:0002'\n    },\n    'ns3.example.com' =\u003e {\n      'ipv4_address' =\u003e '3.3.3.3',\n      'ipv6_address' =\u003e '2001:0db8:0a0b:12f0:0000:0000:0000:0003'\n    }\n  })\n  zones %w(example.com test.com)\n  action :install\nend\n```\n\n### nsd_slave\n\n```ruby\nnsd_slave 'ns2.example.com' do\n  port 53\n  bind_addresses %w(2.2.2.2 2001:0db8:0a0b:12f0:0000:0000:0000:0002)\n  enable_ipv6 true\n  key '7DzUnLpx9H...'\n  zones %w(example.com test.com)\n  master_ipv4_address '1.1.1.1'\n  action :install\nend\n\n```\n\n```ruby\nnsd_slave 'ns3.example.com' do\n  port 53\n  bind_addresses %w(3.3.3.3 2001:0db8:0a0b:12f0:0000:0000:0000:0003)\n  enable_ipv6 true\n  key '1ADEn1fqOo...'\n  zones %w(example.com test.com)\n  master_ipv4_address '1.1.1.1'\n  action :install\nend\n\n```\n\n## AXFR keys\n\nA zone is modified only on a master server. Then the changes are transferred to slave servers. It is presupposed that each slave server has its own secret key. Secret management is up to the user utilizing `nsd_master` and `nsd_slave` resources.\n\nA key may be generated with this command:\n\n```sh\n$ dd if=/dev/random count=1 bs=32 2\u003e /dev/null | base64\n```\n\n## Limitations\nThis cookbook does not set up any firewall rules.\n\n## License\nMIT @ [Alexander Pyatkin](https://github.com/aspyatkin)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faspyatkin%2Fnsd-cookbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faspyatkin%2Fnsd-cookbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faspyatkin%2Fnsd-cookbook/lists"}