lwres_config(3)

lwres_config3

Lightweight resolver configuration

Usage

#include <lwres/lwres.h>

void lwres_conf_init(lwres_context_t *ctx);

void lwres_conf_clear(lwres_context_t *ctx);

lwres_result_t lwres_conf_parse(lwres_context_t *ctx, const char *filename);

lwres_result_t lwres_conf_print(lwres_context_t *ctx, FILE *fp);

lwres_conf_t * lwres_conf_get(lwres_context_t *ctx);

Overview

lwres_conf_init() creates an empty lwres_conf_t structure for lightweight resolver context ctx.

lwres_conf_clear() frees up all the internal memory used by that lwres_conf_t structure in resolver context ctx.

lwres_conf_parse() opens the file filename and parses it to initialise the resolver context ctx's lwres_conf_t structure.

lwres_conf_print() prints the lwres_conf_t structure for resolver context ctx to the FILEfp.

Return values

lwres_conf_parse() returns LWRES_R_SUCCESS if it successfully read and parsed filename. It returns LWRES_R_FAILURE if filename could not be opened or contained incorrect resolver statements.

lwres_conf_print() returns LWRES_R_SUCCESS unless an error occurred when converting the network addresses to a numeric host address string. If this happens, the function returns LWRES_R_FAILURE.

Files

/etc/resolv.conf

Releases

145 releases since Mac OS X 10.3; the text changed 10 times.

  1. 10.3–10.4.8
  2. 10.4.8–10.4.9
  3. 10.4.10–10.4.11
  4. 10.5–10.5.8
  5. 10.6–10.6.8
  6. 10.7–10.7.4
  7. 10.7.5
  8. 10.8–10.8.1
  9. 10.8.2–10.12.6
  10. 10.13–10.13.3
  11. 10.13.4–26.5

Author

Internet Systems Consortium, Inc.

From bind9 65 in macOS 26.5. Parsed by carta from the page's man source.