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.

user@pihole: cat /etc/hosts localhost pihole

#personal dns 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

; EDNS: version: 0, flags:; udp: 4096
;plex.nest.rat.                 IN      A

;; Query time: 0 msec
;; 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
Dec  2 13:41:30 dnsmasq[10278]: /etc/hosts gm.nest.rat is

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:


The Pi-hole is at, the dig is for as the server answering the query. Check 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 @

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.