cookbook 'djbdns', '~> 6.0.0'
djbdns
(39) Versions
6.0.0
-
Follow9
Provides custom resources to install djbdns and configure DNS services
cookbook 'djbdns', '~> 6.0.0', :supermarket
knife supermarket install djbdns
knife supermarket download djbdns
djbdns Cookbook
Installs and configures Dan Bernstein's DNS tinydns, aka djbdns. Services are configured to start up under runit.
Maintainers
This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you’d like to know more please visit sous-chefs.org or come chat with us on the Chef Community Slack in #sous-chefs.
Requirements
Platforms
The following platforms are supported via test kitchen.
- AlmaLinux
- Amazon Linux
- CentOS Stream
- Debian
- Fedora
- Oracle Linux
- Red Hat Enterprise Linux
- Rocky Linux
- Ubuntu
See [LIMITATIONS.md](LIMITATIONS.md) for package and source installation notes.
Chef
- Chef 15.3+
Cookbooks
- runit - for setting up the services.
Migration
This cookbook now exposes custom resources instead of root recipes and node attributes. See [migration.md](migration.md) for the breaking migration guide.
Resources
- [djbdns_install](documentation/djbdns_install.md)
- [djbdns_tinydns](documentation/djbdns_tinydns.md)
- [djbdns_dnscache](documentation/djbdns_dnscache.md)
- [djbdns_axfrdns](documentation/djbdns_axfrdns.md)
- [djbdns_rr](documentation/djbdns_rr.md)
Examples
Authoritative tinydns
djbdns_tinydns 'tinydns' do domain 'example.test' ipaddress '127.0.0.1' action :create end
DNS cache
djbdns_dnscache 'public-dnscache' do ipaddress '192.0.2.10' allowed_networks ['192.0'] action :create end
Internal tinydns from a data bag
Create entries in a data bag named djbdns, and an item named after the domain, with underscores instead of spaces. Example structure of the data bag:
{
"id": "int_example_com",
"ns": [
{ "int.example.com": "192.168.0.5" },
{ "0.168.192.in-addr.arpa": "192.168.0.5" }
],
"alias": [
{ "www.int.example.com": "192.168.0.100" }
],
"host": [
{ "web1.int.example.com": "192.168.0.100" }
]
}
Aliases and hosts should be an array of hashes, each entry containing the fqdn as the key and the IP as the value. In this example 192.168.0.5 is the IP of the nameserver and we're listing it as authoritative for int.example.com and for reverse DNS for 192.168.0.x.
djbdns_tinydns 'tinydns-internal' do internal true data_bag 'djbdns' domain 'int.example.com' action :create end
Contributors
This project exists thanks to all the people who contribute.
Backers
Thank you to all our backers!
Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.
djbdns Cookbook CHANGELOG
This file is used to list changes made in each version of the djbdns cookbook.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
6.0.0 (2026-11-26)
⚠ BREAKING CHANGES
- Use the cookbook custom resources in place of the former recipes and node attributes. See migration.md for upgrade steps.
Features
- migrate djbdns to custom resources (046f7db)
5.1.21 (2026-07-09)
Bug Fixes
5.1.20 (2026-04-21)
Bug Fixes
5.1.19 (2025-10-15)
Bug Fixes
5.1.14 - 2024-02-17
Fix markdown
5.1.10 - 2023-06-08
Standardise files with files in sous-chefs/repo-management
5.1.4 - 2023-02-14
- Remove delivery folder
5.1.3 - 2022-01-18
- resolved cookstyle error: tasks/maintainers.rb:37:7 convention:
Style/FileWrite
5.1.2 - 2021-08-31
- Standardise files with files in sous-chefs/repo-management
5.1.1 (2021-06-01)
- Standardise files with files in sous-chefs/repo-management
5.1.0 (2020-11-13)
Changed
- Sous Chefs Adoption
- Update Changelog to Sous Chefs
- Update to use Sous Chefs GH workflow
- Update test-kitchen to Sous Chefs
- Update README to sous-chefs
- Update metadata.rb to Sous Chefs
Fixed
- Yamllint fixes
- MDL fixes
- Fix integration tests
Added
- Add Ubuntu 20.04 testing
5.0.2 (2019-03-18)
- Add a basic converge unit test - @tas50
- Make sure we have wget for source installs - @tas50
- Update Test Kitchen platforms - @tas50
- Add code owners file - @tas50
- Rename the kitchen config - @tas50
- Remove Ubuntu 14.04 testing for 18.04 - @tas50
- Delete the dangling dependency on ucspi-tcp - @RoboticCheese
- Stop creating the runit service directory - @RoboticCheese
- Resolve FoodCritic offenses - @RoboticCheese
5.0.1 (2017-04-26)
- Test with Local Delivery and not Rake
- Move templates out of the default directory since only Chef < 12 requires this
5.0.0 (2017-02-14)
- Require 12.5 and remove compat_resource dependency
4.1.0 (2017-01-17)
- Require the latest compat_resource
- Switch to Inspec for integration testing
- Remove RHEL 5 testing as it's near EOL
4.0.0 (2016-12-05)
- Prevent compile error with source updating method
- Add ChefSpec matchers
- Convert LWRP to a custom resource and use compat_resource for 12.1+ compatibility
- Make sure IPSEND is set so the cache starts
- Fix Chef 13 compatibility by updating manage_home
3.0.0 (2016-09-15)
- Testing updates and remove FQDN from templates
- Update maintainers wording and format [skip-ci]
- Testing updates
- Require Chef 12.1+
v2.0.0 (2016-05-20)
BREAKING CHANGE
This version removes support for bluepill and daemontools init systems and Arch Linux. If you rely on that support you'll want to pin to the 1.2.0 release
This version now manages all djbdns env files to be compatible with the newest runit release. If you manage these files outside of the djbdns recipe you'll need to use the new attributes
v1.2.0
- Removed newlines in configs to prevent restarts
- Removed inclusion of ucspi-tcp recipe for source installs
- Convert hashes to Ruby 1.9+ format
- Bump Runit dependency to 1.6.0 from 1.5.0
- Updated Test Kitchen config with the latest platforms and a suite for source install
- Added Travis CI config
- Added a simple contributing doc to replace the Chef Software Inc version
- Updated the development gem requirements and break gems into groups in the gemfile
- Added a cookbook version badge in the readme
- Added a chefignore file to limit what files are uploaded to the chef server
- Added additional platforms to the metadata
- Add source_url and issues_url to the metadata
- Make modes strings to preserve the leading 0s
- Resolve rubocop warnings
- Added additional unit tests
v1.1.0
- Update dependency for current runit cookbook, #7
- Debian is a source based platform, #9 (see issue for background)
- Add
package_nameattribute to allow for installing dbndns, #16, related to #9 - Use runit as default service type instead of bluepill, #10
- Drop explicit support for old unsupported Ubuntu versions, #11
- Manage runit's sv dir for "reasons," #12
- Remove attributes from metadata, as they're not used for anything anywhere anyway
v1.0.2
- [COOK-2262] - pin runit dependency
v1.0.0
- [COOK-1739] - use node attributes with hash notation instead of just the attribute name (ipaddress, domain) in djbdns attributes file
- [COOK-1742] - fix foodcritic warnings, use platform_family where apropriate
v0.99.4
- [COOK-1259] - Support local (10.x, 172.x, 192.168.x) reverse lookups in cache
v0.99.2
- [COOK-1042] - Corrected a syntax error in axfr.
- [COOK-740] - use correct directory for tinydns root data
Previous versions
The various recipes now support multiple service types. This is controlled with the node[:djbdns][:service_type] attribute, which is set by platform in the default recipe.
ArchLinux support has been added, as well as naively attempting other platforms by source-compiled installation with bluepill for service management.
Collaborator Number Metric
6.0.0 passed this metric
Contributing File Metric
6.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Cookstyle Metric
6.0.0 passed this metric
No Binaries Metric
6.0.0 passed this metric
Testing File Metric
6.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
6.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
6.0.0 passed this metric
6.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Cookstyle Metric
6.0.0 passed this metric
No Binaries Metric
6.0.0 passed this metric
Testing File Metric
6.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
6.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
6.0.0 passed this metric
6.0.0 passed this metric
Testing File Metric
6.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
6.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
6.0.0 failed this metric
6.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number