If i am right, its enough to just add the TLS-enabled DNS-servers to the DNS servers-list under [System] -> [Settings] -> [General] AND enabling DNSSEC under [Services] -> [Unbound DNS] -> [General].I just noticed this, because "Domain signature validation (DNSSEC)" on the following test page turned from red to green after i just enablded DNSSEC: http://conn.internet.nl/connection/Seems there is no need to enter TLS-enabled Servers under [Services] -> [Unbound DNS] -> [Miscellaneous].Can one confirm this?If you verify it, remember that "TTL for Host cache entries"-value under[Services] -> [Unbound DNS] -> [Advanced]is 15min, so set it to 1min to test ist. Or is it just because my default ISP-Gateway (Vodafone) supports DNSSEC?
unbound[99672]: [99672:1] debug: rtt=2494unbound[99672]: [99672:1] debug: servselect ip4 1.0.0.1 port 853 (len 16)unbound[99672]: [99672:1] debug: selrtt 275unbound[99672]: [99672:1] debug: sending to target: <.> 2606:4700:4700::1001#853--> unbound[99672]: [99672:1] error: outgoing tcp: bind: Can't assign requested addressunbound[99672]: [99672:1] debug: ip6 2606:4700:4700::1111 port 853 (len 28)unbound[99672]: [99672:1] debug: ip4 1.1.1.1 port 853 (len 16)unbound[99672]: [99672:1] debug: servselect ip6 2606:4700:4700::1111 port 853 (len 28)
You can do a package capture on WAN port 853, there you can see if DNS-over-TLS is used. The log of unbound is hard to read...DNSSEC not provided by many DNS servers, but in theory you could use it in addition to DNS-over-TLS.
1 0.000000 123.123.123.123 5.9.164.112 TLSv1.2 132 Application Data2 0.017167 5.9.164.112 123.123.123.123 TLSv1.2 386 Application Data3 0.017193 123.123.123.123 5.9.164.112 TCP 56 22792 %u2192 853 [ACK] Seq=77 Ack=331 Win=507 Len=0 TSval=2814304945 TSecr=2568102504 0.017292 123.123.123.123 5.9.164.112 TLSv1.2 138 Application Data5 0.034172 5.9.164.112 123.123.123.123 TLSv1.2 349 Application Data6 0.034188 123.123.123.123 5.9.164.112 TCP 56 22792 %u2192 853 [ACK] Seq=159 Ack=624 Win=508 Len=0 TSval=2814304965 TSecr=2568102677 0.034279 123.123.123.123 46.182.19.48 TLSv1.2 143 Application Data8 0.057196 46.182.19.48 123.123.123.123 TLSv1.2 284 Application Data9 0.057229 123.123.123.123 46.182.19.48 TCP 56 22086 %u2192 853 [ACK] Seq=88 Ack=229 Win=508 Len=0 TSval=2911856615 TSecr=699134859
Can I confirm there is currently no way (OPNsense 21.1.4) to specify the hostname for DoT DNS servers with the web gui (Services > Unbound DNS > Miscellaneous > DNS over TLS Servers)?
At the moment I have specified the DoT servers under Services > Unbound DNS > Custom Options (e.g. 1.1.1.1@853#cloudflare-dns.com).
Correct, but Unbound custom options will be removed in 21.7.Also see: https://github.com/opnsense/core/pull/4858