Allow --cache-rr=ANY with the obvious meaning.

This commit is contained in:
Simon Kelley
2023-03-31 18:49:22 +01:00
parent 138e1e2a2d
commit c244d92d8a
2 changed files with 2 additions and 2 deletions

View File

@@ -384,7 +384,7 @@ By default, dnsmasq caches A, AAAA, CNAME and SRV DNS record types.
This option adds other record types to the cache. The RR-type can be given This option adds other record types to the cache. The RR-type can be given
as a name such as TXT or MX or a decimal number. A single --cache-rr option as a name such as TXT or MX or a decimal number. A single --cache-rr option
can take a comma-separated list or RR-types and more than one --cache-rr option can take a comma-separated list or RR-types and more than one --cache-rr option
is allowed. is allowed. Use --cache-rr=ANY to enable caching for all RR-types.
.TP .TP
.B \-r, --resolv-file=<file> .B \-r, --resolv-file=<file>
Read the IP addresses of the upstream nameservers from <file>, instead of Read the IP addresses of the upstream nameservers from <file>, instead of

View File

@@ -119,7 +119,7 @@ int rr_on_list(struct rrlist *list, unsigned short rr)
{ {
while (list) while (list)
{ {
if (list->rr == rr) if (list->rr == rr || list->rr == T_ANY)
return 1; return 1;
list = list->next; list = list->next;