Confused about secondary DNS server
▲ 0 r/pihole

Confused about secondary DNS server

Hello everyone.

I have been using PiHole for a couple of months now. In my router, I set the PiHole as the primary DNS server and 1.0.0.2 as the secondary DNS server.

When I've set this up, I was under the illusion that the secondary DNS server set in the router was a fallback server, in case the primary DNS server was down. Just now, I stumbled upon several posts in this subreddit explaining that this is not the case and that we should not set a secondary DNS server (unless it's another PiHole), as otherwise the PiHole basically doesn't work.

However, I just tested this with a website, and now I am confused:

  • I visit website XYZ from my mobile phone without WiFi: I see ads.
  • I visit website XYZ from my mobile phone with WiFi: I don't see ads.

It seems that the PiHole works, despite the secondary DNS server I've set in the routers setting. Can someone explain to me, why that is?

u/bliblabllubb — 11 hours ago

How secure is my local backup drive with ssfhs?

Hello everyone.

I have been interested in starting to self-host, and I have just been able to set up the first useful thing for myself (apart from a PiHole that I have running).

Since I am very afraid of making security mistakes, I would like to get feedback from you if my setup is secure or not.

The simple use case: I want to be able to back up files from my main computer to a hard disk, without having the hard disk attached to my main computer.

The setup:

  • A Raspberry Pi 4 running Raspberry Pi OS Lite (64-bit).
  • The Raspberry Pi can only be accessed via ed25519 key.
  • I configured a firewall on the Raspberry Pi with `ufw` to allow only traffic from the local subnet.
  • I then use sshfs to mount the hard disk connected with the Raspberry Pi to my main computer.
  • I plan to use rsync to back up my files.

Now I need your help: how secure is this setup? Did I make any major mistake? Is there something I could do better?

I'd be happy to get some feedback... 🙂

reddit.com
u/bliblabllubb — 3 days ago