Registry / config / resolv-conf

resolv-conf

JSON →
library0.7.6rscratesunverified

The resolv.conf file parser.

# Cargo.toml [dependencies] resolv-conf = "0.7.6"
INSTALL
IMPORT
SIG · RESOLV-CONF
R
resolv-conf
configrustv0.7.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ResolvConf
use resolv_conf::ResolvConf;

Parse /etc/resolv.conf file.

use resolv_conf::ResolvConf; use std::fs; fn main() { let contents = fs::read_to_string("/etc/resolv.conf").unwrap(); let config = ResolvConf::parse(&contents).unwrap(); println!("Nameservers: {:?}", config.nameservers); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.7.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
43 hits · last 30 days
node
38
OpenAI (training)
1
Resources
resolv-conf — cargo add resolv-conf · libregistry