chiark / gitweb /
Ignore resolv.conf option `trust-ad`
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 May 2024 19:31:14 +0000 (20:31 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 May 2024 21:09:25 +0000 (22:09 +0100)
I went through the resolv.conf(5) manpage and nothing else needs to be
ignored.  But, also, `trust-ad` wasn't listed?

Fixes Debian #1028112

src/setup.c

index 3646968cd7a3b27d9126f412f749212464abae6c..772c727111efb1e5de49d997a7dbecd5fbe74268 100644 (file)
@@ -348,6 +348,8 @@ static void ccf_options(adns_state ads, const char *fn,
        /* adns normally does IPv6 if the application wants it; control
         * this with the adns_af: option if you like */
        WORD_IS("inet6") ||
+       /* adns trusts the resolver anyway */
+       WORD_IS("trust-ad") ||
        /* adns does not do edns0 and this is not a problem */
        WORD_IS("edns0"))
       continue;