root@uribou:~ # cat /usr/local/etc/unbound.opnsense.d/dot.conf # Forward zones over TLSserver: tls-cert-bundle: /etc/ssl/cert.pemforward-zone: name: "." forward-tls-upstream: yes forward-addr: 1.1.1.1@853#cloudflare-dns.comroot@uribou:~ # ls /etc/ssl/blacklisted cert.pem certs openssl.cnfroot@uribou:~ # ls /etc/ssl/certs002c0b4f.0 3513523f.0 626dceaf.0 a3418fda.0 e113c810.002265526.0 3bde41ac.0 653b494a.0 a94d09e5.0 e18bfb83.003179a64.0 3e44d2f7.0 68dd7389.0 aee5f10d.0 e35234b1.0062cdee6.0 3e45d192.0 6b99d060.0 b0e59380.0 e36a6752.0064e0aa9.0 3fb36b73.0 6d41d539.0 b1159c4c.0 e73d606e.006dc52d5.0 40193066.0 6fa5da56.0 b433981b.0 e868b802.009789157.0 4042bcee.0 706f604c.0 b66938e9.0 e8de2f56.00a775a30.0 40547a79.0 749e9e03.0 b727005e.0 ee64a828.00b1b94ef.0 406c9bb1.0 75d1b2ed.0 b7a5b843.0 eed8c118.00bf05006.0 4304c5e5.0 76cb8f92.0 b81b93f0.0 ef954a4e.00f5dc4f3.0 48bec511.0 76faf6c0.0 bf53fb88.0 f081611a.00f6fa695.0 4a6481c9.0 7719f463.0 c01eb047.0 f0c70a8d.01001acf7.0 4b718d9b.0 773e07ad.0 c28a8a30.0 f249de83.0106f3e4d.0 4bfab552.0 7aaf71c0.0 ca6e4ad9.0 f30dd6ad.014bc7599.0 4f316efb.0 7f3d5d1d.0 cbf06781.0 f3377b1b.01636090b.0 5273a94c.0 8160b96c.0 cc450945.0 f387163d.018856ac4.0 5443e9e3.0 8cb5ee0f.0 cd58d51e.0 f39fc864.01d3472b9.0 54657681.0 8d86cdd1.0 cd8c0d63.0 f51bb24c.01e08bfd1.0 57bcb2da.0 8d89cda1.0 ce5e74ef.0 fa5da96b.01e09d511.0 5ad8a5d6.0 930ac5d2.0 d4dae3dd.0 fc5a8f99.0244b5494.0 5cd81ad7.0 93bc0acc.0 d6325660.0 fe8a2cd8.02923b3f9.0 5d3033c5.0 9482e63a.0 d7e8dc79.0 feffd413.02ae6433e.0 5e98733a.0 988a38cb.0 d887a5bb.0 ff34af3f.02b349938.0 5f15c80c.0 9b5697b0.0 dc4d6a89.02e5ac55d.0 5f618aec.0 9c8dfbd4.0 dd8e9d41.032888f65.0 607986c7.0 9d04f354.0 de6d66f3.0
error: SERVFAIL <opnsense.org. A IN>: all the configured stub or forward servers failed, at zone . no server to query nameserver addresses not usable have no nameserver names
How should I packet capture to illuminate why this won't work even with an unencrypted connection to a separate port on localhost?!
root@unbound-test:~# kdig -d @1.1.1.1 +dnssec +tls-ca=/etc/ssl/certs/ca-certificates.crt +tls-host=cloudflare-dns.com home.cern;; WARNING: can't setlocale, disabling IDN;; DEBUG: Querying for owner(home.cern.), class(1), type(1), server(1.1.1.1), port(853), protocol(TCP);; DEBUG: TLS, imported 140 certificates from '/etc/ssl/certs/ca-certificates.crt';; WARNING: can't connect to 1.1.1.1@853(TCP);; ERROR: failed to query server 1.1.1.1@853(TCP)
Why are you needing to use Custom Options to forward to a port on localhost?Shouldn't SERVICES: UNBOUND DNS: QUERY FORWARDING do what it says on the tin and forward requests rather than failing even to address another port on the same host?
server:do-not-query-localhost: noforward-zone:name: "."forward-addr: 127.0.0.1@8053
root@uribou:~ # cat /usr/local/etc/unbound.opnsense.d/dot.confserver: do-not-query-localhost: no# Forward zonesforward-zone: name: "." forward-addr: 127.0.0.1@5353