From 207845f50a8fb54fe8e584928078dc3687399caf Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 12 Jul 2023 16:53:59 +0000 Subject: Pass on all clients, add hosts support wherever applicable Signed-off-by: Laurent Bercot --- src/libs6dns/s6dns_init.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libs6dns/s6dns_init.c') diff --git a/src/libs6dns/s6dns_init.c b/src/libs6dns/s6dns_init.c index 7f98d13..10dcbf5 100644 --- a/src/libs6dns/s6dns_init.c +++ b/src/libs6dns/s6dns_init.c @@ -1,10 +1,16 @@ /* ISC license. */ #include +#include #include int s6dns_init (void) { if (!s6dns_rci_init(&s6dns_rci_here, "/etc/resolv.conf")) return 0 ; + if (s6dns_hosts_init(&s6dns_hosts_here, "/etc/hosts", "/etc/hosts.cdb", "/tmp/hosts.cdb") == -1) goto err ; return 1 ; + + err: + s6dns_rci_free(&s6dns_rci_here) ; + return 0 ; } -- cgit v1.2.3