Pihole not resolving dns query

Please follow the below template, it will help us to help you!

If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx instead of lighttpd, or there is some other aspect of your install that is customised) - please use the Community Help category.

Environment:

pihole running on Raspberry PI as docker container.

root@pihole:/# pihole -v -c
Current Pi-hole version is v5.5
Current AdminLTE version is v5.7
Current FTL version is v5.10.2
root@pihole:/#

pi@raspberrypi:~ $ cat /etc/*release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pi@raspberrypi:~ $

Expected Behaviour:

DNS resolution should work for the normal internet traffic.

Actual Behaviour:

All web traffic is failing with DNS resolution failure.

Debug Token:

https://tricorder.pi-hole.net/hV1t4mRF/

pi@raspberrypi:~ $ docker -v
Docker version 20.10.8, build 3967b7d
pi@raspberrypi:~ $

output of dig command from pc to pihole -

; <<>> DiG 9.16.1-Ubuntu <<>> 192.168.1.105 www.google.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached

pihole -t

00:42:55: query[A] www.google.com from 192.168.1.113
00:42:55: forwarded www.google.com to 8.8.8.8
00:42:55: forwarded www.google.com to 8.8.4.4
00:42:55: forwarded www.google.com to 1.1.1.1
00:42:55: forwarded www.google.com to 1.0.0.1
00:42:58: query[PTR] 113.1.168.192.in-addr.arpa from 127.0.0.1
00:42:58: config 192.168.1.113 is NXDOMAIN
00:43:00: query[A] www.google.com from 192.168.1.113
00:43:00: forwarded www.google.com to 8.8.8.8
00:43:00: forwarded www.google.com to 8.8.4.4
00:43:00: forwarded www.google.com to 1.1.1.1
00:43:00: forwarded www.google.com to 1.0.0.1
00:43:05: query[A] www.google.com from 192.168.1.113
00:43:05: forwarded www.google.com to 8.8.8.8
00:43:05: forwarded www.google.com to 8.8.4.4
00:43:05: forwarded www.google.com to 1.1.1.1
00:43:05: forwarded www.google.com to 1.0.0.1
00:43:09: query[A] pi.hole from 127.0.0.1
00:43:09: Pi-hole hostname pi.hole is 0.0.0.0
00:43:11: query[PTR] 8.8.8.8.in-addr.arpa from 127.0.0.1
00:43:11: forwarded 8.8.8.8.in-addr.arpa to 8.8.8.8
00:43:11: forwarded 8.8.8.8.in-addr.arpa to 8.8.4.4
00:43:11: forwarded 8.8.8.8.in-addr.arpa to 1.1.1.1
00:43:11: forwarded 8.8.8.8.in-addr.arpa to 1.0.0.1
00:43:14: query[PTR] 8.8.8.8.in-addr.arpa from 127.0.0.1
00:43:14: forwarded 8.8.8.8.in-addr.arpa to 8.8.8.8
00:43:14: forwarded 8.8.8.8.in-addr.arpa to 8.8.4.4
00:43:14: forwarded 8.8.8.8.in-addr.arpa to 1.1.1.1
00:43:14: forwarded 8.8.8.8.in-addr.arpa to 1.0.0.1

Your above output would suggest that Pi-hole correctly forwards queries to its upstream servers, but never receives an answer by them.

Run from your Pi-hole host machine, what's the output of

dig www.google.com @8.8.8.8

Also, please share your docker compose or docker run script for Pi-hole.

  1. output for the dig command requested below
dig www.google.com 8.8.8.8

; <<>> DiG 9.16.1-Ubuntu <<>> www.google.com 8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16446
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;www.google.com.                        IN      A

;; ANSWER SECTION:
www.google.com.         156     IN      A       142.250.204.4

;; Query time: 37 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue Oct 12 08:23:04 AEDT 2021
;; MSG SIZE  rcvd: 59
  1. I am using Portainer to manage the docker containers.
    Below is the output from Portainer.
{
    "AppArmorProfile": "",
    "Args": [],
    "Config": {
        "AttachStderr": false,
        "AttachStdin": false,
        "AttachStdout": false,
        "Cmd": null,
        "Domainname": "",
        "Entrypoint": [
            "/s6-init"
        ],
        "Env": [
            "ARCH=armv7l",
            "DNSMASQ_USER=root",
            "DOCKER_REPO=multiarch/debian-debootstrap",
            "FTL_CMD=no-daemon",
            "IPv6=True",
            "PATH=/opt/pihole:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "PHP_ENV_CONFIG=/etc/lighttpd/conf-enabled/15-fastcgi-php.conf",
            "PHP_ERROR_LOG=/var/log/lighttpd/error.log",
            "PIHOLE_ARCH=arm",
            "PIHOLE_INSTALL=/etc/.pihole/automated install/basic-install.sh",
            "PIHOLE_TAG=pihole/pihole:2021.09-armhf-buster",
            "S6_BEHAVIOUR_IF_STAGE2_FAILS=2",
            "S6_KEEP_ENV=1",
            "S6_LOGGING=0",
            "S6OVERLAY_RELEASE=https://github.com/just-containers/s6-overlay/releases/download/v2.1.0.2/s6-overlay-arm.tar.gz",
            "ServerIP=127.0.0.1",
            "UBUNTU_SUITE=buster",
            "VERSION=v5.3.1",
            "CORE_VERSION=",
            "WEB_VERSION=",
            "FTL_VERSION=",
            "PIHOLE_VERSION=2021.10",
            "S6_OVERLAY_VERSION=v2.1.0.2",
            "TZ=Australia/Melbourne"
        ],
        "ExposedPorts": {
            "443/tcp": {},
            "53/tcp": {},
            "53/udp": {},
            "67/udp": {},
            "80/tcp": {}
        },
        "Healthcheck": {
            "Test": [
                "CMD-SHELL",
                "dig +norecurse +retry=0 @127.0.0.1 pi.hole || exit 1"
            ]
        },
        "Hostname": "pihole",
        "Image": "pihole/pihole:latest",
        "Labels": {
            "image": "pihole/pihole:v5.3.1_arm",
            "maintainer": "adam@diginc.us",
            "org.opencontainers.image.created": "2021-10-01T09:45:51.482Z",
            "org.opencontainers.image.description": "Pi-hole in a docker container",
            "org.opencontainers.image.licenses": "",
            "org.opencontainers.image.revision": "d036e0d0c00b614599e1007e89df6937ff1835f0",
            "org.opencontainers.image.source": "https://github.com/pi-hole/docker-pi-hole",
            "org.opencontainers.image.title": "docker-pi-hole",
            "org.opencontainers.image.url": "https://github.com/pi-hole/docker-pi-hole",
            "org.opencontainers.image.version": "2021.10",
            "url": "https://www.github.com/pi-hole/docker-pi-hole"
        },
        "OnBuild": null,
        "OpenStdin": false,
        "StdinOnce": false,
        "Tty": false,
        "User": "",
        "Volumes": {
            "/etc/dnsmasq.d": {},
            "/etc/pihole": {}
        },
        "WorkingDir": ""
    },
    "Created": "2021-10-10T13:59:27.35158536Z",
    "Driver": "overlay2",
    "ExecIDs": null,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/9e51e6fd126e1fc3b5a5fe3182ff1f2e87a923bd9dc16d5d223fa7a8540d74ba-init/diff:/var/lib/docker/overlay2/371fcaabb4bf73dc61502dd27ad299b0f546dc81e41720ff151b857e230f2daf/diff:/var/lib/docker/overlay2/024a529491597800f34773d2e14147157944d1f0132dfbc3a518cc4f25629d82/diff:/var/lib/docker/overlay2/01d5beda623cb2e14e7712ad09a79d0cb14c8c0b73c985e5b5d3e02570355d3c/diff:/var/lib/docker/overlay2/5d75897dcb90f1c22f5fc6fe3358a92ed5bcf0296ebcdb7e8d5d5556fb6785a8/diff:/var/lib/docker/overlay2/d785faed582cb2299098894962682968c6849626335612dbb0a25d2432324be0/diff:/var/lib/docker/overlay2/8f2ac368545e3dc4acb09daf2ef505a626afe72534490f88a81551181f013c34/diff:/var/lib/docker/overlay2/fc6eb3c7bdc56ad8e33e8e9f4cfa1cd3ec7304b48e4aa1014191bd6463388483/diff",
            "MergedDir": "/var/lib/docker/overlay2/9e51e6fd126e1fc3b5a5fe3182ff1f2e87a923bd9dc16d5d223fa7a8540d74ba/merged",
            "UpperDir": "/var/lib/docker/overlay2/9e51e6fd126e1fc3b5a5fe3182ff1f2e87a923bd9dc16d5d223fa7a8540d74ba/diff",
            "WorkDir": "/var/lib/docker/overlay2/9e51e6fd126e1fc3b5a5fe3182ff1f2e87a923bd9dc16d5d223fa7a8540d74ba/work"
        },
        "Name": "overlay2"
    },
    "HostConfig": {
        "AutoRemove": false,
        "Binds": [
            "/srv/dev-disk-by-uuid-619c3fc1-1e63-4317-9d5c-8b56f73f45d3/AppData/Config/PiHole/DNS:/etc/dnsmasq.d",
            "/srv/dev-disk-by-uuid-619c3fc1-1e63-4317-9d5c-8b56f73f45d3/AppData/Config/PiHole:/etc/pihole"
        ],
        "BlkioDeviceReadBps": null,
        "BlkioDeviceReadIOps": null,
        "BlkioDeviceWriteBps": null,
        "BlkioDeviceWriteIOps": null,
        "BlkioWeight": 0,
        "BlkioWeightDevice": null,
        "CapAdd": [
            "AUDIT_WRITE",
            "CHOWN",
            "DAC_OVERRIDE",
            "FOWNER",
            "FSETID",
            "KILL",
            "MKNOD",
            "NET_BIND_SERVICE",
            "NET_RAW",
            "SETFCAP",
            "SETGID",
            "SETPCAP",
            "SETUID",
            "SYS_CHROOT"
        ],
        "CapDrop": [
            "AUDIT_CONTROL",
            "BLOCK_SUSPEND",
            "DAC_READ_SEARCH",
            "IPC_LOCK",
            "IPC_OWNER",
            "LEASE",
            "LINUX_IMMUTABLE",
            "MAC_ADMIN",
            "MAC_OVERRIDE",
            "NET_ADMIN",
            "NET_BROADCAST",
            "SYSLOG",
            "SYS_ADMIN",
            "SYS_BOOT",
            "SYS_MODULE",
            "SYS_NICE",
            "SYS_PACCT",
            "SYS_PTRACE",
            "SYS_RAWIO",
            "SYS_RESOURCE",
            "SYS_TIME",
            "SYS_TTY_CONFIG",
            "WAKE_ALARM"
        ],
        "Cgroup": "",
        "CgroupParent": "",
        "CgroupnsMode": "host",
        "ConsoleSize": [
            0,
            0
        ],
        "ContainerIDFile": "",
        "CpuCount": 0,
        "CpuPercent": 0,
        "CpuPeriod": 0,
        "CpuQuota": 0,
        "CpuRealtimePeriod": 0,
        "CpuRealtimeRuntime": 0,
        "CpuShares": 0,
        "CpusetCpus": "",
        "CpusetMems": "",
        "DeviceCgroupRules": null,
        "DeviceRequests": null,
        "Devices": [],
        "Dns": [],
        "DnsOptions": [],
        "DnsSearch": [],
        "ExtraHosts": [],
        "GroupAdd": null,
        "IOMaximumBandwidth": 0,
        "IOMaximumIOps": 0,
        "IpcMode": "private",
        "Isolation": "",
        "KernelMemory": 0,
        "KernelMemoryTCP": 0,
        "Links": null,
        "LogConfig": {
            "Config": {},
            "Type": "json-file"
        },
        "MaskedPaths": [
            "/proc/asound",
            "/proc/acpi",
            "/proc/kcore",
            "/proc/keys",
            "/proc/latency_stats",
            "/proc/timer_list",
            "/proc/timer_stats",
            "/proc/sched_debug",
            "/proc/scsi",
            "/sys/firmware"
        ],
        "Memory": 0,
        "MemoryReservation": 0,
        "MemorySwap": 0,
        "MemorySwappiness": null,
        "NanoCpus": 0,
        "NetworkMode": "bridge",
        "OomKillDisable": null,
        "OomScoreAdj": 0,
        "PidMode": "",
        "PidsLimit": null,
        "PortBindings": {
            "443/tcp": [
                {
                    "HostIp": "",
                    "HostPort": "4443"
                }
            ],
            "53/tcp": [
                {
                    "HostIp": "",
                    "HostPort": "53"
                }
            ],
            "53/udp": [
                {
                    "HostIp": "",
                    "HostPort": "53"
                }
            ],
            "67/udp": [
                {
                    "HostIp": "",
                    "HostPort": "67"
                }
            ],
            "80/tcp": [
                {
                    "HostIp": "",
                    "HostPort": "1010"
                }
            ]
        },
        "Privileged": false,
        "PublishAllPorts": false,
        "ReadonlyPaths": [
            "/proc/bus",
            "/proc/fs",
            "/proc/irq",
            "/proc/sys",
            "/proc/sysrq-trigger"
        ],
        "ReadonlyRootfs": false,
        "RestartPolicy": {
            "MaximumRetryCount": 0,
            "Name": "unless-stopped"
        },
        "Runtime": "runc",
        "SecurityOpt": null,
        "ShmSize": 67108864,
        "UTSMode": "",
        "Ulimits": null,
        "UsernsMode": "",
        "VolumeDriver": "",
        "VolumesFrom": null
    },
    "HostnamePath": "/var/lib/docker/containers/94a970040479a57f5323d5131d13b416e862c8b9c38a01ea65d82a495b91ebcf/hostname",
    "HostsPath": "/var/lib/docker/containers/94a970040479a57f5323d5131d13b416e862c8b9c38a01ea65d82a495b91ebcf/hosts",
    "Id": "94a970040479a57f5323d5131d13b416e862c8b9c38a01ea65d82a495b91ebcf",
    "Image": "sha256:af1f33379115311a6fc6e6906d9c8564e28ba421a75490d320c1cd6d56a018e4",
    "LogPath": "/var/lib/docker/containers/94a970040479a57f5323d5131d13b416e862c8b9c38a01ea65d82a495b91ebcf/94a970040479a57f5323d5131d13b416e862c8b9c38a01ea65d82a495b91ebcf-json.log",
    "MountLabel": "",
    "Mounts": [
        {
            "Destination": "/etc/dnsmasq.d",
            "Mode": "",
            "Propagation": "rprivate",
            "RW": true,
            "Source": "/srv/dev-disk-by-uuid-619c3fc1-1e63-4317-9d5c-8b56f73f45d3/AppData/Config/PiHole/DNS",
            "Type": "bind"
        },
        {
            "Destination": "/etc/pihole",
            "Mode": "",
            "Propagation": "rprivate",
            "RW": true,
            "Source": "/srv/dev-disk-by-uuid-619c3fc1-1e63-4317-9d5c-8b56f73f45d3/AppData/Config/PiHole",
            "Type": "bind"
        }
    ],
    "Name": "/pihole",
    "NetworkSettings": {
        "Bridge": "",
        "EndpointID": "78b3170a24b9adc980dbf5be1c75f84c089736dcff5cd570807b4f70e152b4eb",
        "Gateway": "172.17.0.1",
        "GlobalIPv6Address": "",
        "GlobalIPv6PrefixLen": 0,
        "HairpinMode": false,
        "IPAddress": "172.17.0.4",
        "IPPrefixLen": 16,
        "IPv6Gateway": "",
        "LinkLocalIPv6Address": "",
        "LinkLocalIPv6PrefixLen": 0,
        "MacAddress": "02:42:ac:11:00:04",
        "Networks": {
            "bridge": {
                "Aliases": null,
                "DriverOpts": null,
                "EndpointID": "78b3170a24b9adc980dbf5be1c75f84c089736dcff5cd570807b4f70e152b4eb",
                "Gateway": "172.17.0.1",
                "GlobalIPv6Address": "",
                "GlobalIPv6PrefixLen": 0,
                "IPAMConfig": {},
                "IPAddress": "172.17.0.4",
                "IPPrefixLen": 16,
                "IPv6Gateway": "",
                "Links": null,
                "MacAddress": "02:42:ac:11:00:04",
                "NetworkID": "5b4cdaf7ff257e1e1375b34f10bfb07be90b86f46f20c7cb94b32bd66e31f5fa"
            }
        },
        "Ports": {
            "443/tcp": [
                {
                    "HostIp": "0.0.0.0",
                    "HostPort": "4443"
                },
                {
                    "HostIp": "::",
                    "HostPort": "4443"
                }
            ],
            "53/tcp": [
                {
                    "HostIp": "0.0.0.0",
                    "HostPort": "53"
                },
                {
                    "HostIp": "::",
                    "HostPort": "53"
                }
            ],
            "53/udp": [
                {
                    "HostIp": "0.0.0.0",
                    "HostPort": "53"
                },
                {
                    "HostIp": "::",
                    "HostPort": "53"
                }
            ],
            "67/udp": [
                {
                    "HostIp": "0.0.0.0",
                    "HostPort": "67"
                },
                {
                    "HostIp": "::",
                    "HostPort": "67"
                }
            ],
            "80/tcp": [
                {
                    "HostIp": "0.0.0.0",
                    "HostPort": "1010"
                },
                {
                    "HostIp": "::",
                    "HostPort": "1010"
                }
            ]
        },
        "SandboxID": "2956a2b22f2100d009f2c6591c13c49c5f6d2d19a77009296cb53d4d21eb83e6",
        "SandboxKey": "/var/run/docker/netns/2956a2b22f21",
        "SecondaryIPAddresses": null,
        "SecondaryIPv6Addresses": null
    },
    "Path": "/s6-init",
    "Platform": "linux",
    "Portainer": {
        "ResourceControl": {
            "Id": 15,
            "ResourceId": "94a970040479a57f5323d5131d13b416e862c8b9c38a01ea65d82a495b91ebcf",
            "SubResourceIds": [],
            "Type": 1,
            "UserAccesses": [],
            "TeamAccesses": [],
            "Public": false,
            "AdministratorsOnly": true,
            "System": false
        }
    },
    "ProcessLabel": "",
    "ResolvConfPath": "/var/lib/docker/containers/94a970040479a57f5323d5131d13b416e862c8b9c38a01ea65d82a495b91ebcf/resolv.conf",
    "RestartCount": 0,
    "State": {
        "Dead": false,
        "Error": "",
        "ExitCode": 0,
        "FinishedAt": "2021-10-11T00:33:09.934651753Z",
        "Health": {
            "FailingStreak": 0,
            "Log": [
                {
                    "End": "2021-10-12T08:22:06.852157111+11:00",
                    "ExitCode": 0,
                    "Output": "\n; <<>> DiG 9.11.5-P4-5.1+deb10u5-Debian <<>> +norecurse +retry=0 @127.0.0.1 pi.hole\n; (1 server found)\n;; global options: +cmd\n;; Got answer:\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27577\n;; flags: qr aa ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1\n\n;; OPT PSEUDOSECTION:\n; EDNS: version: 0, flags:; udp: 4096\n;; QUESTION SECTION:\n;pi.hole.\t\t\tIN\tA\n\n;; ANSWER SECTION:\npi.hole.\t\t0\tIN\tA\t127.0.0.1\n\n;; Query time: 0 msec\n;; SERVER: 127.0.0.1#53(127.0.0.1)\n;; WHEN: Tue Oct 12 08:22:06 AEDT 2021\n;; MSG SIZE  rcvd: 52\n\n",
                    "Start": "2021-10-12T08:22:06.569161745+11:00"
                },
                {
                    "End": "2021-10-12T08:22:37.168619766+11:00",
                    "ExitCode": 0,
                    "Output": "\n; <<>> DiG 9.11.5-P4-5.1+deb10u5-Debian <<>> +norecurse +retry=0 @127.0.0.1 pi.hole\n; (1 server found)\n;; global options: +cmd\n;; Got answer:\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25349\n;; flags: qr aa ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1\n\n;; OPT PSEUDOSECTION:\n; EDNS: version: 0, flags:; udp: 4096\n;; QUESTION SECTION:\n;pi.hole.\t\t\tIN\tA\n\n;; ANSWER SECTION:\npi.hole.\t\t0\tIN\tA\t127.0.0.1\n\n;; Query time: 0 msec\n;; SERVER: 127.0.0.1#53(127.0.0.1)\n;; WHEN: Tue Oct 12 08:22:37 AEDT 2021\n;; MSG SIZE  rcvd: 52\n\n",
                    "Start": "2021-10-12T08:22:36.875139824+11:00"
                },
                {
                    "End": "2021-10-12T08:23:07.51980967+11:00",
                    "ExitCode": 0,
                    "Output": "\n; <<>> DiG 9.11.5-P4-5.1+deb10u5-Debian <<>> +norecurse +retry=0 @127.0.0.1 pi.hole\n; (1 server found)\n;; global options: +cmd\n;; Got answer:\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39186\n;; flags: qr aa ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1\n\n;; OPT PSEUDOSECTION:\n; EDNS: version: 0, flags:; udp: 4096\n;; QUESTION SECTION:\n;pi.hole.\t\t\tIN\tA\n\n;; ANSWER SECTION:\npi.hole.\t\t0\tIN\tA\t127.0.0.1\n\n;; Query time: 0 msec\n;; SERVER: 127.0.0.1#53(127.0.0.1)\n;; WHEN: Tue Oct 12 08:23:07 AEDT 2021\n;; MSG SIZE  rcvd: 52\n\n",
                    "Start": "2021-10-12T08:23:07.189601187+11:00"
                },
                {
                    "End": "2021-10-12T08:23:37.848270329+11:00",
                    "ExitCode": 0,
                    "Output": "\n; <<>> DiG 9.11.5-P4-5.1+deb10u5-Debian <<>> +norecurse +retry=0 @127.0.0.1 pi.hole\n; (1 server found)\n;; global options: +cmd\n;; Got answer:\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53213\n;; flags: qr aa ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1\n\n;; OPT PSEUDOSECTION:\n; EDNS: version: 0, flags:; udp: 4096\n;; QUESTION SECTION:\n;pi.hole.\t\t\tIN\tA\n\n;; ANSWER SECTION:\npi.hole.\t\t0\tIN\tA\t127.0.0.1\n\n;; Query time: 0 msec\n;; SERVER: 127.0.0.1#53(127.0.0.1)\n;; WHEN: Tue Oct 12 08:23:37 AEDT 2021\n;; MSG SIZE  rcvd: 52\n\n",
                    "Start": "2021-10-12T08:23:37.542009575+11:00"
                },
                {
                    "End": "2021-10-12T08:24:08.245993719+11:00",
                    "ExitCode": 0,
                    "Output": "\n; <<>> DiG 9.11.5-P4-5.1+deb10u5-Debian <<>> +norecurse +retry=0 @127.0.0.1 pi.hole\n; (1 server found)\n;; global options: +cmd\n;; Got answer:\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59327\n;; flags: qr aa ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1\n\n;; OPT PSEUDOSECTION:\n; EDNS: version: 0, flags:; udp: 4096\n;; QUESTION SECTION:\n;pi.hole.\t\t\tIN\tA\n\n;; ANSWER SECTION:\npi.hole.\t\t0\tIN\tA\t127.0.0.1\n\n;; Query time: 1 msec\n;; SERVER: 127.0.0.1#53(127.0.0.1)\n;; WHEN: Tue Oct 12 08:24:08 AEDT 2021\n;; MSG SIZE  rcvd: 52\n\n",
                    "Start": "2021-10-12T08:24:07.877185039+11:00"
                }
            ],
            "Status": "healthy"
        },
        "OOMKilled": false,
        "Paused": false,
        "Pid": 1908,
        "Restarting": false,
        "Running": true,
        "StartedAt": "2021-10-11T00:34:02.128302674Z",
        "Status": "running"
    }
}

So your Pi-hole host has no issues using an 8.8.8.8 public resolver.
Could you re-run that command from inside your Pi-hole container?

  1. When i ran the below commands the DNS Configuration in Router was pointing to 1.1.1.1, and then I was able to get a response.
pi@raspberrypi:~ $ docker exec -ti pihole bash
root@pihole:/# dig www.google.com @8.8.8.8

; <<>> DiG 9.11.5-P4-5.1+deb10u5-Debian <<>> www.google.com @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22350
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;www.google.com.                        IN      A

;; ANSWER SECTION:
www.google.com.         268     IN      A       142.250.204.4

;; Query time: 15 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed Oct 13 08:32:46 AEDT 2021
;; MSG SIZE  rcvd: 59

root@pihole:/#
  1. When the router had pihole as DNS server the below was the output
**Windows PC**
root@N-20HEPF0VL6MN:~# dig www.nokia.com @192.168.1.105

; <<>> DiG 9.16.1-Ubuntu <<>> www.nokia.com @192.168.1.105
;; global options: +cmd
;; connection timed out; no servers could be reached

root@N-20HEPF0VL6MN:~# ssh pi@192.168.1.105

**R-PI**
pi@raspberrypi:~ $ dig www.google.com @192.168.1.105
^C
pi@raspberrypi:~ $ dig www.google.com @8.8.8.8
^C
pi@raspberrypi:~ docker exec -ti pihole bash

**pihole docker container**
root@pihole:/# dig www.google.com @8.8.8.8

; <<>> DiG 9.11.5-P4-5.1+deb10u5-Debian <<>> www.google.com @8.8.8.8
;; global options: +cmd
;; connection timed out; no servers could be reached

That would suggest an issue with your router, e.g. because it would block Pi-hole's DNS requests. What make and model is your router?

However, it is strange that forcing resolution via a public resolver (@8.8.8.8) would be affected by your router's configuration of upstream DNS servers at all.
I'd expect a lookup via @8.8.8.8 to always succeed for a given client (or always fail if a firewall somewhere would block requests for that client).
In your case, the lookup fails when your router is using Pi-hole for DNS, and succeeds when it's using a public DNS server.

Let's check whether your router may redirect DNS requests.
What's the result of:

nslookup flurry.com 80.241.218.68

Also, please provide a fresh debug token. Your original one has expired.

Indeed, it was a configuration issue with the router.
I configured the pi-hole IP address as DNS server on the WAN configuration, rather than on the LAN side config.

After updating the configuration in the Router, it is working as expected. I can see all the queries from the local network hitting Pi-hole and DNS resolution happening properly.

Sorry for this :frowning:

This is the latest debug token taken after the config issues were fixed at the router end.
https://tricorder.pi-hole.net/O0J5LVIT/

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