gdns_set_hosts.Rd
Initialized the context's local names namespace with values from the given hosts file.
gdns_set_hosts(gctx, hosts_file)
gctx | gdns resolver context created with |
---|---|
hosts_file | path to a valid |
Other context functions:
gdns_get_hosts()
,
gdns_get_resolution_type()
,
gdns_get_resolvconf()
,
gdns_get_root_servers()
,
gdns_get_timeout()
,
gdns_get_tls_ca_file()
,
gdns_get_tls_ca_path()
,
gdns_get_transports()
,
gdns_set_resolution_type()
,
gdns_set_round_robin_upstreams()
,
gdns_set_timeout()
,
gdns_set_tls_ca_file()
,
gdns_set_tls_ca_path()
,
gdns_update_resolvers()
x <- gdns_context() gdns_set_hosts(x, "/etc/hosts")