https://github.com/chef-boneyard/windows_dns
Chef cookbook for managing DNS on Windows
https://github.com/chef-boneyard/windows_dns
chef cookbook dns microsoft windows
Last synced: about 1 month ago
JSON representation
Chef cookbook for managing DNS on Windows
- Host: GitHub
- URL: https://github.com/chef-boneyard/windows_dns
- Owner: chef-boneyard
- License: apache-2.0
- Created: 2018-12-17T18:15:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-26T16:43:14.000Z (almost 6 years ago)
- Last Synced: 2025-01-04T22:53:09.452Z (over 1 year ago)
- Topics: chef, cookbook, dns, microsoft, windows
- Language: Ruby
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 12
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# windows_dns Cookbook
[](https://supermarket.chef.io/cookbooks/windows_dns)
[](https://ci.appveyor.com/project/ChefWindowsCookbooks/windows-dns/branch/master)
This cookbook provides a resource for managing DNS on Windows hosts.
DEPRECATED: These resources ship in Chef Infra Client 15 or later out of the box.
## Requirements
### Platforms
- Windows Server 2012R2
- Windows Server 2016
### Chef
- Chef 13
## Resources
## windows_dns_record
Creates a DNS record for the given domain
#### Actions
- :create: creates/updates the DNS entry
- :delete: deletes the DNS entry
#### Properties
- `record_name` : The name of the record to create, eg: calaserver01
- `zone` : The zone to create the record in, eg: dst.calastone.com
- `target` : The target for the record
- `record_type` : The type of record to create, can be either ARecord, CNAME or PTR
#### Examples
```ruby
# Create CNAME record
windows_dns_record 'chefserver' do
record_type 'cname'
zone 'chef.local'
target 'web01.chef.local'
end
```
## windows_dns_zone
Creates an Active Directory Integrated DNS Zone on the local server
#### Actions
- :create: creates/updates the DNS Zone
- :delete: deletes the DNS Zone
#### Properties
- `zone_name` : The name of the zone to create, eg: calastone.com
- `replication_scope` : The replication scope for the zone, defaults to Domain, required for server_type Domain
- `server_type` : The type of DNS server, Domain or Standalone
#### Examples
```ruby
# Create DNS Zone
windows_dns_zone 'chef.local' do
server_type 'standalone'
end
```
## License
```
Copyright 2018, Calastone Ltd.
Copyright 2018, Chef Software, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```