Initialized the context's local names namespace with values from the given hosts file.

gdns_set_hosts(gctx, hosts_file)

Arguments

gctx

gdns resolver context created with gdns_resolver()

hosts_file

path to a valid hosts file (e.g. "/etc/hosts). This value will be path.expand()ed.

See also

Examples

x <- gdns_context()
gdns_set_hosts(x, "/etc/hosts")