Compare commits
6 Commits
origin/mai
...
1ee8ac1e0b
| Author | SHA1 | Date | |
|---|---|---|---|
| 1ee8ac1e0b | |||
|
|
4151c9a8c3 | ||
|
|
6191eaa53a | ||
|
|
5875c7c1d0 | ||
|
|
4c6a3061bd | ||
|
|
ef45f4ef0b |
43
.bind9version
Normal file
43
.bind9version
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
# BIND9 9.18 LTS Support Branch
|
||||||
|
|
||||||
|
Branch: 9.18
|
||||||
|
Purpose: Long-term support for BIND9 9.18.x (ISC LTS release)
|
||||||
|
Status: Active
|
||||||
|
Support Level: Full
|
||||||
|
|
||||||
|
## Version Information
|
||||||
|
|
||||||
|
- **BIND9 Version**: 9.18.x (LTS)
|
||||||
|
- **Supported Until**: Aligned with ISC BIND9 9.18 LTS support timeline
|
||||||
|
- **Branch Base**: BIND9 9.18.44 (as of February 2026)
|
||||||
|
|
||||||
|
## Supported Platforms
|
||||||
|
|
||||||
|
- Debian 11 (Bullseye)
|
||||||
|
- Debian 12 (Bookworm)
|
||||||
|
- Debian 13 (Trixie)
|
||||||
|
- Ubuntu 20.04 LTS
|
||||||
|
- Ubuntu 22.04 LTS
|
||||||
|
- Ubuntu 24.04 LTS
|
||||||
|
|
||||||
|
## Policies
|
||||||
|
|
||||||
|
### Backporting
|
||||||
|
- ✅ Security fixes: Always backported
|
||||||
|
- ✅ Bug fixes: Backported if compatible
|
||||||
|
- ❌ New features: Case-by-case (no breaking changes)
|
||||||
|
- ❌ Breaking changes: Never
|
||||||
|
|
||||||
|
### Release Numbering
|
||||||
|
Uses MAJOR.MINOR.PATCH (e.g., v1.2.3)
|
||||||
|
|
||||||
|
## Key Documentation
|
||||||
|
|
||||||
|
- [Version Support Policy](docs/VERSION_SUPPORT.md)
|
||||||
|
- [Configuration Grammar](CONFIGURATION_GRAMMAR.md)
|
||||||
|
- [Changelog](CHANGELOG.md)
|
||||||
|
- [README](README.md)
|
||||||
|
|
||||||
|
## Next Major Version
|
||||||
|
|
||||||
|
For BIND9 9.20+ support, see the `main` branch which will eventually have version-specific releases.
|
||||||
114
CHANGELOG.md
Normal file
114
CHANGELOG.md
Normal file
@@ -0,0 +1,114 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
All notable changes to the ansible-bind9-role will be documented in this file.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||||
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Version support policy documentation in `docs/VERSION_SUPPORT.md`
|
||||||
|
- Branching strategy for supporting multiple BIND9 versions
|
||||||
|
- Grammar comparison tooling (`scripts/compare_bind_versions.py`)
|
||||||
|
- Grammar fetcher for upstream BIND9 sources (`scripts/fetch_bind_grammar.py`)
|
||||||
|
- Automated version difference tracking
|
||||||
|
- Operating system support matrix
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Established formal release management process
|
||||||
|
- Defined backporting policy for security, bugs, and features
|
||||||
|
|
||||||
|
### Planned
|
||||||
|
- BIND9 9.20+ support in separate `9.20` branch
|
||||||
|
- Multi-platform molecule test matrix
|
||||||
|
- Automated BIND9 version detection in tasks
|
||||||
|
- Version-specific template conditional logic
|
||||||
|
- Enhanced CI/CD pipeline with version matrix testing
|
||||||
|
|
||||||
|
## [1.0.0] - TBD
|
||||||
|
|
||||||
|
### Initial Release
|
||||||
|
- Full support for BIND9 9.18.x (LTS)
|
||||||
|
- Configuration grammar based on BIND9 9.18.44
|
||||||
|
- Comprehensive template system for all BIND9 statement types:
|
||||||
|
- `acl`
|
||||||
|
- `controls`
|
||||||
|
- `dlz`
|
||||||
|
- `dnssec-policy`
|
||||||
|
- `dyndb`
|
||||||
|
- `http`
|
||||||
|
- `key`
|
||||||
|
- `logging`
|
||||||
|
- `options`
|
||||||
|
- `parental-agents`
|
||||||
|
- `primaries` (masters)
|
||||||
|
- `server`
|
||||||
|
- `statistics-channels`
|
||||||
|
- `tls`
|
||||||
|
- `trust-anchors`
|
||||||
|
- `view`
|
||||||
|
- `zone` (all types: primary, secondary, forward, hint, stub, static-stub, mirror, redirect, in-view, delegation-only)
|
||||||
|
- Support for Debian 11, 12, 13
|
||||||
|
- Support for Ubuntu 20.04, 22.04, 24.04
|
||||||
|
- Molecule testing framework
|
||||||
|
- Configuration validation with `named-checkconf`
|
||||||
|
- Automatic configuration backup and rollback on errors
|
||||||
|
- Detailed configuration grammar documentation
|
||||||
|
- GPL-3.0-or-later license
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Version History (Pre-Changelog)
|
||||||
|
|
||||||
|
Prior to this changelog, the role was developed without formal version tracking.
|
||||||
|
This changelog starts with the establishment of the version support policy.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Versioning Schema
|
||||||
|
|
||||||
|
- **MAJOR**: Incompatible changes to role variables or behavior
|
||||||
|
- **MINOR**: New features in a backwards compatible manner
|
||||||
|
- **PATCH**: Backwards compatible bug fixes
|
||||||
|
|
||||||
|
### Branch-Specific Versioning
|
||||||
|
|
||||||
|
- `main` branch: `vX.Y.Z` (BIND9 9.18 LTS)
|
||||||
|
- `9.20` branch: `v9.20.X[-suffix]` (BIND9 9.20+)
|
||||||
|
- Suffixes: `-alpha`, `-beta`, `-rc` for pre-releases
|
||||||
|
|
||||||
|
## Release Types
|
||||||
|
|
||||||
|
### Security Releases
|
||||||
|
Critical security fixes are released as patch versions and backported to all supported branches.
|
||||||
|
|
||||||
|
### Feature Releases
|
||||||
|
New features are added in minor version increments. Breaking changes require major version increments.
|
||||||
|
|
||||||
|
### Bug Fix Releases
|
||||||
|
Bug fixes are released as patch versions when they accumulate or for critical issues.
|
||||||
|
|
||||||
|
## Upgrade Notes
|
||||||
|
|
||||||
|
### From Pre-Versioned to v1.0.0
|
||||||
|
The first official release establishes baseline compatibility. Users of pre-release versions should:
|
||||||
|
1. Review all role variables for any changes
|
||||||
|
2. Test in non-production environment
|
||||||
|
3. Review generated configuration with `named-checkconf`
|
||||||
|
4. Check `docs/VERSION_SUPPORT.md` for supported platforms
|
||||||
|
|
||||||
|
### Future Upgrades
|
||||||
|
Check individual version sections above for specific upgrade notes and breaking changes.
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
See `docs/VERSION_SUPPORT.md` for contribution guidelines and release processes.
|
||||||
|
|
||||||
|
## Links
|
||||||
|
|
||||||
|
- [Version Support Policy](docs/VERSION_SUPPORT.md)
|
||||||
|
- [Configuration Grammar](CONFIGURATION_GRAMMAR.md)
|
||||||
|
- [Issue Tracker](https://git.valid.dk/daniel/ansible-bind9-role/issues)
|
||||||
|
- [Repository](https://git.valid.dk/daniel/ansible-bind9-role)
|
||||||
|
|
||||||
35
README.md
35
README.md
@@ -3,6 +3,19 @@ bind9
|
|||||||
|
|
||||||
A feature-complete ansible role for installing and configuring bind9. The purpose of this role is to fully template out the entire official bind9 configuration file format.
|
A feature-complete ansible role for installing and configuring bind9. The purpose of this role is to fully template out the entire official bind9 configuration file format.
|
||||||
|
|
||||||
|
## Version Compatibility
|
||||||
|
|
||||||
|
| BIND9 Version | Role Branch | Status | Supported Platforms |
|
||||||
|
|---------------|-------------|--------|---------------------|
|
||||||
|
| 9.18.x (LTS) | `main` | ✅ Supported | Debian 11-13, Ubuntu 20.04-24.04 |
|
||||||
|
| 9.20.x+ | `9.20` | 🚧 Planned | Debian 12-13, Ubuntu 22.04-24.04 |
|
||||||
|
|
||||||
|
For detailed version support policy, branching strategy, and migration guidance, see [docs/VERSION_SUPPORT.md](docs/VERSION_SUPPORT.md).
|
||||||
|
|
||||||
|
**Minimum Requirements:**
|
||||||
|
- Ansible: 2.13+
|
||||||
|
- Python: 3.8+
|
||||||
|
|
||||||
What the role does:
|
What the role does:
|
||||||
- Fully configures named.conf
|
- Fully configures named.conf
|
||||||
- Checks that the config is valid
|
- Checks that the config is valid
|
||||||
@@ -195,10 +208,30 @@ Simple sample config of a recursive BIND server that allows your localnetwork to
|
|||||||
allow-recursion:
|
allow-recursion:
|
||||||
- mylan
|
- mylan
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
- **[Configuration Grammar Reference](CONFIGURATION_GRAMMAR.md)**: Comprehensive guide to all BIND9 configuration options
|
||||||
|
- **[Version Support Policy](docs/VERSION_SUPPORT.md)**: Supported versions, branching strategy, and release management
|
||||||
|
- **[Changelog](CHANGELOG.md)**: Version history and upgrade notes
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
Contributions are welcome! Please see [docs/VERSION_SUPPORT.md](docs/VERSION_SUPPORT.md) for:
|
||||||
|
- Branching strategy
|
||||||
|
- Testing requirements
|
||||||
|
- Backporting policies
|
||||||
|
- Release procedures
|
||||||
|
|
||||||
|
## Links
|
||||||
|
|
||||||
|
- **Repository**: https://git.valid.dk/daniel/ansible-bind9-role
|
||||||
|
- **Issues**: https://git.valid.dk/daniel/ansible-bind9-role/issues
|
||||||
|
- **BIND9 Documentation**: https://bind9.readthedocs.io/
|
||||||
|
|
||||||
License
|
License
|
||||||
-------
|
-------
|
||||||
|
|
||||||
BSD
|
GPL-3.0-or-later
|
||||||
|
|
||||||
Author Information
|
Author Information
|
||||||
------------------
|
------------------
|
||||||
|
|||||||
54
bind9-grammar/upstream/README.md
Normal file
54
bind9-grammar/upstream/README.md
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
# BIND9 Grammar Files - Upstream Source
|
||||||
|
|
||||||
|
This directory contains upstream BIND9 grammar files from the official BIND9 mirror for version comparison and validation.
|
||||||
|
|
||||||
|
## Files to Fetch
|
||||||
|
|
||||||
|
When grammar files are needed, fetch from:
|
||||||
|
- **Repository**: https://git.valid.dk/Mirrors/bind9
|
||||||
|
- **9.18 Tag**: v9.18.44
|
||||||
|
- **9.20 Tag**: v9.20.18
|
||||||
|
|
||||||
|
### Required Grammar Files (from doc/misc/)
|
||||||
|
|
||||||
|
- options
|
||||||
|
- forward.zoneopt
|
||||||
|
- hint.zoneopt
|
||||||
|
- in-view.zoneopt
|
||||||
|
- mirror.zoneopt
|
||||||
|
- primary.zoneopt
|
||||||
|
- redirect.zoneopt
|
||||||
|
- secondary.zoneopt
|
||||||
|
- static-stub.zoneopt
|
||||||
|
- stub.zoneopt
|
||||||
|
- delegation-only.zoneopt
|
||||||
|
- rndc.grammar
|
||||||
|
- parsegrammar.py
|
||||||
|
- checkgrammar.py
|
||||||
|
|
||||||
|
## Directory Structure
|
||||||
|
|
||||||
|
```
|
||||||
|
upstream/
|
||||||
|
├── v9.18.44/
|
||||||
|
│ ├── grammar/ (Grammar files)
|
||||||
|
│ └── metadata.json (Fetch metadata)
|
||||||
|
└── v9.20.18/
|
||||||
|
├── grammar/ (Grammar files)
|
||||||
|
└── metadata.json (Fetch metadata)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fetching
|
||||||
|
|
||||||
|
Option 1: Using git fetch
|
||||||
|
```bash
|
||||||
|
git clone --depth 1 --branch v9.18.44 https://git.valid.dk/Mirrors/bind9.git /tmp/bind9-9.18
|
||||||
|
cp /tmp/bind9-9.18/doc/misc/* bind9-grammar/upstream/v9.18.44/grammar/
|
||||||
|
```
|
||||||
|
|
||||||
|
Option 2: Using Gitea MCP tools (see scripts/fetch_bind_grammar.py)
|
||||||
|
|
||||||
|
## Scripts
|
||||||
|
|
||||||
|
- `scripts/fetch_bind_grammar.py` - MCP-based fetcher template
|
||||||
|
- `scripts/compare_bind_versions.py` - Grammar comparison tool
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
type delegation-only;
|
||||||
|
};
|
||||||
6
bind9-grammar/upstream/v9.18.44/grammar/forward.zoneopt
Normal file
6
bind9-grammar/upstream/v9.18.44/grammar/forward.zoneopt
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
type forward;
|
||||||
|
delegation-only <boolean>; // deprecated
|
||||||
|
forward ( first | only );
|
||||||
|
forwarders [ port <integer> ] { ( <ipv4_address> | <ipv6_address> ) [ port <integer> ]; ... };
|
||||||
|
};
|
||||||
6
bind9-grammar/upstream/v9.18.44/grammar/hint.zoneopt
Normal file
6
bind9-grammar/upstream/v9.18.44/grammar/hint.zoneopt
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
type hint;
|
||||||
|
check-names ( fail | warn | ignore );
|
||||||
|
delegation-only <boolean>; // deprecated
|
||||||
|
file <quoted_string>;
|
||||||
|
};
|
||||||
3
bind9-grammar/upstream/v9.18.44/grammar/in-view.zoneopt
Normal file
3
bind9-grammar/upstream/v9.18.44/grammar/in-view.zoneopt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
in-view <string>;
|
||||||
|
};
|
||||||
45
bind9-grammar/upstream/v9.18.44/grammar/mirror.zoneopt
Normal file
45
bind9-grammar/upstream/v9.18.44/grammar/mirror.zoneopt
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
type mirror;
|
||||||
|
allow-notify { <address_match_element>; ... };
|
||||||
|
allow-query { <address_match_element>; ... };
|
||||||
|
allow-query-on { <address_match_element>; ... };
|
||||||
|
allow-transfer [ port <integer> ] [ transport <string> ] { <address_match_element>; ... };
|
||||||
|
allow-update-forwarding { <address_match_element>; ... };
|
||||||
|
also-notify [ port <integer> ] { ( <remote-servers> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
alt-transfer-source ( <ipv4_address> | * ) ; // deprecated
|
||||||
|
alt-transfer-source-v6 ( <ipv6_address> | * ) ; // deprecated
|
||||||
|
check-names ( fail | warn | ignore );
|
||||||
|
database <string>;
|
||||||
|
file <quoted_string>;
|
||||||
|
ixfr-from-differences <boolean>;
|
||||||
|
journal <quoted_string>;
|
||||||
|
masterfile-format ( raw | text );
|
||||||
|
masterfile-style ( full | relative );
|
||||||
|
max-ixfr-ratio ( unlimited | <percentage> );
|
||||||
|
max-journal-size ( default | unlimited | <sizeval> );
|
||||||
|
max-records <integer>;
|
||||||
|
max-records-per-type <integer>;
|
||||||
|
max-refresh-time <integer>;
|
||||||
|
max-retry-time <integer>;
|
||||||
|
max-transfer-idle-in <integer>;
|
||||||
|
max-transfer-idle-out <integer>;
|
||||||
|
max-transfer-time-in <integer>;
|
||||||
|
max-transfer-time-out <integer>;
|
||||||
|
max-types-per-name <integer>;
|
||||||
|
min-refresh-time <integer>;
|
||||||
|
min-retry-time <integer>;
|
||||||
|
multi-master <boolean>;
|
||||||
|
notify ( explicit | master-only | primary-only | <boolean> );
|
||||||
|
notify-delay <integer>;
|
||||||
|
notify-source ( <ipv4_address> | * ) ;
|
||||||
|
notify-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
primaries [ port <integer> ] { ( <remote-servers> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
request-expire <boolean>;
|
||||||
|
request-ixfr <boolean>;
|
||||||
|
transfer-source ( <ipv4_address> | * ) ;
|
||||||
|
transfer-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
try-tcp-refresh <boolean>;
|
||||||
|
use-alt-transfer-source <boolean>; // deprecated
|
||||||
|
zero-no-soa-ttl <boolean>;
|
||||||
|
zone-statistics ( full | terse | none | <boolean> );
|
||||||
|
};
|
||||||
604
bind9-grammar/upstream/v9.18.44/grammar/options
Normal file
604
bind9-grammar/upstream/v9.18.44/grammar/options
Normal file
@@ -0,0 +1,604 @@
|
|||||||
|
acl <string> { <address_match_element>; ... }; // may occur multiple times
|
||||||
|
|
||||||
|
controls {
|
||||||
|
inet ( <ipv4_address> | <ipv6_address> | * ) [ port ( <integer> | * ) ] allow { <address_match_element>; ... } [ keys { <string>; ... } ] [ read-only <boolean> ]; // may occur multiple times
|
||||||
|
unix <quoted_string> perm <integer> owner <integer> group <integer> [ keys { <string>; ... } ] [ read-only <boolean> ]; // may occur multiple times
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
dlz <string> {
|
||||||
|
database <string>;
|
||||||
|
search <boolean>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
dnssec-policy <string> {
|
||||||
|
dnskey-ttl <duration>;
|
||||||
|
keys { ( csk | ksk | zsk ) [ ( key-directory ) ] lifetime <duration_or_unlimited> algorithm <string> [ <integer> ]; ... };
|
||||||
|
max-zone-ttl <duration>;
|
||||||
|
nsec3param [ iterations <integer> ] [ optout <boolean> ] [ salt-length <integer> ];
|
||||||
|
parent-ds-ttl <duration>;
|
||||||
|
parent-propagation-delay <duration>;
|
||||||
|
parent-registration-delay <duration>; // obsolete
|
||||||
|
publish-safety <duration>;
|
||||||
|
purge-keys <duration>;
|
||||||
|
retire-safety <duration>;
|
||||||
|
signatures-jitter <duration>;
|
||||||
|
signatures-refresh <duration>;
|
||||||
|
signatures-validity <duration>;
|
||||||
|
signatures-validity-dnskey <duration>;
|
||||||
|
zone-propagation-delay <duration>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
dyndb <string> <quoted_string> { <unspecified-text> }; // may occur multiple times
|
||||||
|
|
||||||
|
http <string> {
|
||||||
|
endpoints { <quoted_string>; ... };
|
||||||
|
listener-clients <integer>;
|
||||||
|
streams-per-connection <integer>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
key <string> {
|
||||||
|
algorithm <string>;
|
||||||
|
secret <string>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
logging {
|
||||||
|
category <string> { <string>; ... }; // may occur multiple times
|
||||||
|
channel <string> {
|
||||||
|
buffered <boolean>;
|
||||||
|
file <quoted_string> [ versions ( unlimited | <integer> ) ] [ size <size> ] [ suffix ( increment | timestamp ) ];
|
||||||
|
null;
|
||||||
|
print-category <boolean>;
|
||||||
|
print-severity <boolean>;
|
||||||
|
print-time ( iso8601 | iso8601-utc | local | <boolean> );
|
||||||
|
severity <log_severity>;
|
||||||
|
stderr;
|
||||||
|
syslog [ <syslog_facility> ];
|
||||||
|
}; // may occur multiple times
|
||||||
|
};
|
||||||
|
|
||||||
|
managed-keys { <string> ( static-key | initial-key | static-ds | initial-ds ) <integer> <integer> <integer> <quoted_string>; ... }; // may occur multiple times, deprecated
|
||||||
|
|
||||||
|
options {
|
||||||
|
allow-new-zones <boolean>;
|
||||||
|
allow-notify { <address_match_element>; ... };
|
||||||
|
allow-query { <address_match_element>; ... };
|
||||||
|
allow-query-cache { <address_match_element>; ... };
|
||||||
|
allow-query-cache-on { <address_match_element>; ... };
|
||||||
|
allow-query-on { <address_match_element>; ... };
|
||||||
|
allow-recursion { <address_match_element>; ... };
|
||||||
|
allow-recursion-on { <address_match_element>; ... };
|
||||||
|
allow-transfer [ port <integer> ] [ transport <string> ] { <address_match_element>; ... };
|
||||||
|
allow-update { <address_match_element>; ... };
|
||||||
|
allow-update-forwarding { <address_match_element>; ... };
|
||||||
|
also-notify [ port <integer> ] { ( <remote-servers> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
alt-transfer-source ( <ipv4_address> | * ) ; // deprecated
|
||||||
|
alt-transfer-source-v6 ( <ipv6_address> | * ) ; // deprecated
|
||||||
|
answer-cookie <boolean>;
|
||||||
|
attach-cache <string>;
|
||||||
|
auth-nxdomain <boolean>;
|
||||||
|
auto-dnssec ( allow | maintain | off ) ; // deprecated
|
||||||
|
automatic-interface-scan <boolean>;
|
||||||
|
avoid-v4-udp-ports { <portrange>; ... }; // deprecated
|
||||||
|
avoid-v6-udp-ports { <portrange>; ... }; // deprecated
|
||||||
|
bindkeys-file <quoted_string>;
|
||||||
|
blackhole { <address_match_element>; ... };
|
||||||
|
catalog-zones { zone <string> [ default-primaries [ port <integer> ] { ( <remote-servers> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... } ] [ zone-directory <quoted_string> ] [ in-memory <boolean> ] [ min-update-interval <duration> ]; ... };
|
||||||
|
check-dup-records ( fail | warn | ignore );
|
||||||
|
check-integrity <boolean>;
|
||||||
|
check-mx ( fail | warn | ignore );
|
||||||
|
check-mx-cname ( fail | warn | ignore );
|
||||||
|
check-names ( primary | master | secondary | slave | response ) ( fail | warn | ignore ); // may occur multiple times
|
||||||
|
check-sibling <boolean>;
|
||||||
|
check-spf ( warn | ignore );
|
||||||
|
check-srv-cname ( fail | warn | ignore );
|
||||||
|
check-wildcard <boolean>;
|
||||||
|
clients-per-query <integer>;
|
||||||
|
cookie-algorithm ( aes | siphash24 );
|
||||||
|
cookie-secret <string>; // may occur multiple times
|
||||||
|
coresize ( default | unlimited | <sizeval> ); // deprecated
|
||||||
|
datasize ( default | unlimited | <sizeval> ); // deprecated
|
||||||
|
deny-answer-addresses { <address_match_element>; ... } [ except-from { <string>; ... } ];
|
||||||
|
deny-answer-aliases { <string>; ... } [ except-from { <string>; ... } ];
|
||||||
|
dialup ( notify | notify-passive | passive | refresh | <boolean> ); // deprecated
|
||||||
|
directory <quoted_string>;
|
||||||
|
disable-algorithms <string> { <string>; ... }; // may occur multiple times
|
||||||
|
disable-ds-digests <string> { <string>; ... }; // may occur multiple times
|
||||||
|
disable-empty-zone <string>; // may occur multiple times
|
||||||
|
dns64 <netprefix> {
|
||||||
|
break-dnssec <boolean>;
|
||||||
|
clients { <address_match_element>; ... };
|
||||||
|
exclude { <address_match_element>; ... };
|
||||||
|
mapped { <address_match_element>; ... };
|
||||||
|
recursive-only <boolean>;
|
||||||
|
suffix <ipv6_address>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
dns64-contact <string>;
|
||||||
|
dns64-server <string>;
|
||||||
|
dnskey-sig-validity <integer>;
|
||||||
|
dnsrps-enable <boolean>; // not configured
|
||||||
|
dnsrps-options { <unspecified-text> }; // not configured
|
||||||
|
dnssec-accept-expired <boolean>;
|
||||||
|
dnssec-dnskey-kskonly <boolean>;
|
||||||
|
dnssec-loadkeys-interval <integer>;
|
||||||
|
dnssec-must-be-secure <string> <boolean>; // may occur multiple times, deprecated
|
||||||
|
dnssec-policy <string>;
|
||||||
|
dnssec-secure-to-insecure <boolean>;
|
||||||
|
dnssec-update-mode ( maintain | no-resign );
|
||||||
|
dnssec-validation ( yes | no | auto );
|
||||||
|
dnstap { ( all | auth | client | forwarder | resolver | update ) [ ( query | response ) ]; ... }; // not configured
|
||||||
|
dnstap-identity ( <quoted_string> | none | hostname ); // not configured
|
||||||
|
dnstap-output ( file | unix ) <quoted_string> [ size ( unlimited | <size> ) ] [ versions ( unlimited | <integer> ) ] [ suffix ( increment | timestamp ) ]; // not configured
|
||||||
|
dnstap-version ( <quoted_string> | none ); // not configured
|
||||||
|
dscp <integer>; // obsolete
|
||||||
|
dual-stack-servers [ port <integer> ] { ( <quoted_string> [ port <integer> ] | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ); ... };
|
||||||
|
dump-file <quoted_string>;
|
||||||
|
edns-udp-size <integer>;
|
||||||
|
empty-contact <string>;
|
||||||
|
empty-server <string>;
|
||||||
|
empty-zones-enable <boolean>;
|
||||||
|
fetch-quota-params <integer> <fixedpoint> <fixedpoint> <fixedpoint>;
|
||||||
|
fetches-per-server <integer> [ ( drop | fail ) ];
|
||||||
|
fetches-per-zone <integer> [ ( drop | fail ) ];
|
||||||
|
files ( default | unlimited | <sizeval> ); // deprecated
|
||||||
|
flush-zones-on-shutdown <boolean>;
|
||||||
|
forward ( first | only );
|
||||||
|
forwarders [ port <integer> ] { ( <ipv4_address> | <ipv6_address> ) [ port <integer> ]; ... };
|
||||||
|
fstrm-set-buffer-hint <integer>; // not configured
|
||||||
|
fstrm-set-flush-timeout <integer>; // not configured
|
||||||
|
fstrm-set-input-queue-size <integer>; // not configured
|
||||||
|
fstrm-set-output-notify-threshold <integer>; // not configured
|
||||||
|
fstrm-set-output-queue-model ( mpscs | spscs ); // not configured
|
||||||
|
fstrm-set-output-queue-size <integer>; // not configured
|
||||||
|
fstrm-set-reopen-interval <duration>; // not configured
|
||||||
|
geoip-directory ( <quoted_string> | none );
|
||||||
|
glue-cache <boolean>; // deprecated
|
||||||
|
heartbeat-interval <integer>; // deprecated
|
||||||
|
hostname ( <quoted_string> | none );
|
||||||
|
http-listener-clients <integer>;
|
||||||
|
http-port <integer>;
|
||||||
|
http-streams-per-connection <integer>;
|
||||||
|
https-port <integer>;
|
||||||
|
interface-interval <duration>;
|
||||||
|
ipv4only-contact <string>;
|
||||||
|
ipv4only-enable <boolean>;
|
||||||
|
ipv4only-server <string>;
|
||||||
|
ixfr-from-differences ( primary | master | secondary | slave | <boolean> );
|
||||||
|
keep-response-order { <address_match_element>; ... };
|
||||||
|
key-directory <quoted_string>;
|
||||||
|
lame-ttl <duration>;
|
||||||
|
listen-on [ port <integer> ] [ tls <string> ] [ http <string> ] { <address_match_element>; ... }; // may occur multiple times
|
||||||
|
listen-on-v6 [ port <integer> ] [ tls <string> ] [ http <string> ] { <address_match_element>; ... }; // may occur multiple times
|
||||||
|
lmdb-mapsize <sizeval>;
|
||||||
|
lock-file ( <quoted_string> | none );
|
||||||
|
managed-keys-directory <quoted_string>;
|
||||||
|
masterfile-format ( raw | text );
|
||||||
|
masterfile-style ( full | relative );
|
||||||
|
match-mapped-addresses <boolean>;
|
||||||
|
max-cache-size ( default | unlimited | <sizeval> | <percentage> );
|
||||||
|
max-cache-ttl <duration>;
|
||||||
|
max-clients-per-query <integer>;
|
||||||
|
max-ixfr-ratio ( unlimited | <percentage> );
|
||||||
|
max-journal-size ( default | unlimited | <sizeval> );
|
||||||
|
max-ncache-ttl <duration>;
|
||||||
|
max-query-count <integer>;
|
||||||
|
max-query-restarts <integer>;
|
||||||
|
max-records <integer>;
|
||||||
|
max-records-per-type <integer>;
|
||||||
|
max-recursion-depth <integer>;
|
||||||
|
max-recursion-queries <integer>;
|
||||||
|
max-refresh-time <integer>;
|
||||||
|
max-retry-time <integer>;
|
||||||
|
max-rsa-exponent-size <integer>;
|
||||||
|
max-stale-ttl <duration>;
|
||||||
|
max-transfer-idle-in <integer>;
|
||||||
|
max-transfer-idle-out <integer>;
|
||||||
|
max-transfer-time-in <integer>;
|
||||||
|
max-transfer-time-out <integer>;
|
||||||
|
max-types-per-name <integer>;
|
||||||
|
max-udp-size <integer>;
|
||||||
|
maxz-zone-ttl ( unlimited | <duration> );
|
||||||
|
memstatistics <boolean>;
|
||||||
|
memstatistics-file <quoted_string>;
|
||||||
|
message-compression <boolean>;
|
||||||
|
min-cache-ttl <duration>;
|
||||||
|
min-ncache-ttl <duration>;
|
||||||
|
min-refresh-time <integer>;
|
||||||
|
min-retry-time <integer>;
|
||||||
|
minimal-any <boolean>;
|
||||||
|
minimal-responses ( no-auth | no-auth-recursive | <boolean> );
|
||||||
|
multi-master <boolean>;
|
||||||
|
new-zones-directory <quoted_string>;
|
||||||
|
no-case-compress { <address_match_element>; ... };
|
||||||
|
nocookie-udp-size <integer>;
|
||||||
|
notify ( explicit | master-only | primary-only | <boolean> );
|
||||||
|
notify-delay <integer>;
|
||||||
|
notify-rate <integer>;
|
||||||
|
notify-source ( <ipv4_address> | * ) ;
|
||||||
|
notify-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
notify-to-soa <boolean>;
|
||||||
|
nsec3-test-zone <boolean>; // test only
|
||||||
|
nta-lifetime <duration>;
|
||||||
|
nta-recheck <duration>;
|
||||||
|
nxdomain-redirect <string>;
|
||||||
|
parental-source ( <ipv4_address> | * ) ;
|
||||||
|
parental-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
pid-file ( <quoted_string> | none );
|
||||||
|
port <integer>;
|
||||||
|
preferred-glue <string>;
|
||||||
|
prefetch <integer> [ <integer> ];
|
||||||
|
provide-ixfr <boolean>;
|
||||||
|
qname-minimization ( strict | relaxed | disabled | off );
|
||||||
|
query-source [ address ] ( <ipv4_address> | * );
|
||||||
|
query-source-v6 [ address ] ( <ipv6_address> | * );
|
||||||
|
querylog <boolean>;
|
||||||
|
random-device ( <quoted_string> | none ); // obsolete
|
||||||
|
rate-limit {
|
||||||
|
all-per-second <integer>;
|
||||||
|
errors-per-second <integer>;
|
||||||
|
exempt-clients { <address_match_element>; ... };
|
||||||
|
ipv4-prefix-length <integer>;
|
||||||
|
ipv6-prefix-length <integer>;
|
||||||
|
log-only <boolean>;
|
||||||
|
max-table-size <integer>;
|
||||||
|
min-table-size <integer>;
|
||||||
|
nodata-per-second <integer>;
|
||||||
|
nxdomains-per-second <integer>;
|
||||||
|
qps-scale <integer>;
|
||||||
|
referrals-per-second <integer>;
|
||||||
|
responses-per-second <integer>;
|
||||||
|
slip <integer>;
|
||||||
|
window <integer>;
|
||||||
|
};
|
||||||
|
recurse-ing-file <quoted_string>;
|
||||||
|
recursion <boolean>;
|
||||||
|
recursive-clients <integer>;
|
||||||
|
request-expire <boolean>;
|
||||||
|
request-ixfr <boolean>;
|
||||||
|
request-nsid <boolean>;
|
||||||
|
require-server-cookie <boolean>;
|
||||||
|
reserved-sockets <integer>; // deprecated
|
||||||
|
resolver-nonbackoff-tries <integer>; // deprecated
|
||||||
|
resolver-query-timeout <integer>;
|
||||||
|
resolver-retry-interval <integer>; // deprecated
|
||||||
|
response-padding { <address_match_element>; ... } block-size <integer>;
|
||||||
|
response-policy { zone <string> [ add-soa <boolean> ] [ log <boolean> ] [ max-policy-ttl <duration> ] [ min-update-interval <duration> ] [ policy ( cname | disabled | drop | given | no-op | nodata | nxdomain | passthru | tcp-only <quoted_string> ) ] [ recursive-only <boolean> ] [ nsip-enable <boolean> ] [ nsdname-enable <boolean> ]; ... } [ add-soa <boolean> ] [ break-dnssec <boolean> ] [ max-policy-ttl <duration> ] [ min-update-interval <duration> ] [ min-ns-dots <integer> ] [ nsip-wait-recurse <boolean> ] [ nsdname-wait-recurse <boolean> ] [ qname-wait-recurse <boolean> ] [ recursive-only <boolean> ] [ nsip-enable <boolean> ] [ nsdname-enable <boolean> ] [ dnsrps-enable <boolean> ] [ dnsrps-options { <unspecified-text> } ];
|
||||||
|
reuse port <boolean>;
|
||||||
|
root-delegation-only [ exclude { <string>; ... } ]; // deprecated
|
||||||
|
root-key-sentinel <boolean>;
|
||||||
|
rrset-order { [ class <string> ] [ type <string> ] [ name <quoted_string> ] <string> <string>; ... };
|
||||||
|
secroots-file <quoted_string>;
|
||||||
|
send-cookie <boolean>;
|
||||||
|
serial-query-rate <integer>;
|
||||||
|
serial-update-method ( date | increment | unixtime );
|
||||||
|
server-id ( <quoted_string> | none | hostname );
|
||||||
|
servfail-ttl <duration>;
|
||||||
|
session-keyalg <string>;
|
||||||
|
session-keyfile ( <quoted_string> | none );
|
||||||
|
session-keyname <string>;
|
||||||
|
sig-signing-nodes <integer>;
|
||||||
|
sig-signing-signatures <integer>;
|
||||||
|
sig-signing-type <integer>;
|
||||||
|
sig-validity-interval <integer> [ <integer> ];
|
||||||
|
sortlist { <address_match_element>; ... };
|
||||||
|
stacksize ( default | unlimited | <sizeval> ); // deprecated
|
||||||
|
stale-answer-client-timeout ( disabled | off | <integer> );
|
||||||
|
stale-answer-enable <boolean>;
|
||||||
|
stale-answer-ttl <duration>;
|
||||||
|
stale-cache-enable <boolean>;
|
||||||
|
stale-refresh-time <duration>;
|
||||||
|
startup-notify-rate <integer>;
|
||||||
|
statistics-file <quoted_string>;
|
||||||
|
suppress-initial-notify <boolean>; // obsolete
|
||||||
|
synth-from-dnssec <boolean>;
|
||||||
|
tcp-advertised-timeout <integer>;
|
||||||
|
tcp-clients <integer>;
|
||||||
|
tcp-idle-timeout <integer>;
|
||||||
|
tcp-initial-timeout <integer>;
|
||||||
|
tcp-keepalive-timeout <integer>;
|
||||||
|
tcp-listen-queue <integer>;
|
||||||
|
tcp-receive-buffer <integer>;
|
||||||
|
tcp-send-buffer <integer>;
|
||||||
|
tkey-dhkey <quoted_string> <integer>; // deprecated
|
||||||
|
tkey-domain <quoted_string>; // deprecated
|
||||||
|
tkey-gssapi-credential <quoted_string>; // deprecated
|
||||||
|
tkey-gssapi-keytab <quoted_string>;
|
||||||
|
tls-port <integer>;
|
||||||
|
transfer-format ( many-answers | one-answer );
|
||||||
|
transfer-message-size <integer>;
|
||||||
|
transfer-source ( <ipv4_address> | * ) ;
|
||||||
|
transfer-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
transfers-in <integer>;
|
||||||
|
transfers-out <integer>;
|
||||||
|
transfers-per-ns <integer>;
|
||||||
|
trust-anchor-telemetry <boolean>;
|
||||||
|
try-tcp-refresh <boolean>;
|
||||||
|
udp-receive-buffer <integer>;
|
||||||
|
udp-send-buffer <integer>;
|
||||||
|
update-check-ksk <boolean>;
|
||||||
|
update-quota <integer>;
|
||||||
|
use-alt-transfer-source <boolean>; // deprecated
|
||||||
|
use-v4-udp-ports { <portrange>; ... }; // deprecated
|
||||||
|
use-v6-udp-ports { <portrange>; ... }; // deprecated
|
||||||
|
v6-bias <integer>;
|
||||||
|
validate-except { <string>; ... };
|
||||||
|
version ( <quoted_string> | none );
|
||||||
|
zero-no-soa-ttl <boolean>;
|
||||||
|
zero-no-soa-ttl-cache <boolean>;
|
||||||
|
zone-statistics ( full | terse | none | <boolean> );
|
||||||
|
};
|
||||||
|
|
||||||
|
parental-agents <string> [ port <integer> ] { ( <remote-servers> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... }; // may occur multiple times
|
||||||
|
|
||||||
|
plugin ( query ) <string> [ { <unspecified-text> } ]; // may occur multiple times
|
||||||
|
|
||||||
|
primaries <string> [ port <integer> ] { ( <remote-servers> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... }; // may occur multiple times
|
||||||
|
|
||||||
|
server <netprefix> {
|
||||||
|
bogus <boolean>;
|
||||||
|
edns <boolean>;
|
||||||
|
edns-udp-size <integer>;
|
||||||
|
edns-version <integer>;
|
||||||
|
keys <server_key>;
|
||||||
|
max-udp-size <integer>;
|
||||||
|
notify-source ( <ipv4_address> | * ) ;
|
||||||
|
notify-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
padding <integer>;
|
||||||
|
provide-ixfr <boolean>;
|
||||||
|
query-source [ address ] ( <ipv4_address> | * );
|
||||||
|
query-source-v6 [ address ] ( <ipv6_address> | * );
|
||||||
|
request-expire <boolean>;
|
||||||
|
request-ixfr <boolean>;
|
||||||
|
request-nsid <boolean>;
|
||||||
|
send-cookie <boolean>;
|
||||||
|
tcp-keepalive <boolean>;
|
||||||
|
tcp-only <boolean>;
|
||||||
|
transfer-format ( many-answers | one-answer );
|
||||||
|
transfer-source ( <ipv4_address> | * ) ;
|
||||||
|
transfer-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
transfers <integer>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
statistics-channels {
|
||||||
|
inet ( <ipv4_address> | <ipv6_address> | * ) [ port ( <integer> | * ) ] [ allow { <address_match_element>; ... } ]; // may occur multiple times
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
tls <string> {
|
||||||
|
ca-file <quoted_string>;
|
||||||
|
cert-file <quoted_string>;
|
||||||
|
ciphers <string>;
|
||||||
|
dhparam-file <quoted_string>;
|
||||||
|
key-file <quoted_string>;
|
||||||
|
prefer-server-ciphers <boolean>;
|
||||||
|
protocols { <string>; ... };
|
||||||
|
remote-hostname <quoted_string>;
|
||||||
|
session-tickets <boolean>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
trust-anchors { <string> ( static-key | initial-key | static-ds | initial-ds ) <integer> <integer> <integer> <quoted_string>; ... }; // may occur multiple times
|
||||||
|
|
||||||
|
trusted-keys { <string> <integer> <integer> <integer> <quoted_string>; ... }; // may occur multiple times, deprecated
|
||||||
|
|
||||||
|
view <string> [ <class> ] {
|
||||||
|
allow-new-zones <boolean>;
|
||||||
|
allow-notify { <address_match_element>; ... };
|
||||||
|
allow-query { <address_match_element>; ... };
|
||||||
|
allow-query-cache { <address_match_element>; ... };
|
||||||
|
allow-query-cache-on { <address_match_element>; ... };
|
||||||
|
allow-query-on { <address_match_element>; ... };
|
||||||
|
allow-recursion { <address_match_element>; ... };
|
||||||
|
allow-recursion-on { <address_match_element>; ... };
|
||||||
|
allow-transfer [ port <integer> ] [ transport <string> ] { <address_match_element>; ... };
|
||||||
|
allow-update { <address_match_element>; ... };
|
||||||
|
allow-update-forwarding { <address_match_element>; ... };
|
||||||
|
also-notify [ port <integer> ] { ( <remote-servers> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
alt-transfer-source ( <ipv4_address> | * ) ; // deprecated
|
||||||
|
alt-transfer-source-v6 ( <ipv6_address> | * ) ; // deprecated
|
||||||
|
attach-cache <string>;
|
||||||
|
auth-nxdomain <boolean>;
|
||||||
|
auto-dnssec ( allow | maintain | off ) ; // deprecated
|
||||||
|
catalog-zones { zone <string> [ default-primaries [ port <integer> ] { ( <remote-servers> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... } ] [ zone-directory <quoted_string> ] [ in-memory <boolean> ] [ min-update-interval <duration> ]; ... };
|
||||||
|
check-dup-records ( fail | warn | ignore );
|
||||||
|
check-integrity <boolean>;
|
||||||
|
check-mx ( fail | warn | ignore );
|
||||||
|
check-mx-cname ( fail | warn | ignore );
|
||||||
|
check-names ( primary | master | secondary | slave | response ) ( fail | warn | ignore ); // may occur multiple times
|
||||||
|
check-sibling <boolean>;
|
||||||
|
check-spf ( warn | ignore );
|
||||||
|
check-srv-cname ( fail | warn | ignore );
|
||||||
|
check-wildcard <boolean>;
|
||||||
|
clients-per-query <integer>;
|
||||||
|
deny-answer-addresses { <address_match_element>; ... } [ except-from { <string>; ... } ];
|
||||||
|
deny-answer-aliases { <string>; ... } [ except-from { <string>; ... } ];
|
||||||
|
dialup ( notify | notify-passive | passive | refresh | <boolean> ); // deprecated
|
||||||
|
disable-algorithms <string> { <string>; ... }; // may occur multiple times
|
||||||
|
disable-ds-digests <string> { <string>; ... }; // may occur multiple times
|
||||||
|
disable-empty-zone <string>; // may occur multiple times
|
||||||
|
dlz <string> {
|
||||||
|
database <string>;
|
||||||
|
search <boolean>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
dns64 <netprefix> {
|
||||||
|
break-dnssec <boolean>;
|
||||||
|
clients { <address_match_element>; ... };
|
||||||
|
exclude { <address_match_element>; ... };
|
||||||
|
mapped { <address_match_element>; ... };
|
||||||
|
recursive-only <boolean>;
|
||||||
|
suffix <ipv6_address>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
dns64-contact <string>;
|
||||||
|
dns64-server <string>;
|
||||||
|
dnskey-sig-validity <integer>;
|
||||||
|
dnsrps-enable <boolean>; // not configured
|
||||||
|
dnsrps-options { <unspecified-text> }; // not configured
|
||||||
|
dnssec-accept-expired <boolean>;
|
||||||
|
dnssec-dnskey-kskonly <boolean>;
|
||||||
|
dnssec-loadkeys-interval <integer>;
|
||||||
|
dnssec-must-be-secure <string> <boolean>; // may occur multiple times, deprecated
|
||||||
|
dnssec-policy <string>;
|
||||||
|
dnssec-secure-to-insecure <boolean>;
|
||||||
|
dnssec-update-mode ( maintain | no-resign );
|
||||||
|
dnssec-validation ( yes | no | auto );
|
||||||
|
dnstap { ( all | auth | client | forwarder | resolver | update ) [ ( query | response ) ]; ... }; // not configured
|
||||||
|
dual-stack-servers [ port <integer> ] { ( <quoted_string> [ port <integer> ] | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ); ... };
|
||||||
|
dyndb <string> <quoted_string> { <unspecified-text> }; // may occur multiple times
|
||||||
|
edns-udp-size <integer>;
|
||||||
|
empty-contact <string>;
|
||||||
|
empty-server <string>;
|
||||||
|
empty-zones-enable <boolean>;
|
||||||
|
fetch-quota-params <integer> <fixedpoint> <fixedpoint> <fixedpoint>;
|
||||||
|
fetches-per-server <integer> [ ( drop | fail ) ];
|
||||||
|
fetches-per-zone <integer> [ ( drop | fail ) ];
|
||||||
|
forward ( first | only );
|
||||||
|
forwarders [ port <integer> ] { ( <ipv4_address> | <ipv6_address> ) [ port <integer> ]; ... };
|
||||||
|
glue-cache <boolean>; // deprecated
|
||||||
|
ipv4only-contact <string>;
|
||||||
|
ipv4only-enable <boolean>;
|
||||||
|
ipv4only-server <string>;
|
||||||
|
ixfr-from-differences ( primary | master | secondary | slave | <boolean> );
|
||||||
|
key <string> {
|
||||||
|
algorithm <string>;
|
||||||
|
secret <string>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
key-directory <quoted_string>;
|
||||||
|
lame-ttl <duration>;
|
||||||
|
lmdb-mapsize <sizeval>;
|
||||||
|
masterfile-format ( raw | text );
|
||||||
|
masterfile-style ( full | relative );
|
||||||
|
match-clients { <address_match_element>; ... };
|
||||||
|
match-destinations { <address_match_element>; ... };
|
||||||
|
match-recursive-only <boolean>;
|
||||||
|
max-cache-size ( default | unlimited | <sizeval> | <percentage> );
|
||||||
|
max-cache-ttl <duration>;
|
||||||
|
max-clients-per-query <integer>;
|
||||||
|
max-ixfr-ratio ( unlimited | <percentage> );
|
||||||
|
max-journal-size ( default | unlimited | <sizeval> );
|
||||||
|
max-ncache-ttl <duration>;
|
||||||
|
max-query-count <integer>;
|
||||||
|
max-query-restarts <integer>;
|
||||||
|
max-records <integer>;
|
||||||
|
max-records-per-type <integer>;
|
||||||
|
max-recursion-depth <integer>;
|
||||||
|
max-recursion-queries <integer>;
|
||||||
|
max-refresh-time <integer>;
|
||||||
|
max-retry-time <integer>;
|
||||||
|
max-stale-ttl <duration>;
|
||||||
|
max-transfer-idle-in <integer>;
|
||||||
|
max-transfer-idle-out <integer>;
|
||||||
|
max-transfer-time-in <integer>;
|
||||||
|
max-transfer-time-out <integer>;
|
||||||
|
max-types-per-name <integer>;
|
||||||
|
max-udp-size <integer>;
|
||||||
|
maxz-zone-ttl ( unlimited | <duration> );
|
||||||
|
message-compression <boolean>;
|
||||||
|
min-cache-ttl <duration>;
|
||||||
|
min-ncache-ttl <duration>;
|
||||||
|
min-refresh-time <integer>;
|
||||||
|
min-retry-time <integer>;
|
||||||
|
minimal-any <boolean>;
|
||||||
|
minimal-responses ( no-auth | no-auth-recursive | <boolean> );
|
||||||
|
multi-master <boolean>;
|
||||||
|
new-zones-directory <quoted_string>;
|
||||||
|
no-case-compress { <address_match_element>; ... };
|
||||||
|
nocookie-udp-size <integer>;
|
||||||
|
notify ( explicit | master-only | primary-only | <boolean> );
|
||||||
|
notify-delay <integer>;
|
||||||
|
notify-source ( <ipv4_address> | * ) ;
|
||||||
|
notify-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
notify-to-soa <boolean>;
|
||||||
|
nsec3-test-zone <boolean>; // test only
|
||||||
|
nta-lifetime <duration>;
|
||||||
|
nta-recheck <duration>;
|
||||||
|
nxdomain-redirect <string>;
|
||||||
|
parental-source ( <ipv4_address> | * ) ;
|
||||||
|
parental-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
plugin ( query ) <string> [ { <unspecified-text> } ]; // may occur multiple times
|
||||||
|
preferred-glue <string>;
|
||||||
|
prefetch <integer> [ <integer> ];
|
||||||
|
provide-ixfr <boolean>;
|
||||||
|
qname-minimization ( strict | relaxed | disabled | off );
|
||||||
|
query-source [ address ] ( <ipv4_address> | * );
|
||||||
|
query-source-v6 [ address ] ( <ipv6_address> | * );
|
||||||
|
rate-limit {
|
||||||
|
all-per-second <integer>;
|
||||||
|
errors-per-second <integer>;
|
||||||
|
exempt-clients { <address_match_element>; ... };
|
||||||
|
ipv4-prefix-length <integer>;
|
||||||
|
ipv6-prefix-length <integer>;
|
||||||
|
log-only <boolean>;
|
||||||
|
max-table-size <integer>;
|
||||||
|
min-table-size <integer>;
|
||||||
|
nodata-per-second <integer>;
|
||||||
|
nxdomains-per-second <integer>;
|
||||||
|
qps-scale <integer>;
|
||||||
|
referrals-per-second <integer>;
|
||||||
|
responses-per-second <integer>;
|
||||||
|
slip <integer>;
|
||||||
|
window <integer>;
|
||||||
|
};
|
||||||
|
recursion <boolean>;
|
||||||
|
request-expire <boolean>;
|
||||||
|
request-ixfr <boolean>;
|
||||||
|
request-nsid <boolean>;
|
||||||
|
require-server-cookie <boolean>;
|
||||||
|
resolver-nonbackoff-tries <integer>; // deprecated
|
||||||
|
resolver-query-timeout <integer>;
|
||||||
|
resolver-retry-interval <integer>; // deprecated
|
||||||
|
response-padding { <address_match_element>; ... } block-size <integer>;
|
||||||
|
response-policy { zone <string> [ add-soa <boolean> ] [ log <boolean> ] [ max-policy-ttl <duration> ] [ min-update-interval <duration> ] [ policy ( cname | disabled | drop | given | no-op | nodata | nxdomain | passthru | tcp-only <quoted_string> ) ] [ recursive-only <boolean> ] [ nsip-enable <boolean> ] [ nsdname-enable <boolean> ]; ... } [ add-soa <boolean> ] [ break-dnssec <boolean> ] [ max-policy-ttl <duration> ] [ min-update-interval <duration> ] [ min-ns-dots <integer> ] [ nsip-wait-recurse <boolean> ] [ nsdname-wait-recurse <boolean> ] [ qname-wait-recurse <boolean> ] [ recursive-only <boolean> ] [ nsip-enable <boolean> ] [ nsdname-enable <boolean> ] [ dnsrps-enable <boolean> ] [ dnsrps-options { <unspecified-text> } ];
|
||||||
|
root-delegation-only [ exclude { <string>; ... } ]; // deprecated
|
||||||
|
root-key-sentinel <boolean>;
|
||||||
|
rrset-order { [ class <string> ] [ type <string> ] [ name <quoted_string> ] <string> <string>; ... };
|
||||||
|
send-cookie <boolean>;
|
||||||
|
serial-update-method ( date | increment | unixtime );
|
||||||
|
server <netprefix> {
|
||||||
|
bogus <boolean>;
|
||||||
|
edns <boolean>;
|
||||||
|
edns-udp-size <integer>;
|
||||||
|
edns-version <integer>;
|
||||||
|
keys <server_key>;
|
||||||
|
max-udp-size <integer>;
|
||||||
|
notify-source ( <ipv4_address> | * ) ;
|
||||||
|
notify-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
padding <integer>;
|
||||||
|
provide-ixfr <boolean>;
|
||||||
|
query-source [ address ] ( <ipv4_address> | * );
|
||||||
|
query-source-v6 [ address ] ( <ipv6_address> | * );
|
||||||
|
request-expire <boolean>;
|
||||||
|
request-ixfr <boolean>;
|
||||||
|
request-nsid <boolean>;
|
||||||
|
send-cookie <boolean>;
|
||||||
|
tcp-keepalive <boolean>;
|
||||||
|
tcp-only <boolean>;
|
||||||
|
transfer-format ( many-answers | one-answer );
|
||||||
|
transfer-source ( <ipv4_address> | * ) ;
|
||||||
|
transfer-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
transfers <integer>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
servfail-ttl <duration>;
|
||||||
|
sig-signing-nodes <integer>;
|
||||||
|
sig-signing-signatures <integer>;
|
||||||
|
sig-signing-type <integer>;
|
||||||
|
sig-validity-interval <integer> [ <integer> ];
|
||||||
|
sortlist { <address_match_element>; ... };
|
||||||
|
stale-answer-client-timeout ( disabled | off | <integer> );
|
||||||
|
stale-answer-enable <boolean>;
|
||||||
|
stale-answer-ttl <duration>;
|
||||||
|
stale-cache-enable <boolean>;
|
||||||
|
stale-refresh-time <duration>;
|
||||||
|
suppress-initial-notify <boolean>; // obsolete
|
||||||
|
synth-from-dnssec <boolean>;
|
||||||
|
transfer-format ( many-answers | one-answer );
|
||||||
|
transfer-source ( <ipv4_address> | * ) ;
|
||||||
|
transfer-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
trust-anchor-telemetry <boolean>;
|
||||||
|
trust-anchors { <string> ( static-key | initial-key | static-ds | initial-ds ) <integer> <integer> <integer> <quoted_string>; ... }; // may occur multiple times
|
||||||
|
trusted-keys { <string> <integer> <integer> <integer> <quoted_string>; ... }; // may occur multiple times, deprecated
|
||||||
|
try-tcp-refresh <boolean>;
|
||||||
|
update-check-ksk <boolean>;
|
||||||
|
use-alt-transfer-source <boolean>; // deprecated
|
||||||
|
v6-bias <integer>;
|
||||||
|
validate-except { <string>; ... };
|
||||||
|
zero-no-soa-ttl <boolean>;
|
||||||
|
zero-no-soa-ttl-cache <boolean>;
|
||||||
|
zone-statistics ( full | terse | none | <boolean> );
|
||||||
|
}; // may occur multiple times
|
||||||
64
bind9-grammar/upstream/v9.18.44/grammar/primary.zoneopt
Normal file
64
bind9-grammar/upstream/v9.18.44/grammar/primary.zoneopt
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
type primary;
|
||||||
|
allow-query { <address_match_element>; ... };
|
||||||
|
allow-query-on { <address_match_element>; ... };
|
||||||
|
allow-transfer [ port <integer> ] [ transport <string> ] { <address_match_element>; ... };
|
||||||
|
allow-update { <address_match_element>; ... };
|
||||||
|
also-notify [ port <integer> ] { ( <remote-servers> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
alt-transfer-source ( <ipv4_address> | * ) ; // deprecated
|
||||||
|
alt-transfer-source-v6 ( <ipv6_address> | * ) ; // deprecated
|
||||||
|
auto-dnssec ( allow | maintain | off ) ; // deprecated
|
||||||
|
check-dup-records ( fail | warn | ignore );
|
||||||
|
check-integrity <boolean>;
|
||||||
|
check-mx ( fail | warn | ignore );
|
||||||
|
check-mx-cname ( fail | warn | ignore );
|
||||||
|
check-names ( fail | warn | ignore );
|
||||||
|
check-sibling <boolean>;
|
||||||
|
check-spf ( warn | ignore );
|
||||||
|
check-srv-cname ( fail | warn | ignore );
|
||||||
|
check-wildcard <boolean>;
|
||||||
|
database <string>;
|
||||||
|
dialup ( notify | notify-passive | passive | refresh | <boolean> ); // deprecated
|
||||||
|
dlz <string>;
|
||||||
|
dnskey-sig-validity <integer>;
|
||||||
|
dnssec-dnskey-kskonly <boolean>;
|
||||||
|
dnssec-loadkeys-interval <integer>;
|
||||||
|
dnssec-policy <string>;
|
||||||
|
dnssec-secure-to-insecure <boolean>;
|
||||||
|
dnssec-update-mode ( maintain | no-resign );
|
||||||
|
file <quoted_string>;
|
||||||
|
forward ( first | only );
|
||||||
|
forwarders [ port <integer> ] { ( <ipv4_address> | <ipv6_address> ) [ port <integer> ]; ... };
|
||||||
|
inline-signing <boolean>;
|
||||||
|
ixfr-from-differences <boolean>;
|
||||||
|
journal <quoted_string>;
|
||||||
|
key-directory <quoted_string>;
|
||||||
|
masterfile-format ( raw | text );
|
||||||
|
masterfile-style ( full | relative );
|
||||||
|
max-ixfr-ratio ( unlimited | <percentage> );
|
||||||
|
max-journal-size ( default | unlimited | <sizeval> );
|
||||||
|
max-records <integer>;
|
||||||
|
max-records-per-type <integer>;
|
||||||
|
max-transfer-idle-out <integer>;
|
||||||
|
max-transfer-time-out <integer>;
|
||||||
|
max-types-per-name <integer>;
|
||||||
|
max-zone-ttl ( unlimited | <duration> );
|
||||||
|
notify ( explicit | master-only | primary-only | <boolean> );
|
||||||
|
notify-delay <integer>;
|
||||||
|
notify-source ( <ipv4_address> | * ) ;
|
||||||
|
notify-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
notify-to-soa <boolean>;
|
||||||
|
nsec3-test-zone <boolean>; // test only
|
||||||
|
parental-agents [ port <integer> ] { ( <remote-servers> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
parental-source ( <ipv4_address> | * ) ;
|
||||||
|
parental-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
serial-update-method ( date | increment | unixtime );
|
||||||
|
sig-signing-nodes <integer>;
|
||||||
|
sig-signing-signatures <integer>;
|
||||||
|
sig-signing-type <integer>;
|
||||||
|
sig-validity-interval <integer> [ <integer> ];
|
||||||
|
update-check-ksk <boolean>;
|
||||||
|
update-policy ( local | { ( deny | grant ) <string> ( 6to4-self | external | krb5-self | krb5-selfsub | krb5-subdomain | krb5-subdomain-self-rhs | ms-self | ms-selfsub | ms-subdomain | ms-subdomain-self-rhs | name | self | selfsub | selfwild | subdomain | tcp-self | wildcard | zonesubject ) [ <string> ] <rrtype list>; ... } );
|
||||||
|
zero-no-soa-ttl <boolean>;
|
||||||
|
zone-statistics ( full | terse | none | <boolean> );
|
||||||
|
};
|
||||||
15
bind9-grammar/upstream/v9.18.44/grammar/redirect.zoneopt
Normal file
15
bind9-grammar/upstream/v9.18.44/grammar/redirect.zoneopt
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
type redirect;
|
||||||
|
allow-query { <address_match_element>; ... };
|
||||||
|
allow-query-on { <address_match_element>; ... };
|
||||||
|
dlz <string>;
|
||||||
|
file <quoted_string>;
|
||||||
|
masterfile-format ( raw | text );
|
||||||
|
masterfile-style ( full | relative );
|
||||||
|
max-records <integer>;
|
||||||
|
max-records-per-type <integer>;
|
||||||
|
max-types-per-name <integer>;
|
||||||
|
max-zone-ttl ( unlimited | <duration> );
|
||||||
|
primaries [ port <integer> ] { ( <remote-servers> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
zone-statistics ( full | terse | none | <boolean> );
|
||||||
|
};
|
||||||
20
bind9-grammar/upstream/v9.18.44/grammar/rndc.grammar
Normal file
20
bind9-grammar/upstream/v9.18.44/grammar/rndc.grammar
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
key <string> {
|
||||||
|
algorithm <string>;
|
||||||
|
secret <string>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
options {
|
||||||
|
default-key <string>;
|
||||||
|
default-port <integer>;
|
||||||
|
default-server <string>;
|
||||||
|
default-source-address ( <ipv4_address> | * );
|
||||||
|
default-source-address-v6 ( <ipv6_address> | * );
|
||||||
|
};
|
||||||
|
|
||||||
|
server <string> {
|
||||||
|
addresses { ( <quoted_string> [ port <integer> ] | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ); ... };
|
||||||
|
key <string>;
|
||||||
|
port <integer>;
|
||||||
|
source-address ( <ipv4_address> | * );
|
||||||
|
source-address-v6 ( <ipv6_address> | * );
|
||||||
|
}; // may occur multiple times
|
||||||
67
bind9-grammar/upstream/v9.18.44/grammar/secondary.zoneopt
Normal file
67
bind9-grammar/upstream/v9.18.44/grammar/secondary.zoneopt
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
type secondary;
|
||||||
|
allow-notify { <address_match_element>; ... };
|
||||||
|
allow-query { <address_match_element>; ... };
|
||||||
|
allow-query-on { <address_match_element>; ... };
|
||||||
|
allow-transfer [ port <integer> ] [ transport <string> ] { <address_match_element>; ... };
|
||||||
|
allow-update-forwarding { <address_match_element>; ... };
|
||||||
|
also-notify [ port <integer> ] { ( <remote-servers> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
alt-transfer-source ( <ipv4_address> | * ) ; // deprecated
|
||||||
|
alt-transfer-source-v6 ( <ipv6_address> | * ) ; // deprecated
|
||||||
|
auto-dnssec ( allow | maintain | off ) ; // deprecated
|
||||||
|
check-names ( fail | warn | ignore );
|
||||||
|
database <string>;
|
||||||
|
dialup ( notify | notify-passive | passive | refresh | <boolean> ); // deprecated
|
||||||
|
dlz <string>;
|
||||||
|
dnskey-sig-validity <integer>;
|
||||||
|
dnssec-dnskey-kskonly <boolean>;
|
||||||
|
dnssec-loadkeys-interval <integer>;
|
||||||
|
dnssec-policy <string>;
|
||||||
|
dnssec-update-mode ( maintain | no-resign );
|
||||||
|
file <quoted_string>;
|
||||||
|
forward ( first | only );
|
||||||
|
forwarders [ port <integer> ] { ( <ipv4_address> | <ipv6_address> ) [ port <integer> ]; ... };
|
||||||
|
inline-signing <boolean>;
|
||||||
|
ixfr-from-differences <boolean>;
|
||||||
|
journal <quoted_string>;
|
||||||
|
key-directory <quoted_string>;
|
||||||
|
masterfile-format ( raw | text );
|
||||||
|
masterfile-style ( full | relative );
|
||||||
|
max-ixfr-ratio ( unlimited | <percentage> );
|
||||||
|
max-journal-size ( default | unlimited | <sizeval> );
|
||||||
|
max-records <integer>;
|
||||||
|
max-records-per-type <integer>;
|
||||||
|
max-refresh-time <integer>;
|
||||||
|
max-retry-time <integer>;
|
||||||
|
max-transfer-idle-in <integer>;
|
||||||
|
max-transfer-idle-out <integer>;
|
||||||
|
max-transfer-time-in <integer>;
|
||||||
|
max-transfer-time-out <integer>;
|
||||||
|
max-types-per-name <integer>;
|
||||||
|
min-refresh-time <integer>;
|
||||||
|
min-retry-time <integer>;
|
||||||
|
multi-master <boolean>;
|
||||||
|
notify ( explicit | master-only | primary-only | <boolean> );
|
||||||
|
notify-delay <integer>;
|
||||||
|
notify-source ( <ipv4_address> | * ) ;
|
||||||
|
notify-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
notify-to-soa <boolean>;
|
||||||
|
nsec3-test-zone <boolean>; // test only
|
||||||
|
parental-agents [ port <integer> ] { ( <remote-servers> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
parental-source ( <ipv4_address> | * ) ;
|
||||||
|
parental-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
primaries [ port <integer> ] { ( <remote-servers> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
request-expire <boolean>;
|
||||||
|
request-ixfr <boolean>;
|
||||||
|
sig-signing-nodes <integer>;
|
||||||
|
sig-signing-signatures <integer>;
|
||||||
|
sig-signing-type <integer>;
|
||||||
|
sig-validity-interval <integer> [ <integer> ];
|
||||||
|
transfer-source ( <ipv4_address> | * ) ;
|
||||||
|
transfer-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
try-tcp-refresh <boolean>;
|
||||||
|
update-check-ksk <boolean>;
|
||||||
|
use-alt-transfer-source <boolean>; // deprecated
|
||||||
|
zero-no-soa-ttl <boolean>;
|
||||||
|
zone-statistics ( full | terse | none | <boolean> );
|
||||||
|
};
|
||||||
13
bind9-grammar/upstream/v9.18.44/grammar/static-stub.zoneopt
Normal file
13
bind9-grammar/upstream/v9.18.44/grammar/static-stub.zoneopt
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
type static-stub;
|
||||||
|
allow-query { <address_match_element>; ... };
|
||||||
|
allow-query-on { <address_match_element>; ... };
|
||||||
|
forward ( first | only );
|
||||||
|
forwarders [ port <integer> ] { ( <ipv4_address> | <ipv6_address> ) [ port <integer> ]; ... };
|
||||||
|
max-records <integer>;
|
||||||
|
max-records-per-type <integer>;
|
||||||
|
max-types-per-name <integer>;
|
||||||
|
server-addresses { ( <ipv4_address> | <ipv6_address> ); ... };
|
||||||
|
server-names { <string>; ... };
|
||||||
|
zone-statistics ( full | terse | none | <boolean> );
|
||||||
|
};
|
||||||
29
bind9-grammar/upstream/v9.18.44/grammar/stub.zoneopt
Normal file
29
bind9-grammar/upstream/v9.18.44/grammar/stub.zoneopt
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
type stub;
|
||||||
|
allow-query { <address_match_element>; ... };
|
||||||
|
allow-query-on { <address_match_element>; ... };
|
||||||
|
check-names ( fail | warn | ignore );
|
||||||
|
database <string>;
|
||||||
|
delegation-only <boolean>; // deprecated
|
||||||
|
dialup ( notify | notify-passive | passive | refresh | <boolean> ); // deprecated
|
||||||
|
file <quoted_string>;
|
||||||
|
forward ( first | only );
|
||||||
|
forwarders [ port <integer> ] { ( <ipv4_address> | <ipv6_address> ) [ port <integer> ]; ... };
|
||||||
|
masterfile-format ( raw | text );
|
||||||
|
masterfile-style ( full | relative );
|
||||||
|
max-records <integer>;
|
||||||
|
max-records-per-type <integer>;
|
||||||
|
max-refresh-time <integer>;
|
||||||
|
max-retry-time <integer>;
|
||||||
|
max-transfer-idle-in <integer>;
|
||||||
|
max-transfer-time-in <integer>;
|
||||||
|
max-types-per-name <integer>;
|
||||||
|
min-refresh-time <integer>;
|
||||||
|
min-retry-time <integer>;
|
||||||
|
multi-master <boolean>;
|
||||||
|
primaries [ port <integer> ] { ( <remote-servers> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
transfer-source ( <ipv4_address> | * ) ;
|
||||||
|
transfer-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
use-alt-transfer-source <boolean>; // deprecated
|
||||||
|
zone-statistics ( full | terse | none | <boolean> );
|
||||||
|
};
|
||||||
5
bind9-grammar/upstream/v9.20.18/grammar/forward.zoneopt
Normal file
5
bind9-grammar/upstream/v9.20.18/grammar/forward.zoneopt
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
type forward;
|
||||||
|
forward ( first | only );
|
||||||
|
forwarders [ port <integer> ] [ tls <string> ] { ( <ipv4_address> | <ipv6_address> ) [ port <integer> ] [ tls <string> ]; ... };
|
||||||
|
};
|
||||||
5
bind9-grammar/upstream/v9.20.18/grammar/hint.zoneopt
Normal file
5
bind9-grammar/upstream/v9.20.18/grammar/hint.zoneopt
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
type hint;
|
||||||
|
check-names ( fail | warn | ignore );
|
||||||
|
file <quoted_string>;
|
||||||
|
};
|
||||||
3
bind9-grammar/upstream/v9.20.18/grammar/in-view.zoneopt
Normal file
3
bind9-grammar/upstream/v9.20.18/grammar/in-view.zoneopt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
in-view <string>;
|
||||||
|
};
|
||||||
44
bind9-grammar/upstream/v9.20.18/grammar/mirror.zoneopt
Normal file
44
bind9-grammar/upstream/v9.20.18/grammar/mirror.zoneopt
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
type mirror;
|
||||||
|
allow-notify { <address_match_element>; ... };
|
||||||
|
allow-query { <address_match_element>; ... };
|
||||||
|
allow-query-on { <address_match_element>; ... };
|
||||||
|
allow-transfer [ port <integer> ] [ transport <string> ] { <address_match_element>; ... };
|
||||||
|
allow-update-forwarding { <address_match_element>; ... };
|
||||||
|
also-notify [ port <integer> ] [ source ( <ipv4_address> | * ) ] [ source-v6 ( <ipv6_address> | * ) ] { ( <server-list> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
check-names ( fail | warn | ignore );
|
||||||
|
database <string>;
|
||||||
|
file <quoted_string>;
|
||||||
|
ixfr-from-differences <boolean>;
|
||||||
|
journal <quoted_string>;
|
||||||
|
masterfile-format ( raw | text );
|
||||||
|
masterfile-style ( full | relative );
|
||||||
|
max-ixfr-ratio ( unlimited | <percentage> );
|
||||||
|
max-journal-size ( default | unlimited | <sizeval> );
|
||||||
|
max-records <integer>;
|
||||||
|
max-records-per-type <integer>;
|
||||||
|
max-refresh-time <integer>;
|
||||||
|
max-retry-time <integer>;
|
||||||
|
max-transfer-idle-in <integer>;
|
||||||
|
max-transfer-idle-out <integer>;
|
||||||
|
max-transfer-time-in <integer>;
|
||||||
|
max-transfer-time-out <integer>;
|
||||||
|
max-types-per-name <integer>;
|
||||||
|
min-refresh-time <integer>;
|
||||||
|
min-retry-time <integer>;
|
||||||
|
min-transfer-rate-in <integer> <integer>;
|
||||||
|
multi-master <boolean>;
|
||||||
|
notify ( explicit | master-only | primary-only | <boolean> );
|
||||||
|
notify-defer <integer>;
|
||||||
|
notify-delay <integer>;
|
||||||
|
notify-source ( <ipv4_address> | * ) ;
|
||||||
|
notify-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
primaries [ port <integer> ] [ source ( <ipv4_address> | * ) ] [ source-v6 ( <ipv6_address> | * ) ] { ( <server-list> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
request-expire <boolean>;
|
||||||
|
request-ixfr <boolean>;
|
||||||
|
transfer-source ( <ipv4_address> | * ) ;
|
||||||
|
transfer-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
try-tcp-refresh <boolean>;
|
||||||
|
zero-no-soa-ttl <boolean>;
|
||||||
|
zone-statistics ( full | terse | none | <boolean> );
|
||||||
|
};
|
||||||
605
bind9-grammar/upstream/v9.20.18/grammar/options
Normal file
605
bind9-grammar/upstream/v9.20.18/grammar/options
Normal file
@@ -0,0 +1,605 @@
|
|||||||
|
acl <string> { <address_match_element>; ... }; // may occur multiple times
|
||||||
|
|
||||||
|
controls {
|
||||||
|
inet ( <ipv4_address> | <ipv6_address> | * ) [ port ( <integer> | * ) ] allow { <address_match_element>; ... } [ keys { <string>; ... } ] [ read-only <boolean> ]; // may occur multiple times
|
||||||
|
unix <quoted_string> perm <integer> owner <integer> group <integer> [ keys { <string>; ... } ] [ read-only <boolean> ]; // may occur multiple times
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
dlz <string> {
|
||||||
|
database <string>;
|
||||||
|
search <boolean>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
dnssec-policy <string> {
|
||||||
|
cdnskey <boolean>;
|
||||||
|
cds-digest-types { <string>; ... };
|
||||||
|
dnskey-ttl <duration>;
|
||||||
|
inline-signing <boolean>;
|
||||||
|
keys { ( csk | ksk | zsk ) [ key-directory | key-store <string> ] lifetime <duration_or_unlimited> algorithm <string> [ tag-range <integer> <integer> ] [ <integer> ]; ... };
|
||||||
|
manual-mode <boolean>;
|
||||||
|
max-zone-ttl <duration>;
|
||||||
|
nsec3param [ iterations <integer> ] [ optout <boolean> ] [ salt-length <integer> ];
|
||||||
|
offline-ksk <boolean>;
|
||||||
|
parent-ds-ttl <duration>;
|
||||||
|
parent-propagation-delay <duration>;
|
||||||
|
publish-safety <duration>;
|
||||||
|
purge-keys <duration>;
|
||||||
|
retire-safety <duration>;
|
||||||
|
signatures-jitter <duration>;
|
||||||
|
signatures-refresh <duration>;
|
||||||
|
signatures-validity <duration>;
|
||||||
|
signatures-validity-dnskey <duration>;
|
||||||
|
zone-propagation-delay <duration>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
dyndb <string> <quoted_string> { <unspecified-text> }; // may occur multiple times
|
||||||
|
|
||||||
|
http <string> {
|
||||||
|
endpoints { <quoted_string>; ... };
|
||||||
|
listener-clients <integer>;
|
||||||
|
streams-per-connection <integer>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
key <string> {
|
||||||
|
algorithm <string>;
|
||||||
|
secret <string>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
key-store <string> {
|
||||||
|
directory <string>;
|
||||||
|
pkcs11-uri <quoted_string>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
logging {
|
||||||
|
category <string> { <string>; ... }; // may occur multiple times
|
||||||
|
channel <string> {
|
||||||
|
buffered <boolean>;
|
||||||
|
file <quoted_string> [ versions ( unlimited | <integer> ) ] [ size <size> ] [ suffix ( increment | timestamp ) ];
|
||||||
|
null;
|
||||||
|
print-category <boolean>;
|
||||||
|
print-severity <boolean>;
|
||||||
|
print-time ( iso8601 | iso8601-utc | local | <boolean> );
|
||||||
|
severity <log_severity>;
|
||||||
|
stderr;
|
||||||
|
syslog [ <syslog_facility> ];
|
||||||
|
}; // may occur multiple times
|
||||||
|
};
|
||||||
|
|
||||||
|
managed-keys { <string> ( static-key | initial-key | static-ds | initial-ds ) <integer> <integer> <integer> <quoted_string>; ... }; // may occur multiple times, deprecated
|
||||||
|
|
||||||
|
options {
|
||||||
|
allow-new-zones <boolean>;
|
||||||
|
allow-notify { <address_match_element>; ... };
|
||||||
|
allow-proxy { <address_match_element>; ... }; // experimental
|
||||||
|
allow-proxy-on { <address_match_element>; ... }; // experimental
|
||||||
|
allow-query { <address_match_element>; ... };
|
||||||
|
allow-query-cache { <address_match_element>; ... };
|
||||||
|
allow-query-cache-on { <address_match_element>; ... };
|
||||||
|
allow-query-on { <address_match_element>; ... };
|
||||||
|
allow-recursion { <address_match_element>; ... };
|
||||||
|
allow-recursion-on { <address_match_element>; ... };
|
||||||
|
allow-transfer [ port <integer> ] [ transport <string> ] { <address_match_element>; ... };
|
||||||
|
allow-update { <address_match_element>; ... };
|
||||||
|
allow-update-forwarding { <address_match_element>; ... };
|
||||||
|
also-notify [ port <integer> ] [ source ( <ipv4_address> | * ) ] [ source-v6 ( <ipv6_address> | * ) ] { ( <server-list> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
answer-cookie <boolean>;
|
||||||
|
attach-cache <string>;
|
||||||
|
auth-nxdomain <boolean>;
|
||||||
|
automatic-interface-scan <boolean>;
|
||||||
|
avoid-v4-udp-ports { <portrange>; ... }; // deprecated
|
||||||
|
avoid-v6-udp-ports { <portrange>; ... }; // deprecated
|
||||||
|
bindkeys-file <quoted_string>; // test only
|
||||||
|
blackhole { <address_match_element>; ... };
|
||||||
|
catalog-zones { zone <string> [ default-primaries [ port <integer> ] [ source ( <ipv4_address> | * ) ] [ source-v6 ( <ipv6_address> | * ) ] { ( <server-list> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... } ] [ zone-directory <quoted_string> ] [ in-memory <boolean> ] [ min-update-interval <duration> ]; ... };
|
||||||
|
check-dup-records ( fail | warn | ignore );
|
||||||
|
check-integrity <boolean>;
|
||||||
|
check-mx ( fail | warn | ignore );
|
||||||
|
check-mx-cname ( fail | warn | ignore );
|
||||||
|
check-names ( primary | master | secondary | slave | response ) ( fail | warn | ignore ); // may occur multiple times
|
||||||
|
check-sibling <boolean>;
|
||||||
|
check-spf ( warn | ignore );
|
||||||
|
check-srv-cname ( fail | warn | ignore );
|
||||||
|
check-svcb <boolean>;
|
||||||
|
check-wildcard <boolean>;
|
||||||
|
clients-per-query <integer>;
|
||||||
|
cookie-algorithm ( siphash24 );
|
||||||
|
cookie-secret <string>; // may occur multiple times
|
||||||
|
deny-answer-addresses { <address_match_element>; ... } [ except-from { <string>; ... } ];
|
||||||
|
deny-answer-aliases { <string>; ... } [ except-from { <string>; ... } ];
|
||||||
|
dialup ( notify | notify-passive | passive | refresh | <boolean> ); // deprecated
|
||||||
|
directory <quoted_string>;
|
||||||
|
disable-algorithms <string> { <string>; ... }; // may occur multiple times
|
||||||
|
disable-ds-digests <string> { <string>; ... }; // may occur multiple times
|
||||||
|
disable-empty-zone <string>; // may occur multiple times
|
||||||
|
dns64 <netprefix> {
|
||||||
|
break-dnssec <boolean>;
|
||||||
|
clients { <address_match_element>; ... };
|
||||||
|
exclude { <address_match_element>; ... };
|
||||||
|
mapped { <address_match_element>; ... };
|
||||||
|
recursive-only <boolean>;
|
||||||
|
suffix <ipv6_address>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
dns64-contact <string>;
|
||||||
|
dns64-server <string>;
|
||||||
|
dnskey-sig-validity <integer>; // obsolete
|
||||||
|
dnsrps-enable <boolean>; // not configured
|
||||||
|
dnsrps-library <quoted_string>; // not configured
|
||||||
|
dnsrps-options { <unspecified-text> }; // not configured
|
||||||
|
dnssec-accept-expired <boolean>;
|
||||||
|
dnssec-dnskey-kskonly <boolean>; // obsolete
|
||||||
|
dnssec-loadkeys-interval <integer>;
|
||||||
|
dnssec-must-be-secure <string> <boolean>; // may occur multiple times, deprecated
|
||||||
|
dnssec-policy <string>;
|
||||||
|
dnssec-secure-to-insecure <boolean>; // obsolete
|
||||||
|
dnssec-update-mode ( maintain | no-resign ) ; // obsolete
|
||||||
|
dnssec-validation ( yes | no | auto );
|
||||||
|
dnstap { ( all | auth | client | forwarder | resolver | update ) [ ( query | response ) ]; ... }; // not configured
|
||||||
|
dnstap-identity ( <quoted_string> | none | hostname ); // not configured
|
||||||
|
dnstap-output ( file | unix ) <quoted_string> [ size ( unlimited | <size> ) ] [ versions ( unlimited | <integer> ) ] [ suffix ( increment | timestamp ) ]; // not configured
|
||||||
|
dnstap-version ( <quoted_string> | none ); // not configured
|
||||||
|
dual-stack-servers [ port <integer> ] { ( <quoted_string> [ port <integer> ] | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ); ... };
|
||||||
|
dump-file <quoted_string>;
|
||||||
|
edns-udp-size <integer>;
|
||||||
|
empty-contact <string>;
|
||||||
|
empty-server <string>;
|
||||||
|
empty-zones-enable <boolean>;
|
||||||
|
fetch-quota-params <integer> <fixedpoint> <fixedpoint> <fixedpoint>;
|
||||||
|
fetches-per-server <integer> [ ( drop | fail ) ];
|
||||||
|
fetches-per-zone <integer> [ ( drop | fail ) ];
|
||||||
|
flush-zones-on-shutdown <boolean>;
|
||||||
|
forward ( first | only );
|
||||||
|
forwarders [ port <integer> ] [ tls <string> ] { ( <ipv4_address> | <ipv6_address> ) [ port <integer> ] [ tls <string> ]; ... };
|
||||||
|
fstrm-set-buffer-hint <integer>; // not configured
|
||||||
|
fstrm-set-flush-timeout <integer>; // not configured
|
||||||
|
fstrm-set-input-queue-size <integer>; // not configured
|
||||||
|
fstrm-set-output-notify-threshold <integer>; // not configured
|
||||||
|
fstrm-set-output-queue-model ( mpscs | spscs ); // not configured
|
||||||
|
fstrm-set-output-queue-size <integer>; // not configured
|
||||||
|
fstrm-set-reopen-interval <duration>; // not configured
|
||||||
|
geoip-directory ( <quoted_string> | none );
|
||||||
|
hostname ( <quoted_string> | none );
|
||||||
|
http-listener-clients <integer>;
|
||||||
|
http-port <integer>;
|
||||||
|
http-streams-per-connection <integer>;
|
||||||
|
https-port <integer>;
|
||||||
|
interface-interval <duration>;
|
||||||
|
ipv4only-contact <string>;
|
||||||
|
ipv4only-enable <boolean>;
|
||||||
|
ipv4only-server <string>;
|
||||||
|
ixfr-from-differences ( primary | master | secondary | slave | <boolean> );
|
||||||
|
key-directory <quoted_string>;
|
||||||
|
lame-ttl <duration>;
|
||||||
|
listen-on [ port <integer> ] [ proxy <string> ] [ tls <string> ] [ http <string> ] { <address_match_element>; ... }; // may occur multiple times
|
||||||
|
listen-on-v6 [ port <integer> ] [ proxy <string> ] [ tls <string> ] [ http <string> ] { <address_match_element>; ... }; // may occur multiple times
|
||||||
|
lmdb-mapsize <sizeval>;
|
||||||
|
managed-keys-directory <quoted_string>;
|
||||||
|
masterfile-format ( raw | text );
|
||||||
|
masterfile-style ( full | relative );
|
||||||
|
match-mapped-addresses <boolean>;
|
||||||
|
max-cache-size ( default | unlimited | <sizeval> | <percentage> );
|
||||||
|
max-cache-ttl <duration>;
|
||||||
|
max-clients-per-query <integer>;
|
||||||
|
max-ixfr-ratio ( unlimited | <percentage> );
|
||||||
|
max-journal-size ( default | unlimited | <sizeval> );
|
||||||
|
max-ncache-ttl <duration>;
|
||||||
|
max-query-count <integer>;
|
||||||
|
max-query-restarts <integer>;
|
||||||
|
max-records <integer>;
|
||||||
|
max-records-per-type <integer>;
|
||||||
|
max-recursion-depth <integer>;
|
||||||
|
max-recursion-queries <integer>;
|
||||||
|
max-refresh-time <integer>;
|
||||||
|
max-retry-time <integer>;
|
||||||
|
max-rsa-exponent-size <integer>;
|
||||||
|
max-stale-ttl <duration>;
|
||||||
|
max-transfer-idle-in <integer>;
|
||||||
|
max-transfer-idle-out <integer>;
|
||||||
|
max-transfer-time-in <integer>;
|
||||||
|
max-transfer-time-out <integer>;
|
||||||
|
max-types-per-name <integer>;
|
||||||
|
max-udp-size <integer>;
|
||||||
|
max-validation-failures-per-fetch <integer>; // experimental
|
||||||
|
max-validations-per-fetch <integer>; // experimental
|
||||||
|
memstatistics <boolean>;
|
||||||
|
memstatistics-file <quoted_string>;
|
||||||
|
message-compression <boolean>;
|
||||||
|
min-cache-ttl <duration>;
|
||||||
|
min-ncache-ttl <duration>;
|
||||||
|
min-refresh-time <integer>;
|
||||||
|
min-retry-time <integer>;
|
||||||
|
min-transfer-rate-in <integer> <integer>;
|
||||||
|
minimal-any <boolean>;
|
||||||
|
minimal-responses ( no-auth | no-auth-recursive | <boolean> );
|
||||||
|
multi-master <boolean>;
|
||||||
|
new-zones-directory <quoted_string>;
|
||||||
|
no-case-compress { <address_match_element>; ... };
|
||||||
|
nocookie-udp-size <integer>;
|
||||||
|
notify ( explicit | master-only | primary-only | <boolean> );
|
||||||
|
notify-defer <integer>;
|
||||||
|
notify-delay <integer>;
|
||||||
|
notify-rate <integer>;
|
||||||
|
notify-source ( <ipv4_address> | * ) ;
|
||||||
|
notify-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
notify-to-soa <boolean>;
|
||||||
|
nsec3-test-zone <boolean>; // test only
|
||||||
|
nta-lifetime <duration>;
|
||||||
|
nta-recheck <duration>;
|
||||||
|
nxdomain-redirect <string>;
|
||||||
|
parental-source ( <ipv4_address> | * ) ;
|
||||||
|
parental-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
pid-file ( <quoted_string> | none );
|
||||||
|
port <integer>;
|
||||||
|
preferred-glue <string>;
|
||||||
|
prefetch <integer> [ <integer> ];
|
||||||
|
provide-ixfr <boolean>;
|
||||||
|
qname-minimization ( strict | relaxed | disabled | off );
|
||||||
|
query-source [ address ] ( <ipv4_address> | * | none );
|
||||||
|
query-source-v6 [ address ] ( <ipv6_address> | * | none );
|
||||||
|
querylog <boolean>;
|
||||||
|
rate-limit {
|
||||||
|
all-per-second <integer>;
|
||||||
|
errors-per-second <integer>;
|
||||||
|
exempt-clients { <address_match_element>; ... };
|
||||||
|
ipv4-prefix-length <integer>;
|
||||||
|
ipv6-prefix-length <integer>;
|
||||||
|
log-only <boolean>;
|
||||||
|
max-table-size <integer>;
|
||||||
|
min-table-size <integer>;
|
||||||
|
nodata-per-second <integer>;
|
||||||
|
nxdomains-per-second <integer>;
|
||||||
|
qps-scale <integer>;
|
||||||
|
referrals-per-second <integer>;
|
||||||
|
responses-per-second <integer>;
|
||||||
|
slip <integer>;
|
||||||
|
window <integer>;
|
||||||
|
};
|
||||||
|
recursing-file <quoted_string>;
|
||||||
|
recursion <boolean>;
|
||||||
|
recursive-clients <integer>;
|
||||||
|
request-expire <boolean>;
|
||||||
|
request-ixfr <boolean>;
|
||||||
|
request-nsid <boolean>;
|
||||||
|
require-server-cookie <boolean>;
|
||||||
|
resolver-query-timeout <integer>;
|
||||||
|
resolver-use-dns64 <boolean>;
|
||||||
|
response-padding { <address_match_element>; ... } block-size <integer>;
|
||||||
|
response-policy { zone <string> [ add-soa <boolean> ] [ log <boolean> ] [ max-policy-ttl <duration> ] [ min-update-interval <duration> ] [ policy ( cname | disabled | drop | given | no-op | nodata | nxdomain | passthru | tcp-only <quoted_string> ) ] [ recursive-only <boolean> ] [ nsip-enable <boolean> ] [ nsdname-enable <boolean> ] [ ede <string> ]; ... } [ add-soa <boolean> ] [ break-dnssec <boolean> ] [ max-policy-ttl <duration> ] [ min-update-interval <duration> ] [ min-ns-dots <integer> ] [ nsip-wait-recurse <boolean> ] [ nsdname-wait-recurse <boolean> ] [ qname-wait-recurse <boolean> ] [ recursive-only <boolean> ] [ servfail-until-ready <boolean> ] [ nsip-enable <boolean> ] [ nsdname-enable <boolean> ] [ dnsrps-enable <boolean> ] [ dnsrps-options { <unspecified-text> } ];
|
||||||
|
responselog <boolean>;
|
||||||
|
reuseport <boolean>;
|
||||||
|
root-key-sentinel <boolean>;
|
||||||
|
rrset-order { [ class <string> ] [ type <string> ] [ name <quoted_string> ] <string> <string>; ... };
|
||||||
|
secroots-file <quoted_string>;
|
||||||
|
send-cookie <boolean>;
|
||||||
|
serial-query-rate <integer>;
|
||||||
|
serial-update-method ( date | increment | unixtime );
|
||||||
|
server-id ( <quoted_string> | none | hostname );
|
||||||
|
servfail-ttl <duration>;
|
||||||
|
session-keyalg <string>;
|
||||||
|
session-keyfile ( <quoted_string> | none );
|
||||||
|
session-keyname <string>;
|
||||||
|
sig-signing-nodes <integer>;
|
||||||
|
sig-signing-signatures <integer>;
|
||||||
|
sig-signing-type <integer>;
|
||||||
|
sig-validity-interval <integer> [ <integer> ]; // obsolete
|
||||||
|
sig0-checks-quota <integer>; // experimental
|
||||||
|
sig0-checks-quota-exempt { <address_match_element>; ... }; // experimental
|
||||||
|
sig0-key-checks-limit <integer>;
|
||||||
|
sig0-message-checks-limit <integer>;
|
||||||
|
sortlist { <address_match_element>; ... }; // deprecated
|
||||||
|
stale-answer-client-timeout ( disabled | off | <integer> );
|
||||||
|
stale-answer-enable <boolean>;
|
||||||
|
stale-answer-ttl <duration>;
|
||||||
|
stale-cache-enable <boolean>;
|
||||||
|
stale-refresh-time <duration>;
|
||||||
|
startup-notify-rate <integer>;
|
||||||
|
statistics-file <quoted_string>;
|
||||||
|
synth-from-dnssec <boolean>;
|
||||||
|
tcp-advertised-timeout <integer>;
|
||||||
|
tcp-clients <integer>;
|
||||||
|
tcp-idle-timeout <integer>;
|
||||||
|
tcp-initial-timeout <integer>;
|
||||||
|
tcp-keepalive-timeout <integer>;
|
||||||
|
tcp-listen-queue <integer>;
|
||||||
|
tcp-receive-buffer <integer>;
|
||||||
|
tcp-send-buffer <integer>;
|
||||||
|
tkey-domain <quoted_string>; // obsolete
|
||||||
|
tkey-gssapi-keytab <quoted_string>;
|
||||||
|
tls-port <integer>;
|
||||||
|
transfer-format ( many-answers | one-answer );
|
||||||
|
transfer-message-size <integer>;
|
||||||
|
transfer-source ( <ipv4_address> | * ) ;
|
||||||
|
transfer-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
transfers-in <integer>;
|
||||||
|
transfers-out <integer>;
|
||||||
|
transfers-per-ns <integer>;
|
||||||
|
trust-anchor-telemetry <boolean>;
|
||||||
|
try-tcp-refresh <boolean>;
|
||||||
|
udp-receive-buffer <integer>;
|
||||||
|
udp-send-buffer <integer>;
|
||||||
|
update-check-ksk <boolean>; // obsolete
|
||||||
|
update-quota <integer>;
|
||||||
|
use-v4-udp-ports { <portrange>; ... }; // deprecated
|
||||||
|
use-v6-udp-ports { <portrange>; ... }; // deprecated
|
||||||
|
v6-bias <integer>;
|
||||||
|
validate-except { <string>; ... };
|
||||||
|
version ( <quoted_string> | none );
|
||||||
|
zero-no-soa-ttl <boolean>;
|
||||||
|
zero-no-soa-ttl-cache <boolean>;
|
||||||
|
zone-statistics ( full | terse | none | <boolean> );
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin ( query ) <string> [ { <unspecified-text> } ]; // may occur multiple times
|
||||||
|
|
||||||
|
remote-servers <string> [ port <integer> ] [ source ( <ipv4_address> | * ) ] [ source-v6 ( <ipv6_address> | * ) ] { ( <server-list> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... }; // may occur multiple times
|
||||||
|
|
||||||
|
server <netprefix> {
|
||||||
|
bogus <boolean>;
|
||||||
|
edns <boolean>;
|
||||||
|
edns-udp-size <integer>;
|
||||||
|
edns-version <integer>;
|
||||||
|
keys <server_key>;
|
||||||
|
max-udp-size <integer>;
|
||||||
|
notify-source ( <ipv4_address> | * ) ;
|
||||||
|
notify-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
padding <integer>;
|
||||||
|
provide-ixfr <boolean>;
|
||||||
|
query-source [ address ] ( <ipv4_address> | * );
|
||||||
|
query-source-v6 [ address ] ( <ipv6_address> | * );
|
||||||
|
request-expire <boolean>;
|
||||||
|
request-ixfr <boolean>;
|
||||||
|
request-nsid <boolean>;
|
||||||
|
require-cookie <boolean>;
|
||||||
|
send-cookie <boolean>;
|
||||||
|
tcp-keepalive <boolean>;
|
||||||
|
tcp-only <boolean>;
|
||||||
|
transfer-format ( many-answers | one-answer );
|
||||||
|
transfer-source ( <ipv4_address> | * ) ;
|
||||||
|
transfer-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
transfers <integer>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
statistics-channels {
|
||||||
|
inet ( <ipv4_address> | <ipv6_address> | * ) [ port ( <integer> | * ) ] [ allow { <address_match_element>; ... } ]; // may occur multiple times
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
tls <string> {
|
||||||
|
ca-file <quoted_string>;
|
||||||
|
cert-file <quoted_string>;
|
||||||
|
cipher-suites <string>;
|
||||||
|
ciphers <string>;
|
||||||
|
dhparam-file <quoted_string>;
|
||||||
|
key-file <quoted_string>;
|
||||||
|
prefer-server-ciphers <boolean>;
|
||||||
|
protocols { <string>; ... };
|
||||||
|
remote-hostname <quoted_string>;
|
||||||
|
session-tickets <boolean>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
trust-anchors { <string> ( static-key | initial-key | static-ds | initial-ds ) <integer> <integer> <integer> <quoted_string>; ... }; // may occur multiple times
|
||||||
|
|
||||||
|
trusted-keys { <string> <integer> <integer> <integer> <quoted_string>; ... }; // may occur multiple times, deprecated
|
||||||
|
|
||||||
|
view <string> [ <class> ] {
|
||||||
|
allow-new-zones <boolean>;
|
||||||
|
allow-notify { <address_match_element>; ... };
|
||||||
|
allow-proxy { <address_match_element>; ... }; // experimental
|
||||||
|
allow-proxy-on { <address_match_element>; ... }; // experimental
|
||||||
|
allow-query { <address_match_element>; ... };
|
||||||
|
allow-query-cache { <address_match_element>; ... };
|
||||||
|
allow-query-cache-on { <address_match_element>; ... };
|
||||||
|
allow-query-on { <address_match_element>; ... };
|
||||||
|
allow-recursion { <address_match_element>; ... };
|
||||||
|
allow-recursion-on { <address_match_element>; ... };
|
||||||
|
allow-transfer [ port <integer> ] [ transport <string> ] { <address_match_element>; ... };
|
||||||
|
allow-update { <address_match_element>; ... };
|
||||||
|
allow-update-forwarding { <address_match_element>; ... };
|
||||||
|
also-notify [ port <integer> ] [ source ( <ipv4_address> | * ) ] [ source-v6 ( <ipv6_address> | * ) ] { ( <server-list> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
attach-cache <string>;
|
||||||
|
auth-nxdomain <boolean>;
|
||||||
|
catalog-zones { zone <string> [ default-primaries [ port <integer> ] [ source ( <ipv4_address> | * ) ] [ source-v6 ( <ipv6_address> | * ) ] { ( <server-list> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... } ] [ zone-directory <quoted_string> ] [ in-memory <boolean> ] [ min-update-interval <duration> ]; ... };
|
||||||
|
check-dup-records ( fail | warn | ignore );
|
||||||
|
check-integrity <boolean>;
|
||||||
|
check-mx ( fail | warn | ignore );
|
||||||
|
check-mx-cname ( fail | warn | ignore );
|
||||||
|
check-names ( primary | master | secondary | slave | response ) ( fail | warn | ignore ); // may occur multiple times
|
||||||
|
check-sibling <boolean>;
|
||||||
|
check-spf ( warn | ignore );
|
||||||
|
check-srv-cname ( fail | warn | ignore );
|
||||||
|
check-svcb <boolean>;
|
||||||
|
check-wildcard <boolean>;
|
||||||
|
clients-per-query <integer>;
|
||||||
|
deny-answer-addresses { <address_match_element>; ... } [ except-from { <string>; ... } ];
|
||||||
|
deny-answer-aliases { <string>; ... } [ except-from { <string>; ... } ];
|
||||||
|
dialup ( notify | notify-passive | passive | refresh | <boolean> ); // deprecated
|
||||||
|
disable-algorithms <string> { <string>; ... }; // may occur multiple times
|
||||||
|
disable-ds-digests <string> { <string>; ... }; // may occur multiple times
|
||||||
|
disable-empty-zone <string>; // may occur multiple times
|
||||||
|
dlz <string> {
|
||||||
|
database <string>;
|
||||||
|
search <boolean>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
dns64 <netprefix> {
|
||||||
|
break-dnssec <boolean>;
|
||||||
|
clients { <address_match_element>; ... };
|
||||||
|
exclude { <address_match_element>; ... };
|
||||||
|
mapped { <address_match_element>; ... };
|
||||||
|
recursive-only <boolean>;
|
||||||
|
suffix <ipv6_address>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
dns64-contact <string>;
|
||||||
|
dns64-server <string>;
|
||||||
|
dnskey-sig-validity <integer>; // obsolete
|
||||||
|
dnsrps-enable <boolean>; // not configured
|
||||||
|
dnsrps-options { <unspecified-text> }; // not configured
|
||||||
|
dnssec-accept-expired <boolean>;
|
||||||
|
dnssec-dnskey-kskonly <boolean>; // obsolete
|
||||||
|
dnssec-loadkeys-interval <integer>;
|
||||||
|
dnssec-must-be-secure <string> <boolean>; // may occur multiple times, deprecated
|
||||||
|
dnssec-policy <string>;
|
||||||
|
dnssec-secure-to-insecure <boolean>; // obsolete
|
||||||
|
dnssec-update-mode ( maintain | no-resign ) ; // obsolete
|
||||||
|
dnssec-validation ( yes | no | auto );
|
||||||
|
dnstap { ( all | auth | client | forwarder | resolver | update ) [ ( query | response ) ]; ... }; // not configured
|
||||||
|
dual-stack-servers [ port <integer> ] { ( <quoted_string> [ port <integer> ] | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ); ... };
|
||||||
|
dyndb <string> <quoted_string> { <unspecified-text> }; // may occur multiple times
|
||||||
|
edns-udp-size <integer>;
|
||||||
|
empty-contact <string>;
|
||||||
|
empty-server <string>;
|
||||||
|
empty-zones-enable <boolean>;
|
||||||
|
fetch-quota-params <integer> <fixedpoint> <fixedpoint> <fixedpoint>;
|
||||||
|
fetches-per-server <integer> [ ( drop | fail ) ];
|
||||||
|
fetches-per-zone <integer> [ ( drop | fail ) ];
|
||||||
|
forward ( first | only );
|
||||||
|
forwarders [ port <integer> ] [ tls <string> ] { ( <ipv4_address> | <ipv6_address> ) [ port <integer> ] [ tls <string> ]; ... };
|
||||||
|
ipv4only-contact <string>;
|
||||||
|
ipv4only-enable <boolean>;
|
||||||
|
ipv4only-server <string>;
|
||||||
|
ixfr-from-differences ( primary | master | secondary | slave | <boolean> );
|
||||||
|
key <string> {
|
||||||
|
algorithm <string>;
|
||||||
|
secret <string>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
key-directory <quoted_string>;
|
||||||
|
lame-ttl <duration>;
|
||||||
|
lmdb-mapsize <sizeval>;
|
||||||
|
masterfile-format ( raw | text );
|
||||||
|
masterfile-style ( full | relative );
|
||||||
|
match-clients { <address_match_element>; ... };
|
||||||
|
match-destinations { <address_match_element>; ... };
|
||||||
|
match-recursive-only <boolean>;
|
||||||
|
max-cache-size ( default | unlimited | <sizeval> | <percentage> );
|
||||||
|
max-cache-ttl <duration>;
|
||||||
|
max-clients-per-query <integer>;
|
||||||
|
max-ixfr-ratio ( unlimited | <percentage> );
|
||||||
|
max-journal-size ( default | unlimited | <sizeval> );
|
||||||
|
max-ncache-ttl <duration>;
|
||||||
|
max-query-count <integer>;
|
||||||
|
max-query-restarts <integer>;
|
||||||
|
max-records <integer>;
|
||||||
|
max-records-per-type <integer>;
|
||||||
|
max-recursion-depth <integer>;
|
||||||
|
max-recursion-queries <integer>;
|
||||||
|
max-refresh-time <integer>;
|
||||||
|
max-retry-time <integer>;
|
||||||
|
max-stale-ttl <duration>;
|
||||||
|
max-transfer-idle-in <integer>;
|
||||||
|
max-transfer-idle-out <integer>;
|
||||||
|
max-transfer-time-in <integer>;
|
||||||
|
max-transfer-time-out <integer>;
|
||||||
|
max-types-per-name <integer>;
|
||||||
|
max-udp-size <integer>;
|
||||||
|
max-validation-failures-per-fetch <integer>; // experimental
|
||||||
|
max-validations-per-fetch <integer>; // experimental
|
||||||
|
message-compression <boolean>;
|
||||||
|
min-cache-ttl <duration>;
|
||||||
|
min-ncache-ttl <duration>;
|
||||||
|
min-refresh-time <integer>;
|
||||||
|
min-retry-time <integer>;
|
||||||
|
min-transfer-rate-in <integer> <integer>;
|
||||||
|
minimal-any <boolean>;
|
||||||
|
minimal-responses ( no-auth | no-auth-recursive | <boolean> );
|
||||||
|
multi-master <boolean>;
|
||||||
|
new-zones-directory <quoted_string>;
|
||||||
|
no-case-compress { <address_match_element>; ... };
|
||||||
|
nocookie-udp-size <integer>;
|
||||||
|
notify ( explicit | master-only | primary-only | <boolean> );
|
||||||
|
notify-defer <integer>;
|
||||||
|
notify-delay <integer>;
|
||||||
|
notify-source ( <ipv4_address> | * ) ;
|
||||||
|
notify-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
notify-to-soa <boolean>;
|
||||||
|
nsec3-test-zone <boolean>; // test only
|
||||||
|
nta-lifetime <duration>;
|
||||||
|
nta-recheck <duration>;
|
||||||
|
nxdomain-redirect <string>;
|
||||||
|
parental-source ( <ipv4_address> | * ) ;
|
||||||
|
parental-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
plugin ( query ) <string> [ { <unspecified-text> } ]; // may occur multiple times
|
||||||
|
preferred-glue <string>;
|
||||||
|
prefetch <integer> [ <integer> ];
|
||||||
|
provide-ixfr <boolean>;
|
||||||
|
qname-minimization ( strict | relaxed | disabled | off );
|
||||||
|
query-source [ address ] ( <ipv4_address> | * | none );
|
||||||
|
query-source-v6 [ address ] ( <ipv6_address> | * | none );
|
||||||
|
rate-limit {
|
||||||
|
all-per-second <integer>;
|
||||||
|
errors-per-second <integer>;
|
||||||
|
exempt-clients { <address_match_element>; ... };
|
||||||
|
ipv4-prefix-length <integer>;
|
||||||
|
ipv6-prefix-length <integer>;
|
||||||
|
log-only <boolean>;
|
||||||
|
max-table-size <integer>;
|
||||||
|
min-table-size <integer>;
|
||||||
|
nodata-per-second <integer>;
|
||||||
|
nxdomains-per-second <integer>;
|
||||||
|
qps-scale <integer>;
|
||||||
|
referrals-per-second <integer>;
|
||||||
|
responses-per-second <integer>;
|
||||||
|
slip <integer>;
|
||||||
|
window <integer>;
|
||||||
|
};
|
||||||
|
recursion <boolean>;
|
||||||
|
request-expire <boolean>;
|
||||||
|
request-ixfr <boolean>;
|
||||||
|
request-nsid <boolean>;
|
||||||
|
require-server-cookie <boolean>;
|
||||||
|
resolver-query-timeout <integer>;
|
||||||
|
resolver-use-dns64 <boolean>;
|
||||||
|
response-padding { <address_match_element>; ... } block-size <integer>;
|
||||||
|
response-policy { zone <string> [ add-soa <boolean> ] [ log <boolean> ] [ max-policy-ttl <duration> ] [ min-update-interval <duration> ] [ policy ( cname | disabled | drop | given | no-op | nodata | nxdomain | passthru | tcp-only <quoted_string> ) ] [ recursive-only <boolean> ] [ nsip-enable <boolean> ] [ nsdname-enable <boolean> ] [ ede <string> ]; ... } [ add-soa <boolean> ] [ break-dnssec <boolean> ] [ max-policy-ttl <duration> ] [ min-update-interval <duration> ] [ min-ns-dots <integer> ] [ nsip-wait-recurse <boolean> ] [ nsdname-wait-recurse <boolean> ] [ qname-wait-recurse <boolean> ] [ recursive-only <boolean> ] [ servfail-until-ready <boolean> ] [ nsip-enable <boolean> ] [ nsdname-enable <boolean> ] [ dnsrps-enable <boolean> ] [ dnsrps-options { <unspecified-text> } ];
|
||||||
|
root-key-sentinel <boolean>;
|
||||||
|
rrset-order { [ class <string> ] [ type <string> ] [ name <quoted_string> ] <string> <string>; ... };
|
||||||
|
send-cookie <boolean>;
|
||||||
|
serial-update-method ( date | increment | unixtime );
|
||||||
|
server <netprefix> {
|
||||||
|
bogus <boolean>;
|
||||||
|
edns <boolean>;
|
||||||
|
edns-udp-size <integer>;
|
||||||
|
edns-version <integer>;
|
||||||
|
keys <server_key>;
|
||||||
|
max-udp-size <integer>;
|
||||||
|
notify-source ( <ipv4_address> | * ) ;
|
||||||
|
notify-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
padding <integer>;
|
||||||
|
provide-ixfr <boolean>;
|
||||||
|
query-source [ address ] ( <ipv4_address> | * );
|
||||||
|
query-source-v6 [ address ] ( <ipv6_address> | * );
|
||||||
|
request-expire <boolean>;
|
||||||
|
request-ixfr <boolean>;
|
||||||
|
request-nsid <boolean>;
|
||||||
|
require-cookie <boolean>;
|
||||||
|
send-cookie <boolean>;
|
||||||
|
tcp-keepalive <boolean>;
|
||||||
|
tcp-only <boolean>;
|
||||||
|
transfer-format ( many-answers | one-answer );
|
||||||
|
transfer-source ( <ipv4_address> | * ) ;
|
||||||
|
transfer-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
transfers <integer>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
servfail-ttl <duration>;
|
||||||
|
sig-signing-nodes <integer>;
|
||||||
|
sig-signing-signatures <integer>;
|
||||||
|
sig-signing-type <integer>;
|
||||||
|
sig-validity-interval <integer> [ <integer> ]; // obsolete
|
||||||
|
sig0-key-checks-limit <integer>;
|
||||||
|
sig0-message-checks-limit <integer>;
|
||||||
|
sortlist { <address_match_element>; ... }; // deprecated
|
||||||
|
stale-answer-client-timeout ( disabled | off | <integer> );
|
||||||
|
stale-answer-enable <boolean>;
|
||||||
|
stale-answer-ttl <duration>;
|
||||||
|
stale-cache-enable <boolean>;
|
||||||
|
stale-refresh-time <duration>;
|
||||||
|
synth-from-dnssec <boolean>;
|
||||||
|
transfer-format ( many-answers | one-answer );
|
||||||
|
transfer-source ( <ipv4_address> | * ) ;
|
||||||
|
transfer-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
trust-anchor-telemetry <boolean>;
|
||||||
|
trust-anchors { <string> ( static-key | initial-key | static-ds | initial-ds ) <integer> <integer> <integer> <quoted_string>; ... }; // may occur multiple times
|
||||||
|
trusted-keys { <string> <integer> <integer> <integer> <quoted_string>; ... }; // may occur multiple times, deprecated
|
||||||
|
try-tcp-refresh <boolean>;
|
||||||
|
v6-bias <integer>;
|
||||||
|
validate-except { <string>; ... };
|
||||||
|
zero-no-soa-ttl <boolean>;
|
||||||
|
zero-no-soa-ttl-cache <boolean>;
|
||||||
|
zone-statistics ( full | terse | none | <boolean> );
|
||||||
|
}; // may occur multiple times
|
||||||
63
bind9-grammar/upstream/v9.20.18/grammar/primary.zoneopt
Normal file
63
bind9-grammar/upstream/v9.20.18/grammar/primary.zoneopt
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
type primary;
|
||||||
|
allow-query { <address_match_element>; ... };
|
||||||
|
allow-query-on { <address_match_element>; ... };
|
||||||
|
allow-transfer [ port <integer> ] [ transport <string> ] { <address_match_element>; ... };
|
||||||
|
allow-update { <address_match_element>; ... };
|
||||||
|
also-notify [ port <integer> ] [ source ( <ipv4_address> | * ) ] [ source-v6 ( <ipv6_address> | * ) ] { ( <server-list> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
check-dup-records ( fail | warn | ignore );
|
||||||
|
check-integrity <boolean>;
|
||||||
|
check-mx ( fail | warn | ignore );
|
||||||
|
check-mx-cname ( fail | warn | ignore );
|
||||||
|
check-names ( fail | warn | ignore );
|
||||||
|
check-sibling <boolean>;
|
||||||
|
check-spf ( warn | ignore );
|
||||||
|
check-srv-cname ( fail | warn | ignore );
|
||||||
|
check-svcb <boolean>;
|
||||||
|
check-wildcard <boolean>;
|
||||||
|
checkds ( explicit | <boolean> );
|
||||||
|
database <string>;
|
||||||
|
dialup ( notify | notify-passive | passive | refresh | <boolean> ); // deprecated
|
||||||
|
dlz <string>;
|
||||||
|
dnskey-sig-validity <integer>; // obsolete
|
||||||
|
dnssec-dnskey-kskonly <boolean>; // obsolete
|
||||||
|
dnssec-loadkeys-interval <integer>;
|
||||||
|
dnssec-policy <string>;
|
||||||
|
dnssec-secure-to-insecure <boolean>; // obsolete
|
||||||
|
dnssec-update-mode ( maintain | no-resign ) ; // obsolete
|
||||||
|
file <quoted_string>;
|
||||||
|
forward ( first | only );
|
||||||
|
forwarders [ port <integer> ] [ tls <string> ] { ( <ipv4_address> | <ipv6_address> ) [ port <integer> ] [ tls <string> ]; ... };
|
||||||
|
inline-signing <boolean>;
|
||||||
|
ixfr-from-differences <boolean>;
|
||||||
|
journal <quoted_string>;
|
||||||
|
key-directory <quoted_string>;
|
||||||
|
masterfile-format ( raw | text );
|
||||||
|
masterfile-style ( full | relative );
|
||||||
|
max-ixfr-ratio ( unlimited | <percentage> );
|
||||||
|
max-journal-size ( default | unlimited | <sizeval> );
|
||||||
|
max-records <integer>;
|
||||||
|
max-records-per-type <integer>;
|
||||||
|
max-transfer-idle-out <integer>;
|
||||||
|
max-transfer-time-out <integer>;
|
||||||
|
max-types-per-name <integer>;
|
||||||
|
max-zone-ttl ( unlimited | <duration> ); // deprecated
|
||||||
|
notify ( explicit | master-only | primary-only | <boolean> );
|
||||||
|
notify-defer <integer>;
|
||||||
|
notify-delay <integer>;
|
||||||
|
notify-source ( <ipv4_address> | * ) ;
|
||||||
|
notify-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
notify-to-soa <boolean>;
|
||||||
|
nsec3-test-zone <boolean>; // test only
|
||||||
|
parental-agents [ port <integer> ] [ source ( <ipv4_address> | * ) ] [ source-v6 ( <ipv6_address> | * ) ] { ( <server-list> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
parental-source ( <ipv4_address> | * ) ;
|
||||||
|
parental-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
serial-update-method ( date | increment | unixtime );
|
||||||
|
sig-signing-nodes <integer>;
|
||||||
|
sig-signing-signatures <integer>;
|
||||||
|
sig-signing-type <integer>;
|
||||||
|
sig-validity-interval <integer> [ <integer> ]; // obsolete
|
||||||
|
update-policy ( local | { ( deny | grant ) <string> ( 6to4-self | external | krb5-self | krb5-selfsub | krb5-subdomain | krb5-subdomain-self-rhs | ms-self | ms-selfsub | ms-subdomain | ms-subdomain-self-rhs | name | self | selfsub | selfwild | subdomain | tcp-self | wildcard | zonesub ) [ <string> ] <rrtype list>; ... } );
|
||||||
|
zero-no-soa-ttl <boolean>;
|
||||||
|
zone-statistics ( full | terse | none | <boolean> );
|
||||||
|
};
|
||||||
15
bind9-grammar/upstream/v9.20.18/grammar/redirect.zoneopt
Normal file
15
bind9-grammar/upstream/v9.20.18/grammar/redirect.zoneopt
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
type redirect;
|
||||||
|
allow-query { <address_match_element>; ... };
|
||||||
|
allow-query-on { <address_match_element>; ... };
|
||||||
|
dlz <string>;
|
||||||
|
file <quoted_string>;
|
||||||
|
masterfile-format ( raw | text );
|
||||||
|
masterfile-style ( full | relative );
|
||||||
|
max-records <integer>;
|
||||||
|
max-records-per-type <integer>;
|
||||||
|
max-types-per-name <integer>;
|
||||||
|
max-zone-ttl ( unlimited | <duration> ); // deprecated
|
||||||
|
primaries [ port <integer> ] [ source ( <ipv4_address> | * ) ] [ source-v6 ( <ipv6_address> | * ) ] { ( <server-list> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
zone-statistics ( full | terse | none | <boolean> );
|
||||||
|
};
|
||||||
20
bind9-grammar/upstream/v9.20.18/grammar/rndc.grammar
Normal file
20
bind9-grammar/upstream/v9.20.18/grammar/rndc.grammar
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
key <string> {
|
||||||
|
algorithm <string>;
|
||||||
|
secret <string>;
|
||||||
|
}; // may occur multiple times
|
||||||
|
|
||||||
|
options {
|
||||||
|
default-key <string>;
|
||||||
|
default-port <integer>;
|
||||||
|
default-server <string>;
|
||||||
|
default-source-address ( <ipv4_address> | * );
|
||||||
|
default-source-address-v6 ( <ipv6_address> | * );
|
||||||
|
};
|
||||||
|
|
||||||
|
server <string> {
|
||||||
|
addresses { ( <quoted_string> [ port <integer> ] | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ); ... };
|
||||||
|
key <string>;
|
||||||
|
port <integer>;
|
||||||
|
source-address ( <ipv4_address> | * );
|
||||||
|
source-address-v6 ( <ipv6_address> | * );
|
||||||
|
}; // may occur multiple times
|
||||||
66
bind9-grammar/upstream/v9.20.18/grammar/secondary.zoneopt
Normal file
66
bind9-grammar/upstream/v9.20.18/grammar/secondary.zoneopt
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
type secondary;
|
||||||
|
allow-notify { <address_match_element>; ... };
|
||||||
|
allow-query { <address_match_element>; ... };
|
||||||
|
allow-query-on { <address_match_element>; ... };
|
||||||
|
allow-transfer [ port <integer> ] [ transport <string> ] { <address_match_element>; ... };
|
||||||
|
allow-update-forwarding { <address_match_element>; ... };
|
||||||
|
also-notify [ port <integer> ] [ source ( <ipv4_address> | * ) ] [ source-v6 ( <ipv6_address> | * ) ] { ( <server-list> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
check-names ( fail | warn | ignore );
|
||||||
|
checkds ( explicit | <boolean> );
|
||||||
|
database <string>;
|
||||||
|
dialup ( notify | notify-passive | passive | refresh | <boolean> ); // deprecated
|
||||||
|
dlz <string>;
|
||||||
|
dnskey-sig-validity <integer>; // obsolete
|
||||||
|
dnssec-dnskey-kskonly <boolean>; // obsolete
|
||||||
|
dnssec-loadkeys-interval <integer>;
|
||||||
|
dnssec-policy <string>;
|
||||||
|
dnssec-update-mode ( maintain | no-resign ) ; // obsolete
|
||||||
|
file <quoted_string>;
|
||||||
|
forward ( first | only );
|
||||||
|
forwarders [ port <integer> ] [ tls <string> ] { ( <ipv4_address> | <ipv6_address> ) [ port <integer> ] [ tls <string> ]; ... };
|
||||||
|
inline-signing <boolean>;
|
||||||
|
ixfr-from-differences <boolean>;
|
||||||
|
journal <quoted_string>;
|
||||||
|
key-directory <quoted_string>;
|
||||||
|
masterfile-format ( raw | text );
|
||||||
|
masterfile-style ( full | relative );
|
||||||
|
max-ixfr-ratio ( unlimited | <percentage> );
|
||||||
|
max-journal-size ( default | unlimited | <sizeval> );
|
||||||
|
max-records <integer>;
|
||||||
|
max-records-per-type <integer>;
|
||||||
|
max-refresh-time <integer>;
|
||||||
|
max-retry-time <integer>;
|
||||||
|
max-transfer-idle-in <integer>;
|
||||||
|
max-transfer-idle-out <integer>;
|
||||||
|
max-transfer-time-in <integer>;
|
||||||
|
max-transfer-time-out <integer>;
|
||||||
|
max-types-per-name <integer>;
|
||||||
|
min-refresh-time <integer>;
|
||||||
|
min-retry-time <integer>;
|
||||||
|
min-transfer-rate-in <integer> <integer>;
|
||||||
|
multi-master <boolean>;
|
||||||
|
notify ( explicit | master-only | primary-only | <boolean> );
|
||||||
|
notify-defer <integer>;
|
||||||
|
notify-delay <integer>;
|
||||||
|
notify-source ( <ipv4_address> | * ) ;
|
||||||
|
notify-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
notify-to-soa <boolean>;
|
||||||
|
nsec3-test-zone <boolean>; // test only
|
||||||
|
parental-agents [ port <integer> ] [ source ( <ipv4_address> | * ) ] [ source-v6 ( <ipv6_address> | * ) ] { ( <server-list> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
parental-source ( <ipv4_address> | * ) ;
|
||||||
|
parental-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
primaries [ port <integer> ] [ source ( <ipv4_address> | * ) ] [ source-v6 ( <ipv6_address> | * ) ] { ( <server-list> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
request-expire <boolean>;
|
||||||
|
request-ixfr <boolean>;
|
||||||
|
sig-signing-nodes <integer>;
|
||||||
|
sig-signing-signatures <integer>;
|
||||||
|
sig-signing-type <integer>;
|
||||||
|
sig-validity-interval <integer> [ <integer> ]; // obsolete
|
||||||
|
transfer-source ( <ipv4_address> | * ) ;
|
||||||
|
transfer-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
try-tcp-refresh <boolean>;
|
||||||
|
update-check-ksk <boolean>; // obsolete
|
||||||
|
zero-no-soa-ttl <boolean>;
|
||||||
|
zone-statistics ( full | terse | none | <boolean> );
|
||||||
|
};
|
||||||
13
bind9-grammar/upstream/v9.20.18/grammar/static-stub.zoneopt
Normal file
13
bind9-grammar/upstream/v9.20.18/grammar/static-stub.zoneopt
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
type static-stub;
|
||||||
|
allow-query { <address_match_element>; ... };
|
||||||
|
allow-query-on { <address_match_element>; ... };
|
||||||
|
forward ( first | only );
|
||||||
|
forwarders [ port <integer> ] [ tls <string> ] { ( <ipv4_address> | <ipv6_address> ) [ port <integer> ] [ tls <string> ]; ... };
|
||||||
|
max-records <integer>;
|
||||||
|
max-records-per-type <integer>;
|
||||||
|
max-types-per-name <integer>;
|
||||||
|
server-addresses { ( <ipv4_address> | <ipv6_address> ); ... };
|
||||||
|
server-names { <string>; ... };
|
||||||
|
zone-statistics ( full | terse | none | <boolean> );
|
||||||
|
};
|
||||||
28
bind9-grammar/upstream/v9.20.18/grammar/stub.zoneopt
Normal file
28
bind9-grammar/upstream/v9.20.18/grammar/stub.zoneopt
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
zone <string> [ <class> ] {
|
||||||
|
type stub;
|
||||||
|
allow-query { <address_match_element>; ... };
|
||||||
|
allow-query-on { <address_match_element>; ... };
|
||||||
|
check-names ( fail | warn | ignore );
|
||||||
|
database <string>;
|
||||||
|
dialup ( notify | notify-passive | passive | refresh | <boolean> ); // deprecated
|
||||||
|
file <quoted_string>;
|
||||||
|
forward ( first | only );
|
||||||
|
forwarders [ port <integer> ] [ tls <string> ] { ( <ipv4_address> | <ipv6_address> ) [ port <integer> ] [ tls <string> ]; ... };
|
||||||
|
masterfile-format ( raw | text );
|
||||||
|
masterfile-style ( full | relative );
|
||||||
|
max-records <integer>;
|
||||||
|
max-records-per-type <integer>;
|
||||||
|
max-refresh-time <integer>;
|
||||||
|
max-retry-time <integer>;
|
||||||
|
max-transfer-idle-in <integer>;
|
||||||
|
max-transfer-time-in <integer>;
|
||||||
|
max-types-per-name <integer>;
|
||||||
|
min-refresh-time <integer>;
|
||||||
|
min-retry-time <integer>;
|
||||||
|
min-transfer-rate-in <integer> <integer>;
|
||||||
|
multi-master <boolean>;
|
||||||
|
primaries [ port <integer> ] [ source ( <ipv4_address> | * ) ] [ source-v6 ( <ipv6_address> | * ) ] { ( <server-list> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ] [ tls <string> ]; ... };
|
||||||
|
transfer-source ( <ipv4_address> | * ) ;
|
||||||
|
transfer-source-v6 ( <ipv6_address> | * ) ;
|
||||||
|
zone-statistics ( full | terse | none | <boolean> );
|
||||||
|
};
|
||||||
370
docs/VERSION_SUPPORT.md
Normal file
370
docs/VERSION_SUPPORT.md
Normal file
@@ -0,0 +1,370 @@
|
|||||||
|
# BIND9 Version Support Policy
|
||||||
|
|
||||||
|
**Document Version**: 1.0
|
||||||
|
**Last Updated**: 2026-02-07
|
||||||
|
**Role Version**: Current development
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
This document defines the version maintenance strategy for the ansible-bind9-role, including supported BIND9 versions, OS platforms, branching strategy, and release management policies.
|
||||||
|
|
||||||
|
## Supported Versions
|
||||||
|
|
||||||
|
### BIND9 Versions
|
||||||
|
|
||||||
|
| BIND9 Version | Branch | Status | Support Level | EOL Date |
|
||||||
|
|---------------|--------|--------|---------------|----------|
|
||||||
|
| 9.18.x (LTS) | `main` | ✅ Active | Full support | TBD (following ISC LTS timeline) |
|
||||||
|
| 9.20.x+ | `9.20` | 🚧 In Development | Planned | N/A |
|
||||||
|
|
||||||
|
#### Version Selection Rationale
|
||||||
|
|
||||||
|
- **BIND9 9.18**: Long Term Support (LTS) release from ISC
|
||||||
|
- Maintained by ISC with extended support timeline
|
||||||
|
- Stable feature set suitable for production environments
|
||||||
|
- Current focus of this role
|
||||||
|
|
||||||
|
- **BIND9 9.20+**: Feature release series
|
||||||
|
- Introduces significant configuration changes
|
||||||
|
- New features and modernization
|
||||||
|
- May have shorter support windows per release
|
||||||
|
- Will be supported in separate branch to prevent breaking changes
|
||||||
|
|
||||||
|
### Operating System Support Matrix
|
||||||
|
|
||||||
|
| OS Distribution | Versions | BIND9 9.18 | BIND9 9.20+ | Notes |
|
||||||
|
|----------------|----------|------------|-------------|-------|
|
||||||
|
| Debian | 11 (Bullseye) | ✅ Supported | 🔍 Testing | Current stable |
|
||||||
|
| Debian | 12 (Bookworm) | ✅ Supported | ✅ Supported | Current testing focus |
|
||||||
|
| Debian | 13 (Trixie) | ✅ Supported | ✅ Supported | Future stable |
|
||||||
|
| Ubuntu | 20.04 LTS | ✅ Supported | 🔍 Testing | LTS until 2025 |
|
||||||
|
| Ubuntu | 22.04 LTS | ✅ Supported | ✅ Supported | LTS until 2027 |
|
||||||
|
| Ubuntu | 24.04 LTS | ✅ Supported | ✅ Supported | LTS until 2029 |
|
||||||
|
|
||||||
|
**Legend**:
|
||||||
|
- ✅ Supported: Fully tested and supported
|
||||||
|
- 🔍 Testing: In testing, use with caution
|
||||||
|
- ⚠️ Limited: Basic support only
|
||||||
|
- ❌ Unsupported: Not supported
|
||||||
|
|
||||||
|
### Minimum Requirements
|
||||||
|
|
||||||
|
- **Ansible**: 2.13 or later
|
||||||
|
- **Python**: 3.8 or later (on controller and managed nodes)
|
||||||
|
- **BIND9 Packages**: Must be available in distribution repositories or custom sources
|
||||||
|
|
||||||
|
## Branching Strategy
|
||||||
|
|
||||||
|
### Branch Structure
|
||||||
|
|
||||||
|
```
|
||||||
|
main # BIND9 9.18 LTS (stable)
|
||||||
|
├── 9.20 # BIND9 9.20+ development
|
||||||
|
├── docs # Documentation updates (merged to both)
|
||||||
|
└── feature/* # Feature branches (target appropriate base)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Branch Policies
|
||||||
|
|
||||||
|
#### `main` Branch
|
||||||
|
- **Purpose**: Production-ready code for BIND9 9.18 LTS
|
||||||
|
- **Stability**: Stable, tested releases only
|
||||||
|
- **Breaking Changes**: Not allowed
|
||||||
|
- **Version Tagging**: `v1.x.x`, `v2.x.x`, etc.
|
||||||
|
|
||||||
|
#### `9.20` Branch
|
||||||
|
- **Purpose**: Development for BIND9 9.20+ support
|
||||||
|
- **Stability**: Development/testing phase
|
||||||
|
- **Breaking Changes**: Allowed (vs 9.18 configurations)
|
||||||
|
- **Version Tagging**: `v9.20.x-betaX`, `v9.20.x-rcX`, `v9.20.x`
|
||||||
|
|
||||||
|
#### Feature Branches
|
||||||
|
- **Naming**: `feature/description` or `fix/issue-number`
|
||||||
|
- **Target**: Merge to appropriate base (`main` for 9.18, `9.20` for 9.20+)
|
||||||
|
- **Lifecycle**: Delete after merge
|
||||||
|
|
||||||
|
### Backporting Policy
|
||||||
|
|
||||||
|
#### Security Fixes
|
||||||
|
- **Policy**: MUST be backported to all supported branches
|
||||||
|
- **Timeline**: Within 48 hours of fix
|
||||||
|
- **Priority**: Critical
|
||||||
|
|
||||||
|
#### Bug Fixes
|
||||||
|
- **Policy**: SHOULD be backported if:
|
||||||
|
- Affects both versions
|
||||||
|
- Low risk of introducing regressions
|
||||||
|
- Reasonable effort required
|
||||||
|
- **Timeline**: Within 1 week
|
||||||
|
- **Priority**: High
|
||||||
|
|
||||||
|
#### New Features
|
||||||
|
- **Policy**: Case-by-case evaluation
|
||||||
|
- **Criteria**:
|
||||||
|
- Feature is compatible with both BIND9 versions
|
||||||
|
- Does not introduce breaking changes
|
||||||
|
- Provides significant value
|
||||||
|
- Low implementation complexity
|
||||||
|
- **Timeline**: Best effort
|
||||||
|
- **Priority**: Medium
|
||||||
|
|
||||||
|
#### Breaking Changes
|
||||||
|
- **Policy**: NEVER backported
|
||||||
|
- **Implementation**: Only in version-specific branches
|
||||||
|
|
||||||
|
## Release Management
|
||||||
|
|
||||||
|
### Version Numbering
|
||||||
|
|
||||||
|
Following [Semantic Versioning 2.0.0](https://semver.org/):
|
||||||
|
|
||||||
|
```
|
||||||
|
MAJOR.MINOR.PATCH
|
||||||
|
|
||||||
|
MAJOR: Incompatible API changes (role variable structure changes)
|
||||||
|
MINOR: New functionality in a backwards compatible manner
|
||||||
|
PATCH: Backwards compatible bug fixes
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Examples
|
||||||
|
|
||||||
|
- `v1.2.3`: Patch release for BIND9 9.18
|
||||||
|
- `v2.0.0`: Major release with breaking role variable changes
|
||||||
|
- `v9.20.0-beta1`: Beta release for BIND9 9.20 support
|
||||||
|
- `v9.20.0`: First stable release for BIND9 9.20
|
||||||
|
|
||||||
|
### Release Cadence
|
||||||
|
|
||||||
|
- **Patch Releases**: As needed for bug fixes and security updates
|
||||||
|
- **Minor Releases**: Quarterly (or when significant features accumulate)
|
||||||
|
- **Major Releases**: Annually (or when breaking changes are necessary)
|
||||||
|
|
||||||
|
### Pre-release Testing
|
||||||
|
|
||||||
|
All releases must pass:
|
||||||
|
1. **Molecule tests** across all supported platforms
|
||||||
|
2. **named-checkconf** validation for all example configurations
|
||||||
|
3. **Manual testing** on at least 2 different distributions
|
||||||
|
4. **Documentation review** and update
|
||||||
|
|
||||||
|
### Release Checklist
|
||||||
|
|
||||||
|
- [ ] Update `CHANGELOG.md` with all changes
|
||||||
|
- [ ] Update version in `meta/main.yml`
|
||||||
|
- [ ] Run full molecule test suite
|
||||||
|
- [ ] Update `README.md` if needed
|
||||||
|
- [ ] Create annotated git tag
|
||||||
|
- [ ] Push tag to trigger CI/CD
|
||||||
|
- [ ] Create GitHub/Gitea release with notes
|
||||||
|
- [ ] Announce on project channels
|
||||||
|
|
||||||
|
## Testing Strategy
|
||||||
|
|
||||||
|
### Test Matrix
|
||||||
|
|
||||||
|
#### Molecule Scenarios
|
||||||
|
|
||||||
|
| Scenario | Distribution | BIND9 Version | Purpose |
|
||||||
|
|----------|--------------|---------------|---------|
|
||||||
|
| default | Debian 13 | 9.18 | Primary development testing |
|
||||||
|
| ubuntu2204 | Ubuntu 22.04 | 9.18 | LTS testing |
|
||||||
|
| ubuntu2404 | Ubuntu 24.04 | 9.18/9.20 | Future-proofing |
|
||||||
|
| debian12 | Debian 12 | 9.18 | Stable release testing |
|
||||||
|
|
||||||
|
#### Test Coverage
|
||||||
|
|
||||||
|
- **Syntax validation**: All templates pass `named-checkconf`
|
||||||
|
- **Service management**: Start, stop, reload, restart operations
|
||||||
|
- **Configuration types**: All zone types and statement blocks
|
||||||
|
- **Edge cases**: Empty configurations, complex nested structures
|
||||||
|
- **Upgrade scenarios**: Migration from previous role versions
|
||||||
|
|
||||||
|
### Continuous Integration
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# .github/workflows/test.yml (example structure)
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
molecule:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
distro: [debian12, debian13, ubuntu2204, ubuntu2404]
|
||||||
|
bind_version: ['9.18', '9.20']
|
||||||
|
exclude:
|
||||||
|
# Don't test 9.20 on older distributions
|
||||||
|
- distro: ubuntu2004
|
||||||
|
bind_version: '9.20'
|
||||||
|
```
|
||||||
|
|
||||||
|
## Grammar Tracking and Validation
|
||||||
|
|
||||||
|
### Automated Grammar Comparison
|
||||||
|
|
||||||
|
The role maintains upstream BIND9 grammar files to:
|
||||||
|
1. Detect configuration syntax changes between versions
|
||||||
|
2. Identify deprecated and removed options
|
||||||
|
3. Document breaking changes for users
|
||||||
|
|
||||||
|
#### Grammar Repository Structure
|
||||||
|
|
||||||
|
```
|
||||||
|
bind9-grammar/
|
||||||
|
├── upstream/
|
||||||
|
│ ├── v9.18.44/ # Latest 9.18 LTS grammar
|
||||||
|
│ │ ├── grammar/
|
||||||
|
│ │ │ ├── options
|
||||||
|
│ │ │ ├── *.zoneopt
|
||||||
|
│ │ │ └── parsegrammar.py
|
||||||
|
│ │ └── metadata.json
|
||||||
|
│ └── v9.20.18/ # Latest 9.20 grammar
|
||||||
|
│ ├── grammar/
|
||||||
|
│ └── metadata.json
|
||||||
|
├── 9.18/ # Current 9.18 JSON schemas
|
||||||
|
│ └── *.json
|
||||||
|
└── 9.20/ # Future 9.20 JSON schemas
|
||||||
|
└── *.json
|
||||||
|
```
|
||||||
|
|
||||||
|
### Validation Tools
|
||||||
|
|
||||||
|
#### `scripts/fetch_bind_grammar.py`
|
||||||
|
- Fetches grammar files from Gitea mirror (`Mirrors/bind9`)
|
||||||
|
- Supports version tags (e.g., `v9.18.44`, `v9.20.18`)
|
||||||
|
- Stores upstream grammar for comparison
|
||||||
|
|
||||||
|
#### `scripts/compare_bind_versions.py`
|
||||||
|
- Compares grammar files between versions
|
||||||
|
- Generates `docs/BIND_VERSION_DIFFERENCES.md`
|
||||||
|
- Identifies:
|
||||||
|
- Breaking changes (removed options)
|
||||||
|
- New features (added options)
|
||||||
|
- Modified syntax
|
||||||
|
- Deprecation notices
|
||||||
|
|
||||||
|
### Grammar Update Workflow
|
||||||
|
|
||||||
|
1. **Monitor**: Watch Gitea mirror for new BIND9 releases
|
||||||
|
2. **Fetch**: Run `fetch_bind_grammar.py` for new version
|
||||||
|
3. **Compare**: Run `compare_bind_versions.py` to identify changes
|
||||||
|
4. **Review**: Analyze breaking changes and impact
|
||||||
|
5. **Update**: Modify templates and variables as needed
|
||||||
|
6. **Test**: Run molecule tests with new version
|
||||||
|
7. **Document**: Update `BIND_VERSION_DIFFERENCES.md` and `CHANGELOG.md`
|
||||||
|
|
||||||
|
## Deprecation Policy
|
||||||
|
|
||||||
|
### Deprecation Process
|
||||||
|
|
||||||
|
1. **Announcement**: Document deprecation in `CHANGELOG.md` and `README.md`
|
||||||
|
2. **Warning Period**: Minimum 2 minor releases before removal
|
||||||
|
3. **Alternative**: Provide migration path or alternative approach
|
||||||
|
4. **Removal**: Only in major version releases
|
||||||
|
|
||||||
|
### Current Deprecations
|
||||||
|
|
||||||
|
*None at this time*
|
||||||
|
|
||||||
|
### Planned Deprecations
|
||||||
|
|
||||||
|
*To be determined based on BIND9 9.20 analysis*
|
||||||
|
|
||||||
|
## Version-Specific Features
|
||||||
|
|
||||||
|
### Version Detection
|
||||||
|
|
||||||
|
The role will detect BIND9 version at runtime:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# tasks/main.yml (planned implementation)
|
||||||
|
- name: Detect BIND9 version
|
||||||
|
ansible.builtin.command: named -V
|
||||||
|
register: _bind9_version_output
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: Set BIND9 version facts
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
bind9_version_full: "{{ _bind9_version_output.stdout | regex_search('BIND (\\S+)', '\\1') | first }}"
|
||||||
|
bind9_version_major: "{{ _bind9_version_output.stdout | regex_search('BIND (\\d+)\\.(\\d+)', '\\1') | first }}"
|
||||||
|
bind9_version_minor: "{{ _bind9_version_output.stdout | regex_search('BIND (\\d+)\\.(\\d+)', '\\2') | first }}"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Conditional Configuration
|
||||||
|
|
||||||
|
Templates will use version-aware conditionals:
|
||||||
|
|
||||||
|
```jinja2
|
||||||
|
{# templates/named.conf.options.j2 (planned) #}
|
||||||
|
{% if bind9_version_major | int >= 20 %}
|
||||||
|
{# BIND9 9.20+ specific options #}
|
||||||
|
{% else %}
|
||||||
|
{# BIND9 9.18 options #}
|
||||||
|
{% endif %}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Migration Guidance
|
||||||
|
|
||||||
|
### Migrating from BIND9 9.18 to 9.20
|
||||||
|
|
||||||
|
When BIND9 9.20 support is released:
|
||||||
|
|
||||||
|
1. **Review**: Read `docs/BIND_VERSION_DIFFERENCES.md`
|
||||||
|
2. **Test**: Use `9.20` branch in test environment
|
||||||
|
3. **Update**: Modify playbook variables for deprecated/removed options
|
||||||
|
4. **Validate**: Run `named-checkconf` against generated configuration
|
||||||
|
5. **Deploy**: Upgrade BIND9 package and deploy new configuration
|
||||||
|
6. **Monitor**: Check logs for warnings or errors
|
||||||
|
|
||||||
|
### Migrating Between Role Versions
|
||||||
|
|
||||||
|
See `CHANGELOG.md` for version-specific migration notes.
|
||||||
|
|
||||||
|
## Support and Contribution
|
||||||
|
|
||||||
|
### Getting Help
|
||||||
|
|
||||||
|
- **Issues**: Report bugs and request features on Gitea
|
||||||
|
- **Documentation**: Refer to `README.md` and `CONFIGURATION_GRAMMAR.md`
|
||||||
|
- **Examples**: Check `tests/` directory for working configurations
|
||||||
|
|
||||||
|
### Contributing
|
||||||
|
|
||||||
|
- **Bug Fixes**: Target `main` branch (or `9.20` if version-specific)
|
||||||
|
- **Features**: Discuss in issue before implementation
|
||||||
|
- **Testing**: Ensure molecule tests pass
|
||||||
|
- **Documentation**: Update relevant documentation files
|
||||||
|
|
||||||
|
### Governance
|
||||||
|
|
||||||
|
- **Maintainer**: Primary maintainer approves all merges
|
||||||
|
- **Review**: All changes require review before merge
|
||||||
|
- **Testing**: CI/CD must pass before merge
|
||||||
|
|
||||||
|
## Future Considerations
|
||||||
|
|
||||||
|
### BIND9 9.21+ and Beyond
|
||||||
|
|
||||||
|
- Monitor ISC release announcements
|
||||||
|
- Evaluate need for additional branches
|
||||||
|
- Consider dropping support for EOL'd distributions
|
||||||
|
- Reassess branching strategy if maintenance burden increases
|
||||||
|
|
||||||
|
### Automation Improvements
|
||||||
|
|
||||||
|
- Automated grammar fetching in CI
|
||||||
|
- Automated breaking change detection
|
||||||
|
- Version compatibility testing matrix
|
||||||
|
- Documentation generation from grammar files
|
||||||
|
|
||||||
|
## References
|
||||||
|
|
||||||
|
- [ISC BIND9 Documentation](https://bind9.readthedocs.io/)
|
||||||
|
- [ISC BIND9 Release Schedule](https://www.isc.org/bind/)
|
||||||
|
- [Semantic Versioning](https://semver.org/)
|
||||||
|
- [Ansible Best Practices](https://docs.ansible.com/ansible/latest/tips_tricks/ansible_tips_tricks.html)
|
||||||
|
|
||||||
|
## Changelog
|
||||||
|
|
||||||
|
| Date | Version | Changes |
|
||||||
|
|------|---------|---------|
|
||||||
|
| 2026-02-07 | 1.0 | Initial version support policy |
|
||||||
|
|
||||||
390
scripts/compare_bind_versions.py
Normal file
390
scripts/compare_bind_versions.py
Normal file
@@ -0,0 +1,390 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""
|
||||||
|
Compare BIND9 grammar files between versions to identify breaking changes.
|
||||||
|
|
||||||
|
This script compares grammar files from two BIND9 versions and generates
|
||||||
|
a comprehensive report of:
|
||||||
|
- Removed options (breaking changes)
|
||||||
|
- Added options (new features)
|
||||||
|
- Modified option syntax
|
||||||
|
- Deprecated options
|
||||||
|
|
||||||
|
Usage:
|
||||||
|
python scripts/compare_bind_versions.py \\
|
||||||
|
--version1-dir bind9-grammar/upstream/v9.18.44 \\
|
||||||
|
--version2-dir bind9-grammar/upstream/v9.20.18 \\
|
||||||
|
--output docs/BIND_VERSION_DIFFERENCES.md
|
||||||
|
"""
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
import json
|
||||||
|
import sys
|
||||||
|
from pathlib import Path
|
||||||
|
from typing import Dict, List, Set, Tuple
|
||||||
|
import re
|
||||||
|
|
||||||
|
|
||||||
|
class GrammarComparator:
|
||||||
|
"""Compare BIND9 grammar files between versions."""
|
||||||
|
|
||||||
|
def __init__(self, version1_dir: Path, version2_dir: Path):
|
||||||
|
"""
|
||||||
|
Initialize comparator with two version directories.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
version1_dir: Path to first version's grammar files
|
||||||
|
version2_dir: Path to second version's grammar files
|
||||||
|
"""
|
||||||
|
self.version1_dir = version1_dir
|
||||||
|
self.version2_dir = version2_dir
|
||||||
|
self.version1_name = version1_dir.name
|
||||||
|
self.version2_name = version2_dir.name
|
||||||
|
|
||||||
|
def load_grammar_file(self, file_path: Path) -> Dict:
|
||||||
|
"""Load and parse a grammar file."""
|
||||||
|
try:
|
||||||
|
with open(file_path, 'r', encoding='utf-8') as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
# Parse grammar file into structured data
|
||||||
|
options = self._parse_grammar(content)
|
||||||
|
return options
|
||||||
|
except FileNotFoundError:
|
||||||
|
return {}
|
||||||
|
|
||||||
|
def _parse_grammar(self, content: str) -> Dict[str, str]:
|
||||||
|
"""
|
||||||
|
Parse grammar content into a dictionary of options.
|
||||||
|
|
||||||
|
This is a simplified parser that extracts top-level keywords
|
||||||
|
and their definitions.
|
||||||
|
"""
|
||||||
|
options = {}
|
||||||
|
lines = content.split('\n')
|
||||||
|
|
||||||
|
for line in lines:
|
||||||
|
line = line.strip()
|
||||||
|
if not line or line.startswith('#') or line.startswith('//'):
|
||||||
|
continue
|
||||||
|
|
||||||
|
# Extract keyword and its definition
|
||||||
|
# Pattern: keyword <definition>; or keyword <definition> { ... };
|
||||||
|
match = re.match(r'^([a-z0-9-]+)\s+(.+?)(?:;|$)', line)
|
||||||
|
if match:
|
||||||
|
keyword = match.group(1)
|
||||||
|
definition = match.group(2).strip()
|
||||||
|
|
||||||
|
# Extract flags from comments
|
||||||
|
flags = []
|
||||||
|
if '// may occur multiple times' in line:
|
||||||
|
flags.append('may occur multiple times')
|
||||||
|
if '// deprecated' in line:
|
||||||
|
flags.append('deprecated')
|
||||||
|
if '// obsolete' in line:
|
||||||
|
flags.append('obsolete')
|
||||||
|
if '// not configured' in line:
|
||||||
|
flags.append('not configured')
|
||||||
|
if '// test only' in line:
|
||||||
|
flags.append('test only')
|
||||||
|
if '// experimental' in line:
|
||||||
|
flags.append('experimental')
|
||||||
|
|
||||||
|
options[keyword] = {
|
||||||
|
'definition': definition,
|
||||||
|
'flags': flags,
|
||||||
|
'raw_line': line
|
||||||
|
}
|
||||||
|
|
||||||
|
return options
|
||||||
|
|
||||||
|
def compare_files(self, filename: str) -> Dict:
|
||||||
|
"""
|
||||||
|
Compare a specific grammar file between two versions.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
Dict with added, removed, modified, and deprecated options
|
||||||
|
"""
|
||||||
|
file1 = self.version1_dir / 'grammar' / filename
|
||||||
|
file2 = self.version2_dir / 'grammar' / filename
|
||||||
|
|
||||||
|
options1 = self.load_grammar_file(file1)
|
||||||
|
options2 = self.load_grammar_file(file2)
|
||||||
|
|
||||||
|
keys1 = set(options1.keys())
|
||||||
|
keys2 = set(options2.keys())
|
||||||
|
|
||||||
|
# Identify changes
|
||||||
|
added = keys2 - keys1
|
||||||
|
removed = keys1 - keys2
|
||||||
|
common = keys1 & keys2
|
||||||
|
|
||||||
|
modified = []
|
||||||
|
deprecated_new = []
|
||||||
|
|
||||||
|
for key in common:
|
||||||
|
opt1 = options1[key]
|
||||||
|
opt2 = options2[key]
|
||||||
|
|
||||||
|
# Check if definition changed
|
||||||
|
if opt1['definition'] != opt2['definition']:
|
||||||
|
modified.append({
|
||||||
|
'option': key,
|
||||||
|
'old_definition': opt1['definition'],
|
||||||
|
'new_definition': opt2['definition']
|
||||||
|
})
|
||||||
|
|
||||||
|
# Check if newly deprecated
|
||||||
|
if 'deprecated' not in opt1['flags'] and 'deprecated' in opt2['flags']:
|
||||||
|
deprecated_new.append(key)
|
||||||
|
|
||||||
|
return {
|
||||||
|
'file': filename,
|
||||||
|
'added': sorted(added),
|
||||||
|
'removed': sorted(removed),
|
||||||
|
'modified': modified,
|
||||||
|
'deprecated_new': deprecated_new,
|
||||||
|
'options1_count': len(options1),
|
||||||
|
'options2_count': len(options2)
|
||||||
|
}
|
||||||
|
|
||||||
|
def compare_all(self) -> Dict:
|
||||||
|
"""Compare all grammar files between versions."""
|
||||||
|
# List of grammar files to compare
|
||||||
|
grammar_files = [
|
||||||
|
'options',
|
||||||
|
'forward.zoneopt',
|
||||||
|
'hint.zoneopt',
|
||||||
|
'in-view.zoneopt',
|
||||||
|
'mirror.zoneopt',
|
||||||
|
'primary.zoneopt',
|
||||||
|
'redirect.zoneopt',
|
||||||
|
'secondary.zoneopt',
|
||||||
|
'static-stub.zoneopt',
|
||||||
|
'stub.zoneopt',
|
||||||
|
'delegation-only.zoneopt',
|
||||||
|
'rndc.grammar',
|
||||||
|
]
|
||||||
|
|
||||||
|
results = {}
|
||||||
|
for filename in grammar_files:
|
||||||
|
result = self.compare_files(filename)
|
||||||
|
results[filename] = result
|
||||||
|
|
||||||
|
return results
|
||||||
|
|
||||||
|
def generate_markdown_report(self, results: Dict) -> str:
|
||||||
|
"""Generate a Markdown report from comparison results."""
|
||||||
|
lines = []
|
||||||
|
lines.append(f"# BIND9 Version Differences: {self.version1_name} vs {self.version2_name}")
|
||||||
|
lines.append("")
|
||||||
|
lines.append(f"This document compares BIND9 configuration grammar between {self.version1_name} and {self.version2_name}.")
|
||||||
|
lines.append("")
|
||||||
|
lines.append("Generated automatically by `scripts/compare_bind_versions.py`.")
|
||||||
|
lines.append("")
|
||||||
|
|
||||||
|
# Summary
|
||||||
|
lines.append("## Summary")
|
||||||
|
lines.append("")
|
||||||
|
|
||||||
|
total_added = sum(len(r['added']) for r in results.values())
|
||||||
|
total_removed = sum(len(r['removed']) for r in results.values())
|
||||||
|
total_modified = sum(len(r['modified']) for r in results.values())
|
||||||
|
total_deprecated = sum(len(r['deprecated_new']) for r in results.values())
|
||||||
|
|
||||||
|
lines.append(f"- **New Options**: {total_added}")
|
||||||
|
lines.append(f"- **Removed Options**: {total_removed} ⚠️")
|
||||||
|
lines.append(f"- **Modified Options**: {total_modified}")
|
||||||
|
lines.append(f"- **Newly Deprecated**: {total_deprecated}")
|
||||||
|
lines.append("")
|
||||||
|
|
||||||
|
# Breaking Changes
|
||||||
|
if total_removed > 0:
|
||||||
|
lines.append("## ⚠️ Breaking Changes")
|
||||||
|
lines.append("")
|
||||||
|
lines.append(f"The following options were removed in {self.version2_name} and will cause configuration errors:")
|
||||||
|
lines.append("")
|
||||||
|
|
||||||
|
for filename, result in results.items():
|
||||||
|
if result['removed']:
|
||||||
|
lines.append(f"### {filename}")
|
||||||
|
lines.append("")
|
||||||
|
for option in result['removed']:
|
||||||
|
lines.append(f"- `{option}`")
|
||||||
|
lines.append("")
|
||||||
|
|
||||||
|
# New Features
|
||||||
|
if total_added > 0:
|
||||||
|
lines.append("## ✨ New Features")
|
||||||
|
lines.append("")
|
||||||
|
lines.append(f"The following options were added in {self.version2_name}:")
|
||||||
|
lines.append("")
|
||||||
|
|
||||||
|
for filename, result in results.items():
|
||||||
|
if result['added']:
|
||||||
|
lines.append(f"### {filename}")
|
||||||
|
lines.append("")
|
||||||
|
for option in result['added']:
|
||||||
|
lines.append(f"- `{option}`")
|
||||||
|
lines.append("")
|
||||||
|
|
||||||
|
# Modified Options
|
||||||
|
if total_modified > 0:
|
||||||
|
lines.append("## 🔧 Modified Options")
|
||||||
|
lines.append("")
|
||||||
|
lines.append(f"The following options have syntax changes in {self.version2_name}:")
|
||||||
|
lines.append("")
|
||||||
|
|
||||||
|
for filename, result in results.items():
|
||||||
|
if result['modified']:
|
||||||
|
lines.append(f"### {filename}")
|
||||||
|
lines.append("")
|
||||||
|
for mod in result['modified']:
|
||||||
|
lines.append(f"#### `{mod['option']}`")
|
||||||
|
lines.append("")
|
||||||
|
lines.append(f"**{self.version1_name}**:")
|
||||||
|
lines.append(f"```")
|
||||||
|
lines.append(f"{mod['old_definition']}")
|
||||||
|
lines.append(f"```")
|
||||||
|
lines.append("")
|
||||||
|
lines.append(f"**{self.version2_name}**:")
|
||||||
|
lines.append(f"```")
|
||||||
|
lines.append(f"{mod['new_definition']}")
|
||||||
|
lines.append(f"```")
|
||||||
|
lines.append("")
|
||||||
|
|
||||||
|
# Deprecated Options
|
||||||
|
if total_deprecated > 0:
|
||||||
|
lines.append("## 📋 Newly Deprecated Options")
|
||||||
|
lines.append("")
|
||||||
|
lines.append(f"The following options were marked as deprecated in {self.version2_name}:")
|
||||||
|
lines.append("")
|
||||||
|
|
||||||
|
for filename, result in results.items():
|
||||||
|
if result['deprecated_new']:
|
||||||
|
lines.append(f"### {filename}")
|
||||||
|
lines.append("")
|
||||||
|
for option in result['deprecated_new']:
|
||||||
|
lines.append(f"- `{option}`")
|
||||||
|
lines.append("")
|
||||||
|
|
||||||
|
# File-by-File Comparison
|
||||||
|
lines.append("## Detailed File-by-File Comparison")
|
||||||
|
lines.append("")
|
||||||
|
|
||||||
|
for filename, result in results.items():
|
||||||
|
lines.append(f"### {filename}")
|
||||||
|
lines.append("")
|
||||||
|
lines.append(f"- {self.version1_name}: {result['options1_count']} options")
|
||||||
|
lines.append(f"- {self.version2_name}: {result['options2_count']} options")
|
||||||
|
lines.append(f"- Added: {len(result['added'])}")
|
||||||
|
lines.append(f"- Removed: {len(result['removed'])}")
|
||||||
|
lines.append(f"- Modified: {len(result['modified'])}")
|
||||||
|
lines.append("")
|
||||||
|
|
||||||
|
# Migration Guide
|
||||||
|
if total_removed > 0 or total_deprecated > 0:
|
||||||
|
lines.append("## Migration Guide")
|
||||||
|
lines.append("")
|
||||||
|
lines.append(f"### Migrating from {self.version1_name} to {self.version2_name}")
|
||||||
|
lines.append("")
|
||||||
|
|
||||||
|
if total_removed > 0:
|
||||||
|
lines.append("1. **Remove unsupported options** from your configuration")
|
||||||
|
lines.append(" - Review the Breaking Changes section above")
|
||||||
|
lines.append(" - Check if there are replacement options")
|
||||||
|
lines.append("")
|
||||||
|
|
||||||
|
if total_deprecated > 0:
|
||||||
|
lines.append("2. **Plan for deprecated options**")
|
||||||
|
lines.append(" - These options still work but may be removed in future versions")
|
||||||
|
lines.append(" - Start planning migration to recommended alternatives")
|
||||||
|
lines.append("")
|
||||||
|
|
||||||
|
lines.append("3. **Test your configuration**")
|
||||||
|
lines.append(" - Use `named-checkconf` to validate syntax")
|
||||||
|
lines.append(" - Test in a development environment before production")
|
||||||
|
lines.append("")
|
||||||
|
|
||||||
|
return '\n'.join(lines)
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
"""Main entry point."""
|
||||||
|
parser = argparse.ArgumentParser(
|
||||||
|
description="Compare BIND9 grammar files between versions"
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--version1-dir",
|
||||||
|
type=Path,
|
||||||
|
required=True,
|
||||||
|
help="Directory containing first version's grammar files"
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--version2-dir",
|
||||||
|
type=Path,
|
||||||
|
required=True,
|
||||||
|
help="Directory containing second version's grammar files"
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--output",
|
||||||
|
type=Path,
|
||||||
|
default=Path("docs/BIND_VERSION_DIFFERENCES.md"),
|
||||||
|
help="Output file for Markdown report"
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--json",
|
||||||
|
type=Path,
|
||||||
|
help="Also output raw comparison as JSON"
|
||||||
|
)
|
||||||
|
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
# Validate directories
|
||||||
|
if not args.version1_dir.exists():
|
||||||
|
print(f"Error: {args.version1_dir} does not exist", file=sys.stderr)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
if not args.version2_dir.exists():
|
||||||
|
print(f"Error: {args.version2_dir} does not exist", file=sys.stderr)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
# Perform comparison
|
||||||
|
print(f"Comparing BIND9 versions:")
|
||||||
|
print(f" Version 1: {args.version1_dir.name}")
|
||||||
|
print(f" Version 2: {args.version2_dir.name}")
|
||||||
|
|
||||||
|
comparator = GrammarComparator(args.version1_dir, args.version2_dir)
|
||||||
|
results = comparator.compare_all()
|
||||||
|
|
||||||
|
# Generate and save Markdown report
|
||||||
|
report = comparator.generate_markdown_report(results)
|
||||||
|
|
||||||
|
args.output.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
with open(args.output, 'w', encoding='utf-8') as f:
|
||||||
|
f.write(report)
|
||||||
|
|
||||||
|
print(f"✓ Markdown report saved to: {args.output}")
|
||||||
|
|
||||||
|
# Save JSON if requested
|
||||||
|
if args.json:
|
||||||
|
args.json.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
with open(args.json, 'w', encoding='utf-8') as f:
|
||||||
|
json.dump(results, f, indent=2)
|
||||||
|
print(f"✓ JSON comparison saved to: {args.json}")
|
||||||
|
|
||||||
|
# Print summary
|
||||||
|
total_added = sum(len(r['added']) for r in results.values())
|
||||||
|
total_removed = sum(len(r['removed']) for r in results.values())
|
||||||
|
total_modified = sum(len(r['modified']) for r in results.values())
|
||||||
|
|
||||||
|
print(f"\nComparison Summary:")
|
||||||
|
print(f" Added options: {total_added}")
|
||||||
|
print(f" Removed options: {total_removed}")
|
||||||
|
print(f" Modified options: {total_modified}")
|
||||||
|
|
||||||
|
if total_removed > 0:
|
||||||
|
print(f"\n⚠️ Warning: {total_removed} breaking changes detected!")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
179
scripts/fetch_bind_grammar.py
Normal file
179
scripts/fetch_bind_grammar.py
Normal file
@@ -0,0 +1,179 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""
|
||||||
|
Fetch BIND9 grammar files from Gitea mirror repository for version comparison.
|
||||||
|
|
||||||
|
This script uses the Gitea MCP tools to fetch grammar files from the official
|
||||||
|
BIND9 mirror at git.valid.dk/Mirrors/bind9 for specified version tags.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
from pathlib import Path
|
||||||
|
from typing import Dict, List
|
||||||
|
|
||||||
|
|
||||||
|
# Grammar files to fetch from doc/misc/
|
||||||
|
GRAMMAR_FILES = [
|
||||||
|
"options",
|
||||||
|
"forward.zoneopt",
|
||||||
|
"hint.zoneopt",
|
||||||
|
"in-view.zoneopt",
|
||||||
|
"mirror.zoneopt",
|
||||||
|
"primary.zoneopt",
|
||||||
|
"redirect.zoneopt",
|
||||||
|
"secondary.zoneopt",
|
||||||
|
"static-stub.zoneopt",
|
||||||
|
"stub.zoneopt",
|
||||||
|
"delegation-only.zoneopt",
|
||||||
|
"rndc.grammar",
|
||||||
|
]
|
||||||
|
|
||||||
|
# Support files
|
||||||
|
SUPPORT_FILES = [
|
||||||
|
"parsegrammar.py",
|
||||||
|
"checkgrammar.py",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def fetch_file_content(owner: str, repo: str, ref: str, file_path: str) -> str:
|
||||||
|
"""
|
||||||
|
Fetch file content from Gitea repository.
|
||||||
|
|
||||||
|
This would use mcp_gitea-mcp_get_file_content in the actual MCP environment.
|
||||||
|
For standalone usage, returns placeholder.
|
||||||
|
"""
|
||||||
|
# In MCP environment, this would call:
|
||||||
|
# mcp_gitea-mcp_get_file_content(owner=owner, repo=repo, ref=ref, filePath=file_path)
|
||||||
|
print(f"Would fetch: {owner}/{repo}@{ref}:{file_path}")
|
||||||
|
return ""
|
||||||
|
|
||||||
|
|
||||||
|
def save_grammar_file(content: str, version: str, filename: str, output_dir: Path):
|
||||||
|
"""Save fetched grammar file to local directory."""
|
||||||
|
version_dir = output_dir / version / "grammar"
|
||||||
|
version_dir.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
file_path = version_dir / filename
|
||||||
|
with open(file_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.write(content)
|
||||||
|
|
||||||
|
print(f"Saved: {file_path}")
|
||||||
|
|
||||||
|
|
||||||
|
def fetch_version_grammars(owner: str, repo: str, tag: str, output_dir: Path):
|
||||||
|
"""Fetch all grammar files for a specific version tag."""
|
||||||
|
print(f"\n=== Fetching grammar files for {tag} ===")
|
||||||
|
|
||||||
|
# Create metadata
|
||||||
|
metadata = {
|
||||||
|
"version": tag,
|
||||||
|
"repository": f"{owner}/{repo}",
|
||||||
|
"files": [],
|
||||||
|
}
|
||||||
|
|
||||||
|
# Fetch grammar files
|
||||||
|
for grammar_file in GRAMMAR_FILES:
|
||||||
|
try:
|
||||||
|
file_path = f"doc/misc/{grammar_file}"
|
||||||
|
content = fetch_file_content(owner, repo, tag, file_path)
|
||||||
|
|
||||||
|
if content:
|
||||||
|
save_grammar_file(content, tag, grammar_file, output_dir)
|
||||||
|
metadata["files"].append({
|
||||||
|
"name": grammar_file,
|
||||||
|
"path": file_path,
|
||||||
|
"type": "grammar"
|
||||||
|
})
|
||||||
|
except Exception as e:
|
||||||
|
print(f"Warning: Could not fetch {grammar_file}: {e}")
|
||||||
|
|
||||||
|
# Fetch support files
|
||||||
|
for support_file in SUPPORT_FILES:
|
||||||
|
try:
|
||||||
|
file_path = f"doc/misc/{support_file}"
|
||||||
|
content = fetch_file_content(owner, repo, tag, file_path)
|
||||||
|
|
||||||
|
if content:
|
||||||
|
save_grammar_file(content, tag, support_file, output_dir)
|
||||||
|
metadata["files"].append({
|
||||||
|
"name": support_file,
|
||||||
|
"path": file_path,
|
||||||
|
"type": "support"
|
||||||
|
})
|
||||||
|
except Exception as e:
|
||||||
|
print(f"Warning: Could not fetch {support_file}: {e}")
|
||||||
|
|
||||||
|
# Save metadata
|
||||||
|
metadata_file = output_dir / tag / "metadata.json"
|
||||||
|
with open(metadata_file, 'w', encoding='utf-8') as f:
|
||||||
|
json.dump(metadata, f, indent=2)
|
||||||
|
|
||||||
|
print(f"Metadata saved: {metadata_file}")
|
||||||
|
return metadata
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
"""Main entry point."""
|
||||||
|
parser = argparse.ArgumentParser(
|
||||||
|
description="Fetch BIND9 grammar files from Gitea mirror"
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--owner",
|
||||||
|
default="Mirrors",
|
||||||
|
help="Repository owner (default: Mirrors)"
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--repo",
|
||||||
|
default="bind9",
|
||||||
|
help="Repository name (default: bind9)"
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--tags",
|
||||||
|
nargs="+",
|
||||||
|
default=["v9.18.44", "v9.20.18"],
|
||||||
|
help="Version tags to fetch (default: v9.18.44 v9.20.18)"
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--output-dir",
|
||||||
|
type=Path,
|
||||||
|
default=Path("bind9-grammar/upstream"),
|
||||||
|
help="Output directory for grammar files"
|
||||||
|
)
|
||||||
|
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
print("BIND9 Grammar Fetcher")
|
||||||
|
print("=" * 60)
|
||||||
|
print(f"Repository: {args.owner}/{args.repo}")
|
||||||
|
print(f"Tags: {', '.join(args.tags)}")
|
||||||
|
print(f"Output: {args.output_dir}")
|
||||||
|
|
||||||
|
# Fetch grammars for each version
|
||||||
|
results = {}
|
||||||
|
for tag in args.tags:
|
||||||
|
try:
|
||||||
|
metadata = fetch_version_grammars(
|
||||||
|
args.owner,
|
||||||
|
args.repo,
|
||||||
|
tag,
|
||||||
|
args.output_dir
|
||||||
|
)
|
||||||
|
results[tag] = metadata
|
||||||
|
except Exception as e:
|
||||||
|
print(f"Error fetching {tag}: {e}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
# Save overall summary
|
||||||
|
summary_file = args.output_dir / "fetch_summary.json"
|
||||||
|
with open(summary_file, 'w', encoding='utf-8') as f:
|
||||||
|
json.dump(results, f, indent=2)
|
||||||
|
|
||||||
|
print(f"\n=== Fetch complete ===")
|
||||||
|
print(f"Summary: {summary_file}")
|
||||||
|
print(f"Fetched {len(results)} versions")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
163
scripts/fetch_bind_grammar_mcp.py
Normal file
163
scripts/fetch_bind_grammar_mcp.py
Normal file
@@ -0,0 +1,163 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""
|
||||||
|
Fetch BIND9 grammar files using Gitea MCP integration.
|
||||||
|
|
||||||
|
This script demonstrates how to use mcp_gitea-mcp tools to fetch grammar files.
|
||||||
|
Since we can't directly call MCP tools from Python, this serves as documentation
|
||||||
|
for the manual fetching process that should be done through the MCP interface.
|
||||||
|
|
||||||
|
Usage:
|
||||||
|
The actual fetching should be done through MCP tool calls:
|
||||||
|
|
||||||
|
1. List available tags:
|
||||||
|
mcp_gitea-mcp_list_tags(owner="Mirrors", repo="bind9")
|
||||||
|
|
||||||
|
2. Get directory listing:
|
||||||
|
mcp_gitea-mcp_get_dir_content(owner="Mirrors", repo="bind9",
|
||||||
|
ref="v9.18.44", filePath="doc/misc")
|
||||||
|
|
||||||
|
3. Fetch each grammar file:
|
||||||
|
mcp_gitea-mcp_get_file_content(owner="Mirrors", repo="bind9",
|
||||||
|
ref="v9.18.44",
|
||||||
|
filePath="doc/misc/options")
|
||||||
|
"""
|
||||||
|
|
||||||
|
import json
|
||||||
|
from pathlib import Path
|
||||||
|
from typing import Dict, List
|
||||||
|
|
||||||
|
# Target versions
|
||||||
|
VERSIONS = {
|
||||||
|
"9.18": "v9.18.44",
|
||||||
|
"9.20": "v9.20.18",
|
||||||
|
}
|
||||||
|
|
||||||
|
# Grammar files to fetch
|
||||||
|
GRAMMAR_FILES = [
|
||||||
|
"options",
|
||||||
|
"forward.zoneopt",
|
||||||
|
"hint.zoneopt",
|
||||||
|
"in-view.zoneopt",
|
||||||
|
"mirror.zoneopt",
|
||||||
|
"primary.zoneopt",
|
||||||
|
"redirect.zoneopt",
|
||||||
|
"secondary.zoneopt",
|
||||||
|
"static-stub.zoneopt",
|
||||||
|
"stub.zoneopt",
|
||||||
|
"delegation-only.zoneopt",
|
||||||
|
"rndc.grammar",
|
||||||
|
]
|
||||||
|
|
||||||
|
SUPPORT_FILES = [
|
||||||
|
"parsegrammar.py",
|
||||||
|
"checkgrammar.py",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def generate_fetch_commands() -> List[Dict]:
|
||||||
|
"""Generate MCP tool call commands for fetching grammar files."""
|
||||||
|
commands = []
|
||||||
|
|
||||||
|
for version_name, tag in VERSIONS.items():
|
||||||
|
# List directory command
|
||||||
|
commands.append({
|
||||||
|
"tool": "mcp_gitea-mcp_get_dir_content",
|
||||||
|
"params": {
|
||||||
|
"owner": "Mirrors",
|
||||||
|
"repo": "bind9",
|
||||||
|
"ref": tag,
|
||||||
|
"filePath": "doc/misc"
|
||||||
|
},
|
||||||
|
"description": f"List grammar files for {version_name} ({tag})"
|
||||||
|
})
|
||||||
|
|
||||||
|
# File fetch commands
|
||||||
|
for grammar_file in GRAMMAR_FILES + SUPPORT_FILES:
|
||||||
|
commands.append({
|
||||||
|
"tool": "mcp_gitea-mcp_get_file_content",
|
||||||
|
"params": {
|
||||||
|
"owner": "Mirrors",
|
||||||
|
"repo": "bind9",
|
||||||
|
"ref": tag,
|
||||||
|
"filePath": f"doc/misc/{grammar_file}"
|
||||||
|
},
|
||||||
|
"save_to": f"bind9-grammar/upstream/{tag}/grammar/{grammar_file}",
|
||||||
|
"description": f"Fetch {grammar_file} for {version_name}"
|
||||||
|
})
|
||||||
|
|
||||||
|
return commands
|
||||||
|
|
||||||
|
|
||||||
|
def save_file_structure() -> Dict:
|
||||||
|
"""Generate expected file structure after fetching."""
|
||||||
|
structure = {
|
||||||
|
"bind9-grammar": {
|
||||||
|
"upstream": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for version_name, tag in VERSIONS.items():
|
||||||
|
structure["bind9-grammar"]["upstream"][tag] = {
|
||||||
|
"grammar": {
|
||||||
|
"files": GRAMMAR_FILES + SUPPORT_FILES
|
||||||
|
},
|
||||||
|
"metadata.json": {
|
||||||
|
"version": tag,
|
||||||
|
"version_name": version_name,
|
||||||
|
"repository": "Mirrors/bind9",
|
||||||
|
"fetched_files": len(GRAMMAR_FILES) + len(SUPPORT_FILES)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return structure
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
"""Generate instructions and commands for grammar fetching."""
|
||||||
|
print("=" * 70)
|
||||||
|
print("BIND9 Grammar Fetcher - MCP Integration Guide")
|
||||||
|
print("=" * 70)
|
||||||
|
|
||||||
|
print("\nTarget Versions:")
|
||||||
|
for version_name, tag in VERSIONS.items():
|
||||||
|
print(f" - BIND {version_name}: {tag}")
|
||||||
|
|
||||||
|
print(f"\nFiles to fetch per version: {len(GRAMMAR_FILES)} grammar files + {len(SUPPORT_FILES)} support files")
|
||||||
|
|
||||||
|
print("\n" + "=" * 70)
|
||||||
|
print("MCP TOOL CALL SEQUENCE")
|
||||||
|
print("=" * 70)
|
||||||
|
|
||||||
|
commands = generate_fetch_commands()
|
||||||
|
|
||||||
|
for i, cmd in enumerate(commands, 1):
|
||||||
|
print(f"\n[{i}/{len(commands)}] {cmd['description']}")
|
||||||
|
print(f"Tool: {cmd['tool']}")
|
||||||
|
print(f"Parameters:")
|
||||||
|
for key, value in cmd['params'].items():
|
||||||
|
print(f" - {key}: {value}")
|
||||||
|
if 'save_to' in cmd:
|
||||||
|
print(f"Save to: {cmd['save_to']}")
|
||||||
|
|
||||||
|
print("\n" + "=" * 70)
|
||||||
|
print("EXPECTED FILE STRUCTURE")
|
||||||
|
print("=" * 70)
|
||||||
|
|
||||||
|
structure = save_file_structure()
|
||||||
|
print(json.dumps(structure, indent=2))
|
||||||
|
|
||||||
|
# Save command list
|
||||||
|
output_dir = Path("bind9-grammar/upstream")
|
||||||
|
output_dir.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
commands_file = output_dir / "fetch_commands.json"
|
||||||
|
with open(commands_file, 'w') as f:
|
||||||
|
json.dump(commands, f, indent=2)
|
||||||
|
|
||||||
|
print(f"\nCommand list saved to: {commands_file}")
|
||||||
|
print("\nNote: These commands should be executed through the MCP interface,")
|
||||||
|
print(" not directly from this Python script.")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
78
scripts/process_mcp_result.py
Normal file
78
scripts/process_mcp_result.py
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""
|
||||||
|
Fetch BIND9 grammar files using Gitea MCP tools.
|
||||||
|
This script must be run from an environment where MCP tools are available.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import base64
|
||||||
|
import json
|
||||||
|
import sys
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
# Files to fetch
|
||||||
|
GRAMMAR_FILES = [
|
||||||
|
"options",
|
||||||
|
"forward.zoneopt",
|
||||||
|
"hint.zoneopt",
|
||||||
|
"in-view.zoneopt",
|
||||||
|
"mirror.zoneopt",
|
||||||
|
"primary.zoneopt",
|
||||||
|
"redirect.zoneopt",
|
||||||
|
"secondary.zoneopt",
|
||||||
|
"static-stub.zoneopt",
|
||||||
|
"stub.zoneopt",
|
||||||
|
"delegation-only.zoneopt",
|
||||||
|
"rndc.grammar",
|
||||||
|
"parsegrammar.py",
|
||||||
|
"checkgrammar.py",
|
||||||
|
]
|
||||||
|
|
||||||
|
def save_file_from_mcp_result(result_json: dict, output_path: Path) -> bool:
|
||||||
|
"""Save a file from MCP tool result JSON."""
|
||||||
|
try:
|
||||||
|
if 'Result' in result_json and 'content' in result_json['Result']:
|
||||||
|
content_b64 = result_json['Result']['content']
|
||||||
|
content = base64.b64decode(content_b64).decode('utf-8')
|
||||||
|
|
||||||
|
output_path.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
with open(output_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.write(content)
|
||||||
|
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
except Exception as e:
|
||||||
|
print(f"Error saving {output_path}: {e}", file=sys.stderr)
|
||||||
|
return False
|
||||||
|
|
||||||
|
def main():
|
||||||
|
"""Process stdin JSON from MCP tool calls."""
|
||||||
|
print("Reading MCP tool results from stdin...")
|
||||||
|
|
||||||
|
# Read all input
|
||||||
|
input_data = sys.stdin.read()
|
||||||
|
|
||||||
|
try:
|
||||||
|
result = json.loads(input_data)
|
||||||
|
|
||||||
|
# Determine output path from result metadata
|
||||||
|
if 'Result' in result and 'name' in result['Result']:
|
||||||
|
filename = result['Result']['name']
|
||||||
|
# Output path will be provided as command line argument
|
||||||
|
if len(sys.argv) > 1:
|
||||||
|
output_path = Path(sys.argv[1])
|
||||||
|
if save_file_from_mcp_result(result, output_path):
|
||||||
|
print(f"✓ Saved: {output_path}")
|
||||||
|
sys.exit(0)
|
||||||
|
else:
|
||||||
|
print(f"✗ Failed to save: {output_path}", file=sys.stderr)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
print("✗ Could not determine output path", file=sys.stderr)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
except json.JSONDecodeError as e:
|
||||||
|
print(f"✗ Invalid JSON input: {e}", file=sys.stderr)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
37
scripts/save_grammar_file.py
Normal file
37
scripts/save_grammar_file.py
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""Helper script to save base64-encoded grammar file from MCP tool output."""
|
||||||
|
|
||||||
|
import base64
|
||||||
|
import json
|
||||||
|
import sys
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
def main():
|
||||||
|
if len(sys.argv) != 3:
|
||||||
|
print("Usage: save_grammar_file.py <json_file> <output_path>")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
json_file = Path(sys.argv[1])
|
||||||
|
output_path = Path(sys.argv[2])
|
||||||
|
|
||||||
|
# Read JSON from MCP tool output
|
||||||
|
with open(json_file, 'r') as f:
|
||||||
|
data = json.load(f)
|
||||||
|
|
||||||
|
# Extract and decode base64 content
|
||||||
|
if 'Result' in data and 'content' in data['Result']:
|
||||||
|
content_b64 = data['Result']['content']
|
||||||
|
content = base64.b64decode(content_b64).decode('utf-8')
|
||||||
|
|
||||||
|
# Save to output path
|
||||||
|
output_path.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
with open(output_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.write(content)
|
||||||
|
|
||||||
|
print(f"✓ Saved: {output_path}")
|
||||||
|
else:
|
||||||
|
print(f"✗ Error: No content found in JSON", file=sys.stderr)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
Reference in New Issue
Block a user