Help - cannot connect out to the web

I have pihole installed in docker/portainer. I can log on to pihole, but when I use the IP as DNS, I can't load any web pages.
Any suggestions??

Which IP?
How did you create your container? Compose file? docker run command? Portainer interface?
A lot of questions... not enough information.

Please upload a debug log and post just the token URL that is generated after the log is uploaded.
Do it through the Web interface: Tools > Generate Debug Log (remember to use the upload checkbox).

Also, post the compose file or docker run command used to start the container.
If you used Portainer interface, post at least: the image tag, ENV VARs, volumes (if used) and network mode (bridge, host, macvlan, ipvlan).

I'm using portioner.io. I can't get pihole to produce a proper token. It ends up with: [✗] There was an error uploading your debug log.

  • Please try again or contact the Pi-hole team for assistance.

Lots of questions. I'm using a guide from servicemax. And of course I have changed til IP4 address, subnet and IP range to my specials. I can log on the portioner, which tells me that the container with pihole is healty and running. I can log on Pihole, and see that there are queries, but at soon as I try to use pi-holes IP address as DNS either on router or PC - no result.

If you can't create a debug log, at least post the container info:

  • which image tag are you using?
  • please post the used Environment Variables;
  • Are you using volumes? which ones?
  • which network mode (bridge, host, macvlan, ipvlan) are you using?
  • exactly which IP are you trying to use on the router?

Run from a client in your network, what's the result of:

nslookup pi.hole
nslookup flurry.com
nslookup flurry.com <pi.ho.le.ip>

Substitute <pi.ho.le.ip> with your Pi-hole's IPv4 address.

Please share the full output, including the exact commands as you ran them, preferably as text.

Hello
Good to hear from you. I really hope you can help me. And by the way - sorry for my english. I’m from Denmark,

I made a debug log and did a copy/paste - I hope this is useful?

I attach it to this mail

Henning Nymand

(Attachment Debug Pihole.rtf is missing)

Henning@iMac ~ % nslookup pi.hole

Server: 8.8.8.8
Address: 8.8.8.8#53

** server can't find pi.hole: NXDOMAIN
Henning@iMac ~ % nslookup flurry.com

Server: 8.8.8.8
Address: 8.8.8.8#53

Non-authoritative answer:

Name: flurry.com
Address: 13.251.69.97

Name: flurry.com
Address: 34.225.127.72

Name: flurry.com
Address: 34.213.101.254

Name: flurry.com
Address: 44.228.206.170

Name: flurry.com
Address: 18.136.37.69

Name: flurry.com
Address: 54.161.105.65

Name: flurry.com
Address: 13.49.212.207

Name: flurry.com
Address: 13.50.184.192
Henning@iMac ~ % nslookup flurry.com 192.168.1.250

Server: 192.168.1.250
Address: 192.168.1.250#53

Name: flurry.com
Address: 0.0.0.0

Henning@iMac ~ %

We'd just need the token, shown after you've uploaded the debug log.

Your nslookup results show that your system is currently using 8.8.8.8 for DNS, but your Pi-hole at 192.168.1.250 would block as expected when queried directly.

What's the result of:

nslookup dns.google.com 192.168.1.250

With router still using 8.8.8.8 as DNS

Henning@iMac ~ % nslookup dns.google.com 192.168.1.250

Server: 192.168.1.250

Address: 192.168.1.250#53

** server can't find dns.google.com: REFUSED

With router using 192.168.1.250 as DNS

Henning@iMac ~ % nslookup flurry.com

Server: 8.8.8.8

Address: 8.8.8.8#53

Non-authoritative answer:

Name: flurry.com

Address: 34.225.127.72

Name: flurry.com

Address: 13.50.184.192

Name: flurry.com

Address: 18.136.37.69

Name: flurry.com

Address: 44.228.206.170

Name: flurry.com

Address: 13.49.212.207

Name: flurry.com

Address: 13.251.69.97

Name: flurry.com

Address: 54.161.105.65

Name: flurry.com

Address: 34.213.101.254

Henning@iMac ~ % nslookup flurry.com 192.168.1.250

Server: 192.168.1.250

Address: 192.168.1.250#53

Name: flurry.com

Address: 0.0.0.0

It seems I don’t get a token at the end of debugging:

[✓] ** FINISHED DEBUGGING! **

  • The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.

[i] Debug script running in automated mode

  • Using curl for transmission.

  • curl failed, contact Pi-hole support for assistance.

  • Error message: curl: (6) Could not resolve host: tricorder.pi-hole.net

[✗] There was an error uploading your debug log.

  • Please try again or contact the Pi-hole team for assistance.

  • A local copy of the debug log can be found at: /var/log/pihole/pihole_debug.log

I've used portainer interface, network mode mtacvlan, pihole/pihole:latest. ENV VAR, TZ Europe/Copenhagen, DNS1 8.8.8.8, DNS2 1.1.1.1 (for testing)

Problem solved. After erasing my Synology NAS, reinstalling everything - docker, portioner, mtacvlan, pihole etc - it now works :slight_smile: