Expand description
RNDC configuration file parser
This module provides parsers for BIND9 rndc.conf files using nom.
§Examples
use bindcar::rndc_conf_parser::parse_rndc_conf_str;
let conf_str = r#"
key "rndc-key" {
algorithm hmac-sha256;
secret "dGVzdC1zZWNyZXQ=";
};
options {
default-server localhost;
default-key "rndc-key";
};
"#;
let config = parse_rndc_conf_str(conf_str).unwrap();
assert_eq!(config.keys.len(), 1);Enums§
- Rndc
Conf Parse Error - RNDC configuration parse errors
Functions§
- parse_
rndc_ conf_ file - Parse rndc.conf from file with include resolution
- parse_
rndc_ conf_ str - Parse rndc.conf from string