огледало от https://gitlab.com/hrbrmstr/clandnstine.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.3 KiB
39 lines
1.3 KiB
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/resolver.R
|
|
\name{gdns_set_hosts}
|
|
\alias{gdns_set_hosts}
|
|
\title{Initialized the context's local names namespace with values from the given hosts file.}
|
|
\usage{
|
|
gdns_set_hosts(gctx, hosts_file)
|
|
}
|
|
\arguments{
|
|
\item{gctx}{gdns resolver context created with \code{\link[=gdns_resolver]{gdns_resolver()}}}
|
|
|
|
\item{hosts_file}{path to a valid \code{hosts} file (e.g. "\verb{/etc/hosts}). This value
|
|
will be \code{\link[=path.expand]{path.expand()}}ed.}
|
|
}
|
|
\description{
|
|
Initialized the context's local names namespace with values from the given hosts file.
|
|
}
|
|
\examples{
|
|
x <- gdns_context()
|
|
gdns_set_hosts(x, "/etc/hosts")
|
|
}
|
|
\seealso{
|
|
Other context functions:
|
|
\code{\link{gdns_get_hosts}()},
|
|
\code{\link{gdns_get_resolution_type}()},
|
|
\code{\link{gdns_get_resolvconf}()},
|
|
\code{\link{gdns_get_root_servers}()},
|
|
\code{\link{gdns_get_timeout}()},
|
|
\code{\link{gdns_get_tls_ca_file}()},
|
|
\code{\link{gdns_get_tls_ca_path}()},
|
|
\code{\link{gdns_get_transports}()},
|
|
\code{\link{gdns_set_resolution_type}()},
|
|
\code{\link{gdns_set_round_robin_upstreams}()},
|
|
\code{\link{gdns_set_timeout}()},
|
|
\code{\link{gdns_set_tls_ca_file}()},
|
|
\code{\link{gdns_set_tls_ca_path}()},
|
|
\code{\link{gdns_update_resolvers}()}
|
|
}
|
|
\concept{context functions}
|
|
|