parse_rndc_conf

Function parse_rndc_conf 

Source
pub fn parse_rndc_conf(path: &str) -> Result<RndcConfig>
Expand description

Parse RNDC configuration from rndc.conf file

§Arguments

  • path - Path to rndc.conf file (typically /etc/bind/rndc.conf or /etc/rndc.conf)

§Returns

RndcConfig with server, algorithm, and secret

§Errors

Returns an error if the file cannot be read or parsed