What's new

Unbound - Authoritative Recursive Caching DNS Server

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Status
Not open for further replies.
I'm creating a new post here because there are too many characters to update post 1042 above. :)

The unbound.conf file I'm using right now is

(Please use this only as an example for an RT-AX88U and an ISP with IPv6 connectivity).

Code:
# rgnldo User Install Custom Version vx.xx (Date Loaded by unbound_manager Tue Feb  4 17:41:31 MST 2020)
server:
# port to answer queries from
port: 53535
#########################################
# integration LOG's 
#
verbosity: 2
logfile: "/opt/var/lib/unbound/unbound.log"
log-time-ascii: yes
log-queries: yes
log-replies: yes
#########################################
do-ip4: yes
#do-ip6: no
do-udp: yes
do-tcp: yes
# don't be picky about interfaces but consider your firewall
interface: 0.0.0.0
access-control: 0.0.0.0/0 refuse
access-control: 127.0.0.0/8 allow
access-control: 10.0.0.0/8 allow
access-control: 172.16.0.0/16 allow
access-control: 192.168.0.0/24 allow
# RFC1918 private IP address - Protects against DNS Rebinding
private-address: 127.0.0.0/8
private-address: 169.254.0.0/16
private-address: 10.0.0.0/8
private-address: 172.16.0.0/12
private-address: 192.168.0.0/16
#########################################
# integration IPV6
#
 do-ip6: yes
 interface: ::0
 access-control: ::0/0 refuse
 access-control: ::1 allow
 private-address: fd00::/8
 private-address: fe80::/10
#########################################
# perform a query against AAAA record exists
    module-config: "dns64 validator iterator"
    dns64-prefix: 64:FF9B::/96
# no threads and no memory slabs for threads
num-threads: 1
msg-cache-slabs: 2
rrset-cache-slabs: 2
infra-cache-slabs: 2
key-cache-slabs: 2
# tiny memory cache
key-cache-size: 8m
msg-cache-size: 8m
rrset-cache-size: 16m
cache-max-ttl: 21600
cache-min-ttl: 5
prefetch: yes
prefetch-key: yes
serve-expired: yes
serve-expired-ttl: 3600
incoming-num-tcp: 600
outgoing-num-tcp: 100
ip-ratelimit: 100
#########################################
# Options for integration with TCP/TLS Stubby
# udp-upstream-without-downstream: yes
#########################################
# prefetch
prefetch: yes
prefetch-key: yes
minimal-responses: yes
# gentle on recursion
hide-identity: yes
hide-version: yes
do-not-query-localhost: no
qname-minimisation: yes
harden-glue: yes
harden-below-nxdomain: yes
rrset-roundrobin: yes
aggressive-nsec: yes
deny-any: yes
# Self jail Unbound with user "unbound" to /var/lib/unbound
username: "nobody"
directory: "/opt/var/lib/unbound"
chroot: "/opt/var/lib/unbound"
# The pid file
pidfile: "/opt/var/run/unbound.pid"
# ROOT Server's
root-hints: "/opt/var/lib/unbound/root.hints"
# DNSSEC
auto-trust-anchor-file: "/opt/var/lib/unbound/root.key"
#########################################
# Adblock blacklist
#include: /opt/var/lib/unbound/adblock/adservers
#include: /opt/var/lib/unbound/adblock/firefox_DOH
#########################################
remote-control:
control-enable: yes
control-interface: 127.0.0.1
control-port: 953
server-key-file: "/opt/var/lib/unbound/unbound_server.key"
server-cert-file: "/opt/var/lib/unbound/unbound_server.pem"
control-key-file: "/opt/var/lib/unbound/unbound_control.key"
control-cert-file: "/opt/var/lib/unbound/unbound_control.pem"
#########################################
#forward-zone:
#   name: "."
#   forward-addr: 127.0.0.1@5453
#   forward-addr: 0::1@5453 # integration IPV6
#########################################
auth-zone:
    name: "."
    url: "https://www.internic.net/domain/root.zone"
    fallback-enabled: yes
    for-downstream: no
    for-upstream: yes
    zonefile: root.zone

The router was rebooted with 2 days and 12 hours of uptime in my previous post above.

The cache hit ratio was 87% in unbound_manager 's'.

Before rebooting, I did notice the changes I had made, but after the reboot, they are even more apparent and so far, this is only with a 41% cache hit ratio too. :)

