diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-07-12 16:53:59 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-07-12 16:53:59 +0000 |
commit | 207845f50a8fb54fe8e584928078dc3687399caf (patch) | |
tree | f58eac67edc2dbaba13a48442a2093f76e869991 /src/clients/s6-dnsqr.c | |
parent | 8cf671e973a4ea2ef7c9ca1321531a7ceeaa5073 (diff) | |
download | s6-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/clients/s6-dnsqr.c')
-rw-r--r-- | src/clients/s6-dnsqr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/clients/s6-dnsqr.c b/src/clients/s6-dnsqr.c index 290b06a..d8424e5 100644 --- a/src/clients/s6-dnsqr.c +++ b/src/clients/s6-dnsqr.c @@ -3,12 +3,14 @@ #include <string.h> #include <stdint.h> #include <errno.h> + #include <skalibs/types.h> #include <skalibs/strerr.h> #include <skalibs/sgetopt.h> #include <skalibs/buffer.h> #include <skalibs/genwrite.h> #include <skalibs/tai.h> + #include <s6-dns/s6dns.h> #include <s6-dns/s6dns-analyze.h> #include <s6-dns/s6dns-debug.h> @@ -54,7 +56,9 @@ int main (int argc, char const *const *argv) if (debuglevel & 2) { dbh.pre_send = &s6dns_debug_dumpdt_pre_send ; dbh.post_send = &s6dns_debug_dumpdt_post_send ; } tain_now_set_stopwatch_g() ; tain_add_g(&deadline, &deadline) ; - 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") ; + if (!s6dns_resolve_core_r_g(&d, qtype, &s6dns_engine_here, &s6dns_rci_here.servers, &dbh, &deadline)) { char fmt[UINT16_FMT] ; |