OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Basic bind question
« previous next »
  • Print
Pages: [1]

Author Topic: Basic bind question  (Read 3885 times)

paradox55

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Basic bind question
« on: July 07, 2019, 10:27:28 pm »
I'd like to use the DNSBL in bind, but want to continue using unbound as my DNS server. BIND has a dns-forward option, but it's very specific about it only being for unknown dns queries.

Ideally, I'd like it to go like so for every DNS query:

BIND (53) / DNSBL -> Unbound (port 5353) / ad-blacklist, domain blacklist config files, etc -> DNSEC/TLS via port 853 to 1.1.1.1

Would setting dns-forward in bind be all I need to do?
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Basic bind question
« Reply #1 on: July 08, 2019, 06:01:32 am »
Why not using dnscrypt plugin and DoH?
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

paradox55

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Re: Basic bind question
« Reply #2 on: July 08, 2019, 02:47:47 pm »
Quote from: mimugmail on July 08, 2019, 06:01:32 am
Why not using dnscrypt plugin and DoH?

dnscrypt w/wo DoH stopped working constantly and needed to be restarted each time. So, the plugin seems a little borked.

Besides unbound is great with tls. It would be nice if it had the same dnsbl bind/dnscrypt have though.
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Basic bind question
« Reply #3 on: July 08, 2019, 03:31:20 pm »
I had a report the daemon always crashes when you have IPv6 enabled in plugin but not on interface.
I'm using it at home perfectly fine all the time.
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

paradox55

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Re: Basic bind question
« Reply #4 on: July 08, 2019, 04:31:10 pm »
Quote from: mimugmail on July 08, 2019, 03:31:20 pm
I had a report the daemon always crashes when you have IPv6 enabled in plugin but not on interface.
I'm using it at home perfectly fine all the time.

I'm pretty sure it was disabled on the plugin side as well.

I'm just going to go make a feature request in 19.7 for DNSBL on Unbound. Thanks for taking the time to reply though!
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Basic bind question
« Reply #5 on: July 08, 2019, 04:32:49 pm »
Quote from: paradox55 on July 08, 2019, 04:31:10 pm

I'm just going to go make a feature request in 19.7 for DNSBL on Unbound. Thanks for taking the time to reply though!

You'd not be the first one :)
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

paradox55

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Re: Basic bind question
« Reply #6 on: July 08, 2019, 04:37:08 pm »
Quote from: mimugmail on July 08, 2019, 04:32:49 pm
Quote from: paradox55 on July 08, 2019, 04:31:10 pm

I'm just going to go make a feature request in 19.7 for DNSBL on Unbound. Thanks for taking the time to reply though!

You'd not be the first one :)

So I'm not exactly familiar with how DNSBL works. This - https://github.com/oznu/dns-zone-blacklist/tree/master/unbound - for unbound does the same thing as the DNSBL on bind/dnscrypt, correct?

If so, it probably wouldn't be hard to convert the existing blacklists into unbound format, yeah?
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Basic bind question
« Reply #7 on: July 08, 2019, 04:57:39 pm »
Yep, but the hardest part is building a plugin around it so you can manage it via GUI.
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

paradox55

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Re: Basic bind question
« Reply #8 on: July 10, 2019, 05:18:12 am »
Quote from: mimugmail on July 08, 2019, 04:57:39 pm
Yep, but the hardest part is building a plugin around it so you can manage it via GUI.

I ended up bypassing bind and making a bash script to convert blacklists into unbound format. I now have basically all of the pihole blacklists running.

My only concern is how large blacklists may impact performance and if it would be a better idea to run them in a ramdisk.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Basic bind question
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2