unix::resolvconf+x86_64 +linux

unix::resolvconf provides a (basic) reader for the resolv.conf file found on many Unix-like operating systems. This implementation only supports the "nameserver" directive, and it will return a list of IP addresses to use as nameservers.

Index

Functions

fn load() []ip::addr;

Functions

fn load[link]

fn load() []ip::addr;

Reads a list of nameservers from resolv.conf. Aborts the program if the file does not exist, is written in an invalid format, or if any other error occurs.