pub fn parse_showzone(input: &str) -> ParseResult<ZoneConfig>Expand description
Parse rndc showzone output
ยงExamples
use bindcar::rndc_parser::parse_showzone;
let output = r#"zone "example.com" { type primary; file "/var/cache/bind/example.com.zone"; };"#;
let config = parse_showzone(output).unwrap();
assert_eq!(config.zone_name, "example.com");