DwmDns-0.1.0
Dwm::Dns::ResolvConf Class Reference

Encapsulates the contents of a resolver configuration file (/etc/rc.conf). More...

#include <DwmDnsResolvConf.hh>

Public Member Functions

 ResolvConf (const std::string &filename="/etc/resolv.conf")
 Construct from a resolver configuration file.
 
std::vector< NameServer > & Nameservers ()
 Return the vector of nameservers.
 
const std::string & Domain () const
 Returns the local domain.
 
const std::string & Domain (const std::string &domain)
 Sets and returns the local domain.
 
const std::vector< std::string > & SearchList () const
 Returns the domain search list.
 

Detailed Description

Encapsulates the contents of a resolver configuration file (/etc/rc.conf).


The documentation for this class was generated from the following file: