Expand description
RNDC configuration data types
This module defines the data structures for representing BIND9 rndc.conf files.
§Examples
use bindcar::rndc_conf_types::{RndcConfFile, KeyBlock, OptionsBlock};
let mut conf = RndcConfFile::new();
conf.keys.insert(
"rndc-key".to_string(),
KeyBlock::new(
"rndc-key".to_string(),
"hmac-sha256".to_string(),
"dGVzdC1zZWNyZXQ=".to_string(),
),
);
conf.options.default_key = Some("rndc-key".to_string());
let serialized = conf.to_conf_file();Structs§
- KeyBlock
- Key block: authentication credentials
- Options
Block - Options block: global configuration
- Rndc
Conf File - Complete RNDC configuration file
- Server
Block - Server block: server-specific configuration
Enums§
- Server
Address - Server address: hostname or IP address