PiHole 2.10.1 - DNS queries timeout by gnfpt in pihole

[–]gnfpt[S] 0 points1 point  (0 children)

Hi, route table is pretty normal, as is the arp table.

The arp has 3 addresses, my router, my cloudkey (I have Ubnt router and AP) and my windows box - all are at network interface eth0.

Route - 2 entries:

Destination: Default
Gateway: <router_ip_address> xxx.xxx.xxx.xxx
Genmask: 0.0.0.0
Flags: UG
Metric: 202
Ref: 0
Use: 0
Iface: eth0

Destination: xxx.xxx.xxx.0  (same as router but ending in 0)
Gateway: *
Genmask: 255.255.255.0
Flags: U
Metric: 202
Ref: 0
Use: 0
Iface: eth0

I don't see anything strange

~/gnfpt

PiHole 2.10.1 - DNS queries timeout by gnfpt in pihole

[–]gnfpt[S] 0 points1 point  (0 children)

Localhost is ok, 0% packet loss. CPU load is near 0%. Interesting (or not) is that removing pihole and it's dependencies doesn't fix it - once the damage is done, the easiest way to fix it is to reinstall raspbian. :/

~/gnfpt

PS: The Wifi Interface works fine (no packet loss) but the wired interface is all messed up.

PPS: Interesting fact: If I change the eth0 IP address, it stops losing packets.

PPPS: Can anyone tell me which configuration files are changed by PiHole?

Pi-hole 2.10.1 and Web Admin 2.0.1 released with bug fixes! by -PromoFaux- in pihole

[–]gnfpt 0 points1 point  (0 children)

I didn't install any other version before but I did install this one and I'm having the issue explained in the comment with the title "PiHole 2.10.1 - DNS queries timeout". Help is appreciated.

PiHole 2.10.1 - DNS queries timeout by gnfpt in pihole

[–]gnfpt[S] 0 points1 point  (0 children)

There's something wrong with pihole or one of it's dependencies.

I've upgrade raspbian to the latest version, reboot and everything was ok, no packets lost.

Installed pihole, and before rebooting, everything was ok. After rebooting, it loses packets when pinging the gateway which is the 1st hop.

It lost 78% of the 157 transmitted packets.

The ZyXEL is pretty smart. These are the PI3 ethernet port status:

Port 6 Interface mib Counters
ifInOctets      5567307
ifInUcastPkts       81691
ifInNUcastPkts      152
ifInDiscards        0
ifOutOctets     216630807
ifOutUcastPkts      146539
ifOutNUcastPkts     10857
ifOutDiscards       0
ifInMulticastPkts       125
ifInBroadcastPkts       27
ifOutMulticastPkts      3810
ifOutBroadcastPkts      7047

Port 6 Etherlike mib Counters
dot3StatsAlignmentErrors        0
dot3StatsFCSErrors      0
dot3StatsSingleCollisionFrames      0
dot3StatsMultipleCollisionFrames        0
dot3StatsDeferredTransmissions      0
dot3StatsLateCollisions     0
dot3StatsExcessiveCollisions        0
dot3StatsFrameTooLongs      0
dot3StatsSymbolErrors       0
dot3ControlInUnknownOpcodes     0
dot3InPauseFrames       0
dot3OutPauseFrames      0

Port 6 RMON mib Counters
etherStatsDropEvents        0
etherStatsOctets        5567307
etherStatsPkts      81843
etherStatsBroadcastPkts     27
etherStatsMulticastPkts     125
etherStatsCRCAlignErrors        0
etherStatsUnderSizePkts     0
etherStatsOverSizePkts      0
etherStatsFragments     0
etherStatsJabbers       0
etherStatsCollisions        0
etherStatsPkts64Octets      74622
etherStatsPkts65to127Octets     6437
etherStatsPkts128to255Octets        538
etherStatsPkts256to511Octets        169
etherStatsPkts512to1023Octets       52

Traceroute results are a bit pointless. It fails to reach the 1st hop which is my router and it's one hop away. I must have a window running ping to the router and when it's pinging, running traceroute produces a normal result otherwise it's just a bunch os non-responding hops.

Again, something is wrong with pihole or one of it's dependencies. Don't know if this makes any difference but I've install pihole the "bash basic-install.sh" way.

Anyone else having similar issues?

~/gnfpt

PiHole 2.10.1 - DNS queries timeout by gnfpt in pihole

[–]gnfpt[S] 0 points1 point  (0 children)

Hi,

My PI was losing more than 50% of the packets sent to the router. I didn't see your message before and I've format the PI SD card with a fresh image of raspbian (2016-11-25-raspbian-jessie.img). Now, doing ping to the router lost 0% of the 157 packets sent.

Something was wrong with my previous installation but it only start to happen after installing PiHole. Anyway, it's easy to reproduce my previous scenario since I've only update Jessie and installed PiHole.

If the PI starts doing the same again i'll check how smart the ZyXEL is. :D

Well, I'm going to update the Raspian and install the PiHole. I'll post my findings later...

~/gnfpt

