Connection refused while downloading adlist

i install pi hole on my pi zero w today. it shows that the connection refusion refused while downloading the adslist
os:raspberry pi os
[i] Target: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
[✗] Status: Connection Refused
[✗] List download failed: no cached list available
debug token: https://tricorder.pi-hole.net/e3Sc4sQw/

Is your Pi configured with nameserver 127.0.0.1 or its own IP in below file?

cat /etc/resolv.conf

If so, one of your adlists might be blocking the githubusercontent.com domains.
Can check with below:

pihole -q githubusercontent.com

We bypass blocking when we download the adlists. This was changed a few years ago.

1 Like

Thanks!
Didnt know.

2 Likes

So PIHOLE_DNS_1 from setupVars.conf is queried instead by extending curl with below:

cmd_ext="--resolve $domain:$port:$ip $cmd_ext"

That could still end up in connection refused if the router does some kind of DNS redirecting/DNS filter/etc and the queries end up at Pi-hole again that might be blocking.
Something to consider :wink:

I just installed pihole today. There is not even a single blocked site.

1 Like

Ok.
Its just that some new users can be a bit overzealous when they start filling up Pi-hole with lots of adlists bc they think thats good while most often its not.

EDIT: Ow do you have some kind of DNS redirect/filter settings on your router applied?
The name can differ.

I have connected the pi to my mobile hotspot. The website itself isnt accessable.

You mentioned in another post that you're in India. Is this the problem then?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.