Perform Secure-by-default or Woefully Insecure ‘DNS’ Queries
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.

40 lines
1.3KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/resolver.R
  3. \name{gdns_set_hosts}
  4. \alias{gdns_set_hosts}
  5. \title{Initialized the context's local names namespace with values from the given hosts file.}
  6. \usage{
  7. gdns_set_hosts(gctx, hosts_file)
  8. }
  9. \arguments{
  10. \item{gctx}{gdns resolver context created with \code{\link[=gdns_resolver]{gdns_resolver()}}}
  11. \item{hosts_file}{path to a valid \code{hosts} file (e.g. "\verb{/etc/hosts}). This value
  12. will be \code{\link[=path.expand]{path.expand()}}ed.}
  13. }
  14. \description{
  15. Initialized the context's local names namespace with values from the given hosts file.
  16. }
  17. \examples{
  18. x <- gdns_context()
  19. gdns_set_hosts(x, "/etc/hosts")
  20. }
  21. \seealso{
  22. Other context functions:
  23. \code{\link{gdns_get_hosts}()},
  24. \code{\link{gdns_get_resolution_type}()},
  25. \code{\link{gdns_get_resolvconf}()},
  26. \code{\link{gdns_get_root_servers}()},
  27. \code{\link{gdns_get_timeout}()},
  28. \code{\link{gdns_get_tls_ca_file}()},
  29. \code{\link{gdns_get_tls_ca_path}()},
  30. \code{\link{gdns_get_transports}()},
  31. \code{\link{gdns_set_resolution_type}()},
  32. \code{\link{gdns_set_round_robin_upstreams}()},
  33. \code{\link{gdns_set_timeout}()},
  34. \code{\link{gdns_set_tls_ca_file}()},
  35. \code{\link{gdns_set_tls_ca_path}()},
  36. \code{\link{gdns_update_resolvers}()}
  37. }
  38. \concept{context functions}