OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::DnsOptions Class Reference

All DNS options set with the –dns or –dhcp-option directive. More...

#include <dns_options.hpp>

Inheritance diagram for openvpn::DnsOptions:
[legend]

Public Member Functions

std::string to_string () const
 
Json::Value to_json () const
 
void from_json (const Json::Value &root, const std::string &title)
 
bool operator== (const DnsOptions &at) const =default
 

Public Attributes

bool from_dhcp_options = false
 
std::vector< DnsDomainsearch_domains
 
std::map< int, DnsServerservers
 

Protected Member Functions

DnsServerget_server (const int priority)
 

Detailed Description

All DNS options set with the –dns or –dhcp-option directive.

Definition at line 303 of file dns_options.hpp.

Member Function Documentation

◆ from_json()

void openvpn::DnsOptions::from_json ( const Json::Value &  root,
const std::string &  title 
)
inline

Definition at line 342 of file dns_options.hpp.

Here is the caller graph for this function:

◆ get_server()

DnsServer & openvpn::DnsOptions::get_server ( const int  priority)
inlineprotected

Definition at line 363 of file dns_options.hpp.

Here is the caller graph for this function:

◆ operator==()

bool openvpn::DnsOptions::operator== ( const DnsOptions at) const
default

◆ to_json()

Json::Value openvpn::DnsOptions::to_json ( ) const
inline

Definition at line 329 of file dns_options.hpp.

Here is the caller graph for this function:

◆ to_string()

std::string openvpn::DnsOptions::to_string ( ) const
inline

Definition at line 305 of file dns_options.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ from_dhcp_options

bool openvpn::DnsOptions::from_dhcp_options = false

Definition at line 358 of file dns_options.hpp.

◆ search_domains

std::vector<DnsDomain> openvpn::DnsOptions::search_domains

Definition at line 359 of file dns_options.hpp.

◆ servers

std::map<int, DnsServer> openvpn::DnsOptions::servers

Definition at line 360 of file dns_options.hpp.


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