ldns_get_rr_list_hosts_frm_fp(3)

ldns_get_rr_list_hosts_frm_fp3

Parse /etc/hosts file

Usage

#include <stdint.h>
#include <stdbool.h>

#include <ldns/ldns.h>

ldns_rr_list* ldns_get_rr_list_hosts_frm_file(char *filename);

ldns_rr_list* ldns_get_rr_list_hosts_frm_fp(FILE *fp);

ldns_rr_list* ldns_get_rr_list_hosts_frm_fp_l(FILE *fp, int *line_nr);

Overview

ldns_get_rr_list_hosts_frm_file() wade through fp (a /etc/hosts like file) and return a rr_list containing all the defined hosts in there .br filename: the filename to use (NULL for /etc/hosts) .br Returns ldns_rr_list * with the names

ldns_get_rr_list_hosts_frm_fp() wade through fp (a /etc/hosts like file) and return a rr_list containing all the defined hosts in there .br fp: the file pointer to use .br Returns ldns_rr_list * with the names

ldns_get_rr_list_hosts_frm_fp_l() wade through fp (a /etc/hosts like file) and return a rr_list containing all the defined hosts in there .br fp: the file pointer to use .br line_nr: pointer to an integer containing the current line number (for debugging purposes) .br Returns ldns_rr_list * with the names

Remarks

This manpage was automatically generated from the ldns source code.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 5 times.

  1. 5.0
  2. 6.0–7
  3. 8
  4. 9–10
  5. 11–12
  6. 13–Arch

Author

The ldns team at NLnet Labs.

Reporting bugs

Please report bugs to [email protected] or on GitHub at https://github.com/NLnetLabs/ldns/issues

From ldns 1.9.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.