pkg install getdns
su -m unbound -c /usr/local/sbin/unbound-anchor
nano /usr/local/etc/rc.d/stubby
: ${stubby_enable="YES"}
nano /usr/local/etc/stubby/stubby.yml
# dnssec_return_status: GETDNS_EXTENSION_TRUE# the stuby doku don't know this command -> older versions also?# actually the command is this:dnssec: GETDNS_EXTENSION_TRUE # remove #listen_addresses: - 127.0.0.1@8053 # add specific port #- 0::1 # important!: if you don't use ipv6 -> comment out; # if you use ipv6 the set the right port; for example: "- 0::1@8053" # otherwise unbound can't srart, becouse without port, stubby uses the same port: 53, and stubby start faster then unbound after a reboot# tls_ca_path: "/usr/local/share/certs/ca-root-nss.crt"tls_ca_file: "/usr/local/share/certs/ca-root-nss.crt" # add this line# for not sequentially using the listed upstreamserver,# but for randomly usinground_robin_upstreams: 1 # add this linednssec_trust_anchors: "/usr/local/sbin/unbound-anchor" # add the right pathtls_cipher_list: "EECDH+AESGCM:EECDH+CHACHA20" # remove #tls_ciphersuites: "TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256" # remove # be aware: Use it only with OpenSSL; don't use it with LibreSSL -> see supplementtls_min_version: GETDNS_TLS1_2 # remove #
https://discourse.pi-hole.net/t/unbound-and-qname-minimisation/10038/4# You will and should get HOORAY ! - if you used the name servers listed in this guide for your Stubby configuration. # Note: Starting with Unbound 1.7.2 qname minimisation is enabled by default. # However, I still add these settings manually. # These settings are entered under Unbound " Custom Options": qname-minimisation: yes qname-minimisation-strict: yes harden-below-nxdomain: yes
unbound-checkconf /var/unbound/unbound.conf
dig txt qnamemintest.internet.nl +short
nano /var/unbound/unbound.conf
nano /etc/rc.conf.d/stubby
stubby_enable="YES"stubby_bootup_run="/usr/local/etc/rc.d/stubby"
chmod 755 /etc/rc.conf.d/stubby
server:do-not-query-localhost: noforward-zone: name: "." # Allow all DNS queries forward-addr: 127.0.0.1@8053
stubby -l