# Can't resolve dns lookups on my Pi from LAN devices

**URL:** <https://discourse.pi-hole.net/t/cant-resolve-dns-lookups-on-my-pi-from-lan-devices/21013>\
**Category:** Help\
**Created:** [June 24, 2019, 3:11pm UTC](https://discourse.pi-hole.net/t/cant-resolve-dns-lookups-on-my-pi-from-lan-devices/21013 "2019-06-24T15:11:50Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![deHakkelaar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dehakkelaar/32/674_2.png) [@deHakkelaar](https://discourse.pi-hole.net/u/deHakkelaar)\
**Post date:** [July 1, 2019, 7:10pm UTC](https://discourse.pi-hole.net/t/cant-resolve-dns-lookups-on-my-pi-from-lan-devices/21013/19 "2019-07-01T19:10:18Z")

</div>

> [@Lobster](#):
>
> `pi@raspberrypi:~ $ nslookup -type=txt -class=chaos version.bind $(hostname -I) ;; connection timed out; no servers could be reached`

Whats output for below three?

```auto
pi@noads:~ $ ip addr show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether b8:27:eb:68:35:17 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.2/24 brd 10.0.0.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::2113:33ca:4a85:5fb/64 scope link
       valid_lft forever preferred_lft forever

```

* * *

```auto
pi@noads:~ $ ip r
default via 10.0.0.1 dev eth0 src 10.0.0.2 metric 202
10.0.0.0/24 dev eth0 proto kernel scope link src 10.0.0.2 metric 202

```

* * *

```auto
pi@noads:~ $ sudo traceroute -n 8.8.8.8 | tail -1
 9 8.8.8.8 22.983 ms 22.683 ms 22.703 ms

```

You can run last one without the "`| tail -1`" bit to see where route breaks.

And try flush `iptables` for diagnosing:

> [@Admin page shows FTL Offline | Unable to start, cannot access dhcp.leases](https://discourse.pi-hole.net/t/admin-page-shows-ftl-offline-unable-to-start-cannot-access-dhcp-leases/14129/21):
>
> Below ones seems to do the trick: sudo iptables -F sudo iptables -X sudo iptables -t nat -F sudo iptables -t nat -X sudo iptables -t nat -L -n -v sudo iptables -t mangle -F sudo iptables -t mangle -X sudo iptables -P INPUT ACCEPT sudo iptables -P OUTPUT ACCEPT sudo iptables -P FORWARD ACCEPT Check afterwards with: pi@noads:~ $ sudo iptables -L -n Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source …

EDIT: ow the upstream servers you configured:

```auto
pi@noads:~ $ grep PIHOLE_DNS_ /etc/pihole/setupVars.conf
PIHOLE_DNS_1=62.58.153.220#53
PIHOLE_DNS_2=62.58.48.30#53

```

Can you do a `nslookup` against them too to see if they respond ?

---

_[View the full topic](https://discourse.pi-hole.net/t/cant-resolve-dns-lookups-on-my-pi-from-lan-devices/21013)._
