Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: Pi-hole  (Read 3041 times)

Intoxicating

  • Just arrived
  • *
  • Posts: 1
Pi-hole
« on: April 29, 2020, 11:44:05 AM »

Hey,

I’ve been using a Pi-hole for years without any issues with my old Unifi USG Router, two weeks ago got a Firebrick 2900 and now stuck on the correct config to get the brick to use the Pi-hole and not cause issues.

The Pi-Hole works without issue if I just change the clients manually to relevant addresses but whenever I make the brick give those addresses out via dhcp the dns stops.
Logged

meritez

  • Content Team
  • Kitizen
  • *
  • Posts: 1626
Re: Pi-hole
« Reply #1 on: April 29, 2020, 09:30:47 PM »

Any reason you are not making pi-hole give out dhcp?
Logged

Weaver

  • Senior Kitizen
  • ******
  • Posts: 11459
  • Retd s/w dev; A&A; 4x7km ADSL2 lines; Firebrick
Re: Pi-hole
« Reply #2 on: April 30, 2020, 12:33:24 AM »

I have a Firebrick 2900, what is the config you are using for dns right now ? The xml, that is.
Logged

chenks

  • Kitizen
  • ****
  • Posts: 1106
Re: Pi-hole
« Reply #3 on: April 30, 2020, 08:06:55 AM »

Any reason you are not making pi-hole give out dhcp?

usually the better option to leave DHCP on the router, and set the router to give up the IP of the pi-hole for DNS via DHCP (with an external DNS set as secondary).
that means if the pi-hole fails you don't lose DHCP or DNS.
Logged

meritez

  • Content Team
  • Kitizen
  • *
  • Posts: 1626
Re: Pi-hole
« Reply #4 on: April 30, 2020, 10:10:49 AM »

usually the better option to leave DHCP on the router, and set the router to give up the IP of the pi-hole for DNS via DHCP (with an external DNS set as secondary).
that means if the pi-hole fails you don't lose DHCP or DNS.

What do you mean secondary dns?

DNS is a race condition, a dns request is sent to all dns servers simultaneously, and the one that replies first wins.

There is no such thing as secondary dns.
Logged

chenks

  • Kitizen
  • ****
  • Posts: 1106
Re: Pi-hole
« Reply #5 on: April 30, 2020, 10:19:09 AM »

secondary as in "alternate DNS server"

if you have your pi-hole set as your only DNS and it goes down then you lose all DNS resolution.
if you add a second/alternate DNS server then you won't lose it should the pi-hole go down.
« Last Edit: April 30, 2020, 10:24:39 AM by chenks »
Logged

Alex Atkin UK

  • Addicted Kitizen
  • *****
  • Posts: 5272
    • Thinkbroadband Quality Monitors
Re: Pi-hole
« Reply #6 on: April 30, 2020, 07:55:45 PM »

As pointed out, if you have a secondary DNS then half of your DNS lookups may be from normal DNS with half from the PiHole, not at all what you want.

I'd be more curious if the Firebrick can't do everything the PiHole is in the first place?
Logged
Broadband: Zen Full Fibre 900 + Three 5G Routers: pfSense (Intel N100) + Huawei CPE Pro 2 H122-373 WiFi: Zyxel NWA210AX
Switches: Netgear MS510TXUP, Netgear MS510TXPP, Netgear GS110EMX My Broadband History & Ping Monitors

chenks

  • Kitizen
  • ****
  • Posts: 1106
Re: Pi-hole
« Reply #7 on: May 01, 2020, 07:39:45 AM »

As pointed out, if you have a secondary DNS then half of your DNS lookups may be from normal DNS with half from the PiHole, not at all what you want.

better than having no DNS though should the pi-hole fail.
Logged

Alex Atkin UK

  • Addicted Kitizen
  • *****
  • Posts: 5272
    • Thinkbroadband Quality Monitors
Re: Pi-hole
« Reply #8 on: May 02, 2020, 05:28:38 AM »

better than having no DNS though should the pi-hole fail.

Its not though, as at best it completely breaks the point of having the PiHole, at worst it will utterly break things due to randomly resolving domains normally and other times the PiHole override (as I presume PiHole is being used for AdBlocks, etc).

Its not advised to even use two different DNS providers if their results might differ.
« Last Edit: May 02, 2020, 05:39:51 AM by Alex Atkin UK »
Logged
Broadband: Zen Full Fibre 900 + Three 5G Routers: pfSense (Intel N100) + Huawei CPE Pro 2 H122-373 WiFi: Zyxel NWA210AX
Switches: Netgear MS510TXUP, Netgear MS510TXPP, Netgear GS110EMX My Broadband History & Ping Monitors

chenks

  • Kitizen
  • ****
  • Posts: 1106
Re: Pi-hole
« Reply #9 on: May 02, 2020, 08:27:12 AM »

then you need to run two separate pi-hole servers then to allow for failure.
running just 1 DNS server is fool-hardy.
it's why third party DNS providers provide 2 IP addresses to use.
Logged

Alex Atkin UK

  • Addicted Kitizen
  • *****
  • Posts: 5272
    • Thinkbroadband Quality Monitors
Re: Pi-hole
« Reply #10 on: May 02, 2020, 11:34:01 PM »

then you need to run two separate pi-hole servers then to allow for failure.
running just 1 DNS server is fool-hardy.
it's why third party DNS providers provide 2 IP addresses to use.

If you only have one router then that's your biggest point of failure anyway and usually where most people resolve their DNS, their SINGLE DNS cache server.

It doesn't hurt to have a backup DNS server that duplicates the primary, but its certainly overkill for most home users.
Logged
Broadband: Zen Full Fibre 900 + Three 5G Routers: pfSense (Intel N100) + Huawei CPE Pro 2 H122-373 WiFi: Zyxel NWA210AX
Switches: Netgear MS510TXUP, Netgear MS510TXPP, Netgear GS110EMX My Broadband History & Ping Monitors

chenks

  • Kitizen
  • ****
  • Posts: 1106
Re: Pi-hole
« Reply #11 on: May 03, 2020, 01:19:24 PM »

but if the router fails then DNS resolution is the least of your worries.
and one might say setting up a pi-hole dns server is also overkill for most home users.
Logged

meritez

  • Content Team
  • Kitizen
  • *
  • Posts: 1626
Re: Pi-hole
« Reply #12 on: April 22, 2021, 04:10:01 PM »

Finally put my pihole in the cloud, £19 a year for no adverts on dedicated hardware.
Logged

meritez

  • Content Team
  • Kitizen
  • *
  • Posts: 1626
Re: Pi-hole
« Reply #13 on: May 08, 2021, 01:37:40 PM »

Swapped from pihole to adguard home on a virmach VPS.
£18 a year for a DNS in the cloud.

Reasons to switch, Kitz adverts are displayed, and I can clearly see malware requests etc.

Have to have a static IP at home, though adguard also supports DBs over Https certificate authentication and DNS over TLS and DNS over quic.

This means I can create DNS over Https certificates for my iOS and Android devices only open port 443 to the internet and have ad blocking while out.
https://labzilla.io/blog/adguard-dns-over-https

Compare this to how many unprotected pihole are out there in the wild doing open recursion https://www.shodan.io/search?query=%22dnsmasq-pi-hole%22+%22Recursion%3A+enabled%22 and it just makes sense.
Logged