mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Allow --cache-rr=ANY with the obvious meaning.
This commit is contained in:
@@ -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
|
||||
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
|
||||
is allowed.
|
||||
is allowed. Use --cache-rr=ANY to enable caching for all RR-types.
|
||||
.TP
|
||||
.B \-r, --resolv-file=<file>
|
||||
Read the IP addresses of the upstream nameservers from <file>, instead of
|
||||
|
||||
@@ -119,7 +119,7 @@ int rr_on_list(struct rrlist *list, unsigned short rr)
|
||||
{
|
||||
while (list)
|
||||
{
|
||||
if (list->rr == rr)
|
||||
if (list->rr == rr || list->rr == T_ANY)
|
||||
return 1;
|
||||
|
||||
list = list->next;
|
||||
|
||||
Reference in New Issue
Block a user