summaryrefslogtreecommitdiff
path: root/src/skadns
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-07-12 16:53:59 +0000
committerLaurent Bercot <ska@appnovation.com>2023-07-12 16:53:59 +0000
commit207845f50a8fb54fe8e584928078dc3687399caf (patch)
treef58eac67edc2dbaba13a48442a2093f76e869991 /src/skadns
parent8cf671e973a4ea2ef7c9ca1321531a7ceeaa5073 (diff)
downloads6-dns-207845f50a8fb54fe8e584928078dc3687399caf.tar.xz
Pass on all clients, add hosts support wherever applicable
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/skadns')
-rw-r--r--src/skadns/skadns_startf.c1
-rw-r--r--src/skadns/skadnsd.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/skadns/skadns_startf.c b/src/skadns/skadns_startf.c
index bf20edd..e9fadd3 100644
--- a/src/skadns/skadns_startf.c
+++ b/src/skadns/skadns_startf.c
@@ -2,6 +2,7 @@
#include <skalibs/posixplz.h>
#include <skalibs/textclient.h>
+
#include <s6-dns/skadns.h>
int skadns_startf (skadns_t *a, tain const *deadline, tain *stamp)
diff --git a/src/skadns/skadnsd.c b/src/skadns/skadnsd.c
index 8714d2b..0909dfa 100644
--- a/src/skadns/skadnsd.c
+++ b/src/skadns/skadnsd.c
@@ -115,7 +115,9 @@ int main (void)
if (ndelay_on(1) < 0) strerr_diefu2sys(111, "ndelay_on ", "1") ;
if (!sig_ignore(SIGPIPE)) strerr_diefu1sys(111, "ignore SIGPIPE") ;
tain_now_set_stopwatch_g() ;
- if (!s6dns_init()) strerr_diefu1sys(111, "s6dns_init") ;
+
+ if (!s6dns_rci_init(&s6dns_rci_here, "/etc/resolv.conf"))
+ strerr_diefu1sys(111, "initialize structures from /etc/resolv.conf") ;
{
tain deadline ;