What's new
  • 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!

Unbound Unbound Tuning for gaming

I mean it is all on netgate and nlnetlabs. I think they have better info on this matter. besides every time I ask about something it is always a negative response. I hope you don't do that at work.
 
every time I ask about something

The answer to you question was provided few times already, but you refuse to accept it. DNS resolution is unrelated to gaming. Your Unbound may slow down first queries compared to built-in Dnsmasq as forwarder to upstream DNS resolver with much larger than yours cache and responding immediately. This is a fact no matter what settings you have in the configuration file.

If you want a better hit rate it is best to change these settings

If you want constant low hit rate at any time just uninstall Unbound and use Google, Cloudflare, OpenDNS, etc. upstream DNS resolvers with already built large cache. It will spare router resources and save the time for meaningless tuning efforts.
 
This forum is not the best place for info on unbound dns. I trust netgate and nlnetlabs labs on this. they have a professional document that is laid out nice. Unbound is used on many systems and the info can be found elsewhere.
 
I trust netgate

Me too. I have two Netgate gaming appliances as gateways to my business networks. 🤪

You do whatever makes you happy, but test at some point the built-in Dnsmasq with Google upstream and compare the results with your DNS performance testing game, whatever it is. May get surprised by not noticing any difference without any tweaks.
 
Last edited:
The so-rcvbuf setting in Unbound DNS determines the size of the socket receive buffer used for handling incoming DNS queries. Setting so-rcvbuf to 4MB (so-rcvbuf: 4m) versus 1MB (so-rcvbuf: 1m) has implications for performance and system configuration:

  • 4MB (so-rcvbuf: 4m): A larger buffer helps handle traffic spikes more effectively, reducing the risk of packet loss and improving reliability during high-load scenarios. This is particularly beneficial for busy DNS servers or environments with high query volumes. However, the operating system may impose limits on how large the buffer can be set. On Linux systems, you may need to adjust net.core.rmem_max via sysctlor run Unbound with root privileges to allow larger buffer sizes.
    6
  • 1MB (so-rcvbuf: 1m): A smaller buffer is generally sufficient for less busy environments. However, during traffic surges, it may lead to dropped packets or increased latency. Some systems may not even allow this value to be fully allocated, as seen in error messages like so-rcvbuf 1048576 was not granted. Got 425984.
    5
In practice, using so-rcvbuf: 4m is recommended for better performance and reliability, especially on high-traffic or gaming-oriented DNS setups, provided that the system is configured to support the larger buffer size.
here we are still talking about dns translations .. with their buffer that keeps them in the buffer and their response speed .. however, I am absolutely sure that there is not a single game that could allocate a dns buffer larger than 1kb .. therefore, throwing an overflowing buffer does not happen .. :) games work on a completely different principle than spamming the domain system .. I have been working in the field of networks for many years and I understand the effort of any kind of tuning out .. but this is total nonsense .. if you want to create a dns server for a smaller corporate network it makes sense .. otherwise not at all
 
why have a guide for unbound and not use it. Been on this forum for a long time. even when I asked how to use DoT with unbound all I ever get in the forum is flak. Must be doing something right if it bothers you. the instructions are clear on Netgate. It clearly states that this will help with hit rate.
 
even when I asked how to use DoT with unbound all I ever get in the forum is flak

Because this one doesn't make sense either. Before you start using something you may want to know what is does and how it works.
 
This forum is not the best place for info on unbound dns. I trust netgate and nlnetlabs labs on this. they have a professional document that is laid out nice. Unbound is used on many systems and the info can be found elsewhere.
It's not our fault if you don't understand.
Try using other forums.
When you get the answer different from ours, you can come back here and celebrate that you (or your guide) are right.
 

Latest threads

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!
Back
Top