Skip to main content

add_server

Function add_server 

Source
pub fn add_server(
    path: Option<PathBuf>,
    server: DnsServerConfig,
) -> Result<PathBuf>
Expand description

Append a new server entry to the config file. Creates the file if it does not exist yet. Existing file content — including comments and formatting — is preserved; only the new [[servers]] block is appended.