|
From: | @rockdaboot |
Subject: | Re: wget2 | Draft: WIP: Add c-ares support for quickly fill DNS cache in background (!444) |
Date: | Sun, 03 Jul 2022 11:26:15 +0000 |
Tim Rühsen started a new discussion on libwget/async_dns.c: https://gitlab.com/gnuwget/wget2/-/merge_requests/444#note_1014130137 > +#include <ares.h> > +#include <stdio.h> > +#include <stdlib.h> > +#include <sys/socket.h> > +#include <arpa/inet.h> > +#include <netinet/in.h> > +#include <netdb.h> > +#include <stdarg.h> > +#include <string.h> > +#include <ctype.h> > +#include <unistd.h> > + > +#include <wget.h> > +#include "private.h" > + > +#define SERVERS "1.0.0.1,8.8.8.8" /* DNS server to use (Cloudflare & > Google) */ Let's not hard-code vendor-specific servers/ips in the library itself. What alternatives do we have ? (throw an error if list of resolvers is empty ? find / use the default resolver ?) -- Reply to this email directly or view it on GitLab: https://gitlab.com/gnuwget/wget2/-/merge_requests/444#note_1014130137 You're receiving this email because of your account on gitlab.com.
[Prev in Thread] | Current Thread | [Next in Thread] |