Help - PiHole appending local domain to some replies

Expected Behaviour:

Pihole should be returning DNS entry from Internet to Pihole.
Current setup: Internet<-->pihole(Docker)<-->opnsense(VM)<-->client(ubuntu running docker)

This is working to an extent, the reply is being returned correctly but then a further query occurs and appends the internal domain to the entry.

Actual Behaviour:

Jun 14 11:55:52 dnsmasq[7255]: query[A] registry-1.docker.io from 172.20.0.1
Jun 14 11:55:52 dnsmasq[7255]: forwarded registry-1.docker.io to 8.8.4.4
Jun 14 11:55:52 dnsmasq[7255]: query[AAAA] registry-1.docker.io from 172.20.0.1
Jun 14 11:55:52 dnsmasq[7255]: forwarded registry-1.docker.io to 8.8.4.4
Jun 14 11:55:52 dnsmasq[7255]: reply registry-1.docker.io is 34.233.151.211
Jun 14 11:55:52 dnsmasq[7255]: reply registry-1.docker.io is 34.232.31.24
Jun 14 11:55:52 dnsmasq[7255]: reply registry-1.docker.io is 34.199.77.19
Jun 14 11:55:52 dnsmasq[7255]: reply registry-1.docker.io is 34.201.236.93
Jun 14 11:55:52 dnsmasq[7255]: reply registry-1.docker.io is 34.206.236.31
Jun 14 11:55:52 dnsmasq[7255]: reply registry-1.docker.io is 34.201.196.144
Jun 14 11:55:52 dnsmasq[7255]: reply registry-1.docker.io is 34.228.211.243
Jun 14 11:55:52 dnsmasq[7255]: reply registry-1.docker.io is 34.199.40.84
Jun 14 11:55:52 dnsmasq[7255]: reply registry-1.docker.io is NODATA-IPv6
Jun 14 11:55:54 dnsmasq[7255]: query[A] pi.hole from 127.0.0.1
Jun 14 11:55:54 dnsmasq[7255]: /etc/pihole/local.list pi.hole is 192.168.0.30
Jun 14 11:55:57 dnsmasq[7255]: query[A] registry-1.docker.io from 172.20.0.1
Jun 14 11:55:57 dnsmasq[7255]: cached registry-1.docker.io is 34.199.40.84
Jun 14 11:55:57 dnsmasq[7255]: cached registry-1.docker.io is 34.228.211.243
Jun 14 11:55:57 dnsmasq[7255]: cached registry-1.docker.io is 34.201.196.144
Jun 14 11:55:57 dnsmasq[7255]: cached registry-1.docker.io is 34.206.236.31
Jun 14 11:55:57 dnsmasq[7255]: cached registry-1.docker.io is 34.201.236.93
Jun 14 11:55:57 dnsmasq[7255]: cached registry-1.docker.io is 34.199.77.19
Jun 14 11:55:57 dnsmasq[7255]: cached registry-1.docker.io is 34.232.31.24
Jun 14 11:55:57 dnsmasq[7255]: cached registry-1.docker.io is 34.233.151.211
Jun 14 11:55:57 dnsmasq[7255]: query[AAAA] registry-1.docker.io from 172.20.0.1
Jun 14 11:55:57 dnsmasq[7255]: cached registry-1.docker.io is NODATA-IPv6
.......
Jun 14 11:56:02 dnsmasq[7255]: query[A] registry-1.docker.io.home.lab from 172.20.0.1
Jun 14 11:56:02 dnsmasq[7255]: forwarded registry-1.docker.io.home.lab to 8.8.4.4
Jun 14 11:56:02 dnsmasq[7255]: query[AAAA] registry-1.docker.io.home.lab from 172.20.0.1
Jun 14 11:56:02 dnsmasq[7255]: forwarded registry-1.docker.io.home.lab to 8.8.4.4
Jun 14 11:56:03 dnsmasq[7255]: reply registry-1.docker.io.home.lab is NXDOMAIN
Jun 14 11:56:03 dnsmasq[7255]: reply registry-1.docker.io.home.lab is NODATA-IPv6
Jun 14 11:56:07 dnsmasq[7255]: query[A] registry-1.docker.io.home.lab from 172.20.0.1
Jun 14 11:56:07 dnsmasq[7255]: cached registry-1.docker.io.home.lab is NXDOMAIN
Jun 14 11:56:07 dnsmasq[7255]: query[AAAA] registry-1.docker.io.home.lab from 172.20.0.1
Jun 14 11:56:07 dnsmasq[7255]: cached registry-1.docker.io.home.lab is NODATA-IPv6

Debug Token:

Your debug token is: https://tricorder.pi-hole.net/dpa3cgpnsw

Pi-hole does not modify the domain in the query it receives. At some point, your client starts adding the internal domain, so this is an issue with your client and not Pi-hole.

1 Like

Ok thanks for the reply.

Obviously having issues with the docker host passing the search domain to the container.

I'll look elsewhere.

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