pub(crate) struct Args {
pub(crate) domain: DomainName,
pub(crate) qtype: QueryType,
pub(crate) authoritative_only: bool,
pub(crate) protocol_mode: ProtocolMode,
pub(crate) upstream_dns_port: u16,
pub(crate) forward_address: Option<SocketAddr>,
pub(crate) hosts_file: Vec<PathBuf>,
pub(crate) hosts_dir: Vec<PathBuf>,
pub(crate) zone_file: Vec<PathBuf>,
pub(crate) zones_dir: Vec<PathBuf>,
}
Expand description
DNS recursive lookup utility
Fields§
§domain: DomainName
Domain name to resolve
qtype: QueryType
Query type to resolve
Only answer queries for which this configuration is authoritative: do not perform recursive or forwarding resolution
protocol_mode: ProtocolMode
How to choose between connecting to upstream nameservers over IPv4 or IPv6 when acting as a recursive resolver: one of ‘only-v4’, ‘prefer-v4’, ‘prefer-v6’, ‘only-v6’
upstream_dns_port: u16
Which port to query upstream nameservers over when acting as a recursive resolver
forward_address: Option<SocketAddr>
Act as a forwarding resolver, not a recursive resolver: forward queries
which can’t be answered from local state to this nameserver (in
ip:port
form)
hosts_file: Vec<PathBuf>
Path to a hosts file, can be specified more than once
hosts_dir: Vec<PathBuf>
Path to a directory to read hosts files from, can be specified more than once
zone_file: Vec<PathBuf>
Path to a zone file, can be specified more than once
zones_dir: Vec<PathBuf>
Path to a directory to read zone files from, can be specified more than once
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command
] so it can instantiate self
via
[FromArgMatches::update_from_arg_matches_mut
] Read moreSource§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.