OPNsense Forum

English Forums => General Discussion => Topic started by: AseKarlsson on April 08, 2024, 07:48:36 PM

Title: Question on Unbound DNS – Host Overrides
Post by: AseKarlsson on April 08, 2024, 07:48:36 PM
Hi All,

I am not sure if I am right to try to use "Host Overrides" to be able to exclude some internal IPs from hitting the "Unbound DNS -Blocklist"?

This is a domain network so all clients talks first to the internal Windows DNS server that forwards.
Can this be configured and how?

In pfSense I could add the following to the DNS resolver, Custom Options to achieve this:

server:
    access-control-view: 192.168.0.40/8 bypass
    access-control-view: 192.168.0.0/8 dnsbl
view:
    name: "bypass"
    view-first: yes
view:
    name: "dnsbl"
    view-first: yes
    include: /var/unbound/pfb_dnsbl.*conf
Title: Re: Question on Unbound DNS – Host Overrides
Post by: zan on April 09, 2024, 12:26:08 PM
I don't use unbound DNSBL but if you are accustomed to custom config you may use it as described in https://docs.opnsense.org/manual/unbound.html#advanced-configurations

You may also install os-unboundcustom-maxit plugin from mimugmail repo, you can then paste your custom config through GUI.
Title: Re: Question on Unbound DNS – Host Overrides
Post by: AseKarlsson on April 09, 2024, 04:23:45 PM
Thanks Zan,

Downloaded the repo and installed the os-unboundcustom-maxit plugin.
Anyone with ideas how I should format the same code I used in pfSense DNS resolver?
Title: Re: Question on Unbound DNS – Host Overrides
Post by: AseKarlsson on April 14, 2024, 08:18:49 PM
Can this even be done this way nowdays?