Cannot Resolve Local DNS

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

Expected Behaviour:

Query a local domain. I have set addresses in the /etc/hosts file of the pihole server.
Ex:

user@pihole: cat /etc/hosts
127.0.0.1 localhost
127.0.0.1 pihole

#personal dns
192.168.2.193 plex.nest.rat plex

Actual Behaviour:

On my desktop, I cannot resolve anything in the local domain:

ratkinson@AmanThul:~$ dig plex.nest.rat

; <<>> DiG 9.11.3-1ubuntu1.1-Ubuntu <<>> plex.nest.rat
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 8982
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;plex.nest.rat.                 IN      A

;; Query time: 0 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Mon Dec 02 13:39:53 PST 2019
;; MSG SIZE  rcvd: 42

Sometimes I will see in the pihole logs:

Dec  2 13:41:30 dnsmasq[10278]: query[A] gm.nest.rat from 192.168.2.1
Dec  2 13:41:30 dnsmasq[10278]: /etc/hosts gm.nest.rat is 192.168.2.218

I am unsure why I am not getting a response to my DNS query, even though it looks like the pihole is processing it.

Debug Token:

efxlc08enu

The Pi-hole is at 192.168.2.252, the dig is for 192.168.1.1 as the server answering the query. Check 192.168.1.1 and see if it is blocking the domain.

In addition to checking the router, repeat this dig from the desktop client with a direct call to the Pi-hole and see if Pi-Hole receives and answers the request. If it does, this points to a problem at the router DNS.

dig plex.nest.rat @192.168.2.252

Found out that the dnsmasq service on the router was blackhole'ing all internal IPs. I've fixed it by turning off --stop-dns-rebind on the router.

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