The issue I am facing:
Sorry, but I've been thrown into this a bit feet first, kinda.
I have a Ubuntu machine as my main machine and most of the tests are done from there.
Never really tested until now, but I have blocked that lovely site bookface - as an example.
I can NOT get to it from Firefox. "Unable to connect". Which is good.
But if I open a teminal
and type ping facebook.com
this happens:
ping facebook.com
PING facebook.com (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.018 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.027 ms
^C
--- facebook.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1024ms
rtt min/avg/max/mdev = 0.018/0.022/0.027/0.004 ms
Ok, good it isn't REALLY getting there. It is getting/going to 127.0.0.1
But how/why?
What I know:
A local file /etc/hosts over-rides the DNS. Got that.
But there is no entry on THIS machine in that file for that site.
Looking on PiHole's machine:
/etc/hosts
same.
So I'm stuck only out of curiosity, and just now I have enough problems trying to get my new network working.
Details about my system:
(Which system do you mean?)
RasPi 2B running PiHole. Buster.
PiHole is up to date.
THIS machine is a NUC running Ubuntu 22.04 and up to date maybe give or take a couple of days.
What I have changed since installing Pi-hole:
I've never really needed to do this/that before.
I am running PINGs to test if the sites are being blocked on the new network and am getting wrong results as the site CAN be pinged. But it is being blocked.
That makes it hard(er) to know if thing are or not working as I want.
Side note:
This new network is BELOW the existing one. (Yeah, NAT..... I hope that isn't a problem)
But until I get it working that's where it is staying.
Side note2:
Even if I move THIS machine up 1 level on the network I (Onto the older network) I can still PING blocked sites.
So I don't think it is anything to do with the new network.
Sorry, this may be outside the scope of PiHole, but I am way out of my depth with how to find what is going on and how this is happening.
If I dig
to facebook.com it is clearly blocked at PiHole.
dig facebook.com
; <<>> DiG 9.18.1-1ubuntu1.2-Ubuntu <<>> facebook.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15228
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;facebook.com. IN A
;; ANSWER SECTION:
facebook.com. 2 IN A 0.0.0.0 <-- This is pihole blocking it - yes?
;; Query time: 4 msec
;; SERVER: 192.168.0.83#53(192.168.0.83) (UDP) <-- Well this is PiHole's IP address.
;; WHEN: Tue Nov 22 14:03:27 AEDT 2022
;; MSG SIZE rcvd: 57
Anyone?