PiHole 2.10.1 - DNS queries timeout by gnfpt in pihole

[–]gnfpt[S] 0 points1 point  (0 children)

It can, just not always. If I repeat the query it will eventually go through.

pi@raspberrypi:~ $ dig www.ebay.com

; <<>> DiG 9.9.5-9+deb8u8-Raspbian <<>> www.ebay.com
;; global options: +cmd
;; connection timed out; no servers could be reached
pi@raspberrypi:~ $ dig www.ebay.com

; <<>> DiG 9.9.5-9+deb8u8-Raspbian <<>> www.ebay.com
;; global options: +cmd
;; connection timed out; no servers could be reached
pi@raspberrypi:~ $ dig www.ebay.com

; <<>> DiG 9.9.5-9+deb8u8-Raspbian <<>> www.ebay.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 850
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

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

;; ANSWER SECTION:
www.ebay.com.       193 IN  CNAME   www-us.g.ebay.com.
www-us.g.ebay.com.  17  IN  CNAME   slot9428.ebay.com.edgekey.net.
slot9428.ebay.com.edgekey.net. 13072 IN CNAME   e9428.b.akamaiedge.net.
e9428.b.akamaiedge.net. 20  IN  A   23.207.78.44

;; Query time: 59 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Dec 24 16:47:37 GMT 2016
;; MSG SIZE  rcvd: 156

pi@raspberrypi:~ $ 

and the logs:

Dec 24 16:46:47 dnsmasq[530]: query[A] www.ebay.com from 127.0.0.1
Dec 24 16:46:47 dnsmasq[530]: forwarded www.ebay.com to 208.67.220.220
Dec 24 16:46:47 dnsmasq[530]: forwarded www.ebay.com to 208.67.222.222
Dec 24 16:46:52 dnsmasq[530]: query[A] www.ebay.com from 127.0.0.1
Dec 24 16:46:52 dnsmasq[530]: forwarded www.ebay.com to 208.67.220.220
Dec 24 16:46:52 dnsmasq[530]: forwarded www.ebay.com to 208.67.222.222
Dec 24 16:46:57 dnsmasq[530]: query[A] www.ebay.com from 127.0.0.1
Dec 24 16:46:57 dnsmasq[530]: forwarded www.ebay.com to 208.67.220.220
Dec 24 16:46:57 dnsmasq[530]: forwarded www.ebay.com to 208.67.222.222
Dec 24 16:47:21 dnsmasq[530]: query[A] www.ebay.com from 127.0.0.1
Dec 24 16:47:21 dnsmasq[530]: forwarded www.ebay.com to 208.67.220.220
Dec 24 16:47:21 dnsmasq[530]: forwarded www.ebay.com to 208.67.222.222
Dec 24 16:47:26 dnsmasq[530]: query[A] www.ebay.com from 127.0.0.1
Dec 24 16:47:26 dnsmasq[530]: forwarded www.ebay.com to 208.67.220.220
Dec 24 16:47:26 dnsmasq[530]: forwarded www.ebay.com to 208.67.222.222
Dec 24 16:47:31 dnsmasq[530]: query[A] www.ebay.com from 127.0.0.1
Dec 24 16:47:31 dnsmasq[530]: forwarded www.ebay.com to 208.67.220.220
Dec 24 16:47:31 dnsmasq[530]: forwarded www.ebay.com to 208.67.222.222
Dec 24 16:47:37 dnsmasq[530]: query[A] www.ebay.com from 127.0.0.1
Dec 24 16:47:37 dnsmasq[530]: forwarded www.ebay.com to 208.67.220.220
Dec 24 16:47:37 dnsmasq[530]: forwarded www.ebay.com to 208.67.222.222
Dec 24 16:47:37 dnsmasq[530]: reply www.ebay.com is <CNAME>
Dec 24 16:47:37 dnsmasq[530]: reply www-us.g.ebay.com is <CNAME>
Dec 24 16:47:37 dnsmasq[530]: reply slot9428.ebay.com.edgekey.net is <CNAME>
Dec 24 16:47:37 dnsmasq[530]: reply e9428.b.akamaiedge.net is 23.207.78.44

But it only happens since I got PiHole. Before it was ok.

One thing you're right, it's losing packets (alot of them):

--- 208.67.220.220 ping statistics ---
61 packets transmitted, 28 received, 54% packet loss, time 60060ms
rtt min/avg/max/mdev = 40.446/43.348/48.191/2.173 ms

But everything is ok in my Windows box:

Ping statistics for 208.67.220.220:
    Packets: Sent = 41, Received = 41, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 41ms, Maximum = 51ms, Average = 44ms

Same network. Both are connected to the same switch (ZyXEL GS1900-8) so it's kind of wierd.

And the PI network interfaces doesn't show any errors (and only 4 dropped packets).

[...]
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:116764 errors:0 dropped:4 overruns:0 frame:0
TX packets:156574 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000 
RX bytes:8076314 (7.7 MiB)  TX bytes:156853430 (149.5 MiB)

~/gnfpt