OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: leacho73 on December 01, 2021, 09:10:04 AM

Title: Unbound Custom Options
Post by: leacho73 on December 01, 2021, 09:10:04 AM
Hi All,

Is it possible to still set Unbound Custom options anywhere in the 21.7.x version of OpnSense at all? I'd like to statically set where Unbound sends its forward lookups (not via the system DNS servers) - for example, in 20.x I was able to set the following custom options:

server:
forward-zone:
name: "."
forward-ssl-upstream: yes
forward-addr: 1.1.1.1@853 #Cloudflare ip4
forward-addr: 1.0.0.1@853 #Cloudflare ip4
forward-addr: 2606:4700:4700::1111@853 #Cloudflare ip6
forward-addr: 2606:4700:4700::1001@853 #Cloudflare ip6


But I don't seem to have this option now?

Thanks
Title: Re: Unbound Custom Options
Post by: Patrick M. Hausen on December 01, 2021, 09:11:34 AM
https://docs.opnsense.org/manual/unbound.html#advanced-configurations
Title: Re: Unbound Custom Options
Post by: leacho73 on December 01, 2021, 09:23:59 AM
Spot on - thank you!! :)
Title: Re: Unbound Custom Options
Post by: chemlud on December 01, 2021, 09:36:15 AM
Quote from: leacho73 on December 01, 2021, 09:10:04 AM
Hi All,

Is it possible to still set Unbound Custom options anywhere in the 21.7.x version of OpnSense at all? I'd like to statically set where Unbound sends its forward lookups (not via the system DNS servers) - for example, in 20.x I was able to set the following custom options:

server:
forward-zone:
name: "."
forward-ssl-upstream: yes
forward-addr: 1.1.1.1@853 #Cloudflare ip4
forward-addr: 1.0.0.1@853 #Cloudflare ip4
forward-addr: 2606:4700:4700::1111@853 #Cloudflare ip6
forward-addr: 2606:4700:4700::1001@853 #Cloudflare ip6


But I don't seem to have this option now?

Thanks

Mildly OT, but imho your addresses should look like

forward-addr: 1.1.1.1@853#Cloudflare ip4

i.e. no space before the #...