No matter whether surfing the web, accessing the NAS, or using PuTTY to access amtm, ChannelHog or unbound_manager, the experience is obviously faster and more 'snappy'. :)

The only thing missing is the ability to have unbound in Scribe, but the log grows too large, too fast and crashes the web GUI still. :(

The network responsiveness now rivals any corporate or city network I've ever used. Can it get any better?

I'm going to buy a second RT-AX88U router (hopefully in the next few months) and see if AiMesh is all it's cracked up to be. :)
 
Last edited:
What I did:

Log = no
Integrate Stubby = no
Adblocker = no
Disable Firefox DoH = y
Customise cpu = y

Sorry for all the questions. But what you've listed there, where do I find those settings? Thanks for your time :)
 
@dave14305 thank you. I also updated the post above with the changes.

unbound_manager shows no issues either with the updated config file. :)
 
thanks for all this info. Unbound_manager also showing no errors

@L&LD
When doing a dns Leak test, what are you getting? WAN IP or Cloudfare
 
Last edited:
thanks for all this info. Unbound_manager also showing no errors

@L&LD
When doing a dns Leak test, what are you getting? WAN IP or Cloudfare

I have identical unbound setup to @L&LD - [except IP6 disabled in mine] - and I get WAN ip address in response to dns leak tests.
Confused me to begin with :eek: ... but now embarrassed to admit it :oops:. ;).

I simply ran install script from Github - took same options described by L&LD - but only added the "auth-zone" section to the bottom of my unbound.config file ... and the addition he mentions to init-start in /jffs/scripts.

Interestingly - my system with unbound does not score as well as it used to before unbound on this DNSSEC test ...
https://rootcanary.org/test.html :confused: - still use Quad9 for DoT under WAN settings!
 
Sorry for all the questions. But what you've listed there, where do I find those settings? Thanks for your time :)

Once you have SSH into your router, & copy & pasted the link from here,
https://github.com/MartineauUK/Unbound-Asuswrt-Merlin/blob/master/Readme.md

Select ‘i’ for install, then you will be asked questions.
Answer either ‘y’ for yes, or press ‘enter’ for no.

What I answered is in my post above.:)
NB, no other tweaks or modifications made, I’m just running Unbound ‘as is’.
 
Once you have SSH into your router, & copy & pasted the link from here,
https://github.com/MartineauUK/Unbound-Asuswrt-Merlin/blob/master/Readme.md

Select ‘i’ for install, then you will be asked questions.
Answer either ‘y’ for yes, or press ‘enter’ for no.

What I answered is in my post above.:)
NB, no other tweaks or modifications made, I’m just running Unbound ‘as is’.

That's all I will do as well. I'm no wiz at this stuff, so I play it safe. Thanks for the help.
 
@kernol here is my rootcanary.org results.

How are yours different?

rootcanary.org2020-02-04.png
 
@kernol here is my rootcanary.org results.

How are yours different?

Mine precisely the same as yours {Thumbs-Up}.
However - prior to Unbound my scores looked like this ...
DNSSEC rootcanary-test.JPG
 
@kernol okay, I want that too! :)
 
@kernol why aren't you still using Quad9 then?
 
@kernol why aren't you still using Quad9 then?
I am - but unbound install has an impact on DNSSEC results.

If I uninstall unbound - I get back to the same results shown on my best scores above.

Install unbound again - and boom - back to the lesser scores.

It makes no difference whether I ask unbound to bind with stubby or not - same lesser scores.
 
...

The only thing missing is the ability to have unbound in Scribe, but the log grows too large, too fast and crashes the web GUI still. :(

@L&LD - you can have unbound in Scribe [option is available under @Martineau unbound install script] - but clearly not the full live logs which will certainly crash the webgui. We will have to wait for the combo of @Martineau and @Jack Yaz to give us an unbound webpage in the gui to show stats etc.

At this time the unbound script option for Scribe simply injects an unbound script into /opt/entware/etc/syslog-ng.d/ - but does not provide a script for logrotate. I basically "cloned" the pixelserv logrotate script and dropped it into /opt/entware/etc/logrotate.d/

Works fine in Scribe - and at least gives an indication that unbound is running and will track any activities invoked through unbound_manager.
 
Status
Not open for further replies.

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top