OPNsense Forum

English Forums => General Discussion => Topic started by: crissi on November 29, 2021, 04:55:50 PM

Title: Merge Unbound / DNSCrypt Proxy settings custom-options.conf
Post by: crissi on November 29, 2021, 04:55:50 PM
Hello,

i use the Unbound custom-options.conf actually with the following settings for DNSCrypt Proxy:

server:
do-not-query-localhost: no
forward-zone:
name: "."
forward-addr: 127.0.0.1@5353


I saw here in this Guide https://nguvu.org/pfsense/pfsense-baseline-setup/#dns%20resolver to make the DNS Resolver authoritative for the local Domain, adding the following snippet to the custom-options:

server:
local-data: "local.lan. 10800 IN SOA pfsense.local.lan. root.local.lan. 1 3600 1200 604800 10800"


My question, can i just add additionally the second setting to the custom-options.conf? Do i need to keep here a specific order somehow?


Thx!








Title: Re: Merge Unbound / DNSCrypt Proxy settings custom-options.conf
Post by: crissi on December 01, 2021, 10:35:06 AM
Any One?
Thx
Title: Re: Merge Unbound / DNSCrypt Proxy settings custom-options.conf
Post by: Patrick M. Hausen on December 01, 2021, 10:43:47 AM
You can put an arbitrary number of files into the new custom options directory - whatever seems best to you from a management point of view.

https://docs.opnsense.org/manual/unbound.html#advanced-configurations
Title: Re: Merge Unbound / DNSCrypt Proxy settings custom-options.conf
Post by: crissi on December 01, 2021, 10:51:20 AM
Thx, just saw further down in the documentation, to use instead of custom-options.conf for more permanent solution Templates ?

Now im wondering which is the best route to go
Title: Re: Merge Unbound / DNSCrypt Proxy settings custom-options.conf
Post by: Witcher on November 24, 2022, 07:16:32 PM
Quote from: pmhausen on December 01, 2021, 10:43:47 AM
You can put an arbitrary number of files into the new custom options directory - whatever seems best to you from a management point of view.

https://docs.opnsense.org/manual/unbound.html#advanced-configurations

Can you guide a newbie how to add custom options under unbound the documentation seems complicated