Skip to content

Don't prefetch always blocked entries #529

@bcookatpcsd

Description

@bcookatpcsd

I saw this in the logs:

[2022-05-22 19:21:35] ERROR can't prefetch 'lcprd1.samsungcloudsolution.net' can't resolve request via upstream server 127.0.0.1:52: read udp 127.0.0.1:16898->127.0.0.1:52: read: connection refused

and was happy to see the prefetch entry.. but

  9 upstream:                                                                       
    8   default:                                                                      
    7     - 127.0.0.1:52                                                              
    6   1.2.3.0/14:                                                                 
    5     - https://dns.nextdns.io/123abc/vultr-blocky-doh                            
    4     - tcp-tls:vultr-blocky-dot-123abc.dns.nextdns.io:853                        
    3   4.5.6.0/16:                                                                
    2     - https://dns.nextdns.io/123abc/vultr-blocky-doh                            
    1     - tcp-tls:vultr-blocky-dot-123abc.dns.nextdns.io:853                        
  10    172.16.42.0/24:                                                               
    1     - https://dns.nextdns.io/123abc/vultr-blocky-doh                            
    2     - tcp-tls:vultr-blocky-dot-123abc.dns.nextdns.io:853                        
    3   172.17.0.0/16:                                                                
    4     - https://dns.nextdns.io/123abc/vultr-blocky-doh                            
    5     - tcp-tls:vultr-blocky-dot-123abc.dns.nextdns.io:853                        
    6   192.0.2.254/32:                                                               
    7     - https://dns.nextdns.io/123abc/vultr-blocky-doh                            
    8     - tcp-tls:vultr-blocky-dot-123abc.dns.nextdns.io:853                        
    9 blocking:

(if there is a better way to do ACL's - please let me know)

So prefetching works from the default entry..

I added an entry for 127.0.0.1/32 as that's where prefetch seems to come from..

So the oddity/casualty seems to be that entry never should have been included in the prefetch..

[2022-05-22 19:35:31]  INFO queryLog: query resolved answer=A (0.0.0.0) client_ip=1.2.3.4 client_names=1.2.3.4 duration_ms=0 question=A (lcprd1.samsungcloudsolution.net.) response_code=NOERROR response_reason=BLOCKED (ads)

This is by no means a problem, it just was not what I was expecting.

Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions