Use new shortcut cache-rr=ANY to enable caching of all query types

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2023-04-01 14:47:45 +02:00
parent 46bc3c9161
commit a1332582ff
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD
1 changed files with 3 additions and 10 deletions

View File

@ -507,16 +507,9 @@ bool __attribute__((const)) write_dnsmasq_config(struct config *conf, bool test_
fputs("\n", pihole_conf);
}
// Add option for caching all names RRNAMEs that are not already cached
// by default
fputs("# Cache all names RRNAMEs that are not already cached by default\n", pihole_conf);
fputs("cache-rr=NS,MD,MF,SOA,MB,MG,MR,NULL,WKS,PTR,HINFO,MINFO,MX,TXT,RP,"
"AFSDB,X25,ISDN,RT,NSAP,NSAP_PTR,SIG,KEY,PX,GPOS,LOC,NXT,EID,NIMLOC,"
"ATMA,NAPTR,KX,CERT,A6,DNAME,SINK,OPT,APL,DS,SSHFP,IPSECKEY,RRSIG,NSEC,"
"DNSKEY,DHCID,NSEC3,NSEC3PARAM,TLSA,SMIMEA,HIP,NINFO,RKEY,TALINK,CDS,"
"CDNSKEY,OPENPGPKEY,CSYNC,ZONEMD,SVCB,HTTPS,SPF,UINFO,UID,GID,UNSPEC,"
"NID,L32,L64,LP,EUI48,EUI64,TKEY,TSIG,IXFR,AXFR,MAILB,MAILA,ANY,URI,"
"CAA,AVC,DOA,AMTRELAY,TA,DLV\n", pihole_conf);
// Add option for caching all DNS records
fputs("# Cache all DNS records\n", pihole_conf);
fputs("cache-rr=ANY\n", pihole_conf);
// Flush config file to disk
fflush(pihole_conf);