Skip to main content

detect_dns

Function detect_dns 

Source
pub fn detect_dns() -> Vec<String>
Expand description

Returns the list of configured DNS nameserver addresses.

Linux/macOS: parses nameserver lines from /etc/resolv.conf. Windows: runs PowerShell Get-DnsClientServerAddress. Returns an empty Vec if nothing is found.