+ if (OPTION_STARTS("adns_checkc:")) {
+ if (!strcmp(rhs,"none")) {
+ ads->iflags &= ~adns_if_checkc_freq;
+ ads->iflags |= adns_if_checkc_entex;
+ } else if (!strcmp(rhs,"entex")) {
+ ads->iflags &= ~adns_if_checkc_freq;
+ ads->iflags |= adns_if_checkc_entex;
+ } else if (!strcmp(rhs,"freq")) {
+ ads->iflags |= adns_if_checkc_freq;
+ } else {
+ configparseerr(ads,fn,lno, "option adns_checkc has bad value `%s' "
+ "(must be none, entex or freq", rhs);
+ }
+ continue;
+ }
+ if (OPTION_STARTS("adns_af:")) {
+ word= rhs;
+ ads->iflags &= ~adns_if_afmask;
+ if (strcmp(word,"any")) for (;;) {
+ i= strcspn(word,",");
+ if (i>=4 && !memcmp(word,"ipv4",4))
+ ads->iflags |= adns_if_permit_ipv4;
+ else if (i>=4 && !memcmp(word,"ipv6",4))
+ ads->iflags |= adns_if_permit_ipv6;
+ else {
+ configparseerr(ads,fn,lno, "option adns_af has bad value `%.*s' "
+ "(must be `any' or list {`ipv4',`ipv6'},...)",
+ i, word);
+ break;
+ }
+ if (!word[i]) break;
+ word= word + i + 1;
+ }
+ continue;
+ }
+ if (OPTION_IS("adns_ignoreunkcfg")) {
+ ads->config_report_unknown=0;
+ continue;
+ }
+ if (/* adns's query strategy is not configurable */
+ OPTION_STARTS("timeout:") ||
+ OPTION_STARTS("attempts:") ||
+ OPTION_IS("rotate") ||
+ /* adns provides the application with knob for this */
+ OPTION_IS("no-check-names") ||
+ /* adns normally does IPv6 if the application wants it; control
+ * this with the adns_af: option if you like */
+ OPTION_IS("inet6") ||
+ /* adns does not do edns0 and this is not a problem */
+ OPTION_IS("edns0"))
+ continue;
+ if (ads->config_report_unknown)
+ adns__diag(ads,-1,0,"%s:%d: unknown option `%.*s'", fn,lno, l,word);