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 Tuning for gaming

Jack-Sparr0w

Regular Contributor
ip ratelimit 1000
so rcvbuf 4m
incoming num tcp 950 best for overhead
outgoing num tcp 200 best for overhead
cache max ttl 14400
serve expired ttl 3600
# tiny memory cache
key-cache-size: 16m # L&LDv1.03 (Orig 8m) RT-AX88U For RT-AC86U use (8m)
msg-cache-size: 16m # L&LDv1.03 (Orig 8m) RT-AX88U For RT-AC86U use (8m)
rrset-cache-size: 32m # L&LDv1.03 (Orig 16m) RT-AX88U For RT-AC86U use (16m)

# no threads and no memory slabs for threads
num-threads: 4 # L&LDv1.03 (Orig 1) RT-AX88U For RT-AC86U use (2)
msg-cache-slabs: 4 # L&LDv1.03 (Orig 2) RT-AX88U For RT-AC86U use (2)
rrset-cache-slabs: 4 # L&LDv1.03 (Orig 2) RT-AX88U For RT-AC86U use (2)
infra-cache-slabs: 4 # L&LDv1.03 (Orig 2) RT-AX88U For RT-AC86U use (2)
key-cache-slabs: 4 # L&LDv1.03 (Orig 2) RT-AX88U For RT-AC86U use (2)

Anyway to make this faster?

use (vx) to edit unbound config file (stock settings are slow)

4 core cpu and 1 gig ram
 
Last edited:
Its more responsive due to jacking up the stats. any idea how to push it. so yes this does affect gaming. There is even recommended settings geared for gaming with unbound.
 
Its more responsive due to jacking up the stats. any idea how to push it. so yes this does affect gaming.
Sorry, what is "it"?

There is even recommended settings geared for gaming with unbound.
Can you post a link these recommended settings. I've personally never come across a game where any marginal differences in DNS lookups were relevant. But perhaps there is some specific game where it does make a difference.
 
Unbound DNS tuning for gaming can involve optimizing the DNS server to reduce latency and improve response times, which can be crucial for online gaming performance. Based on the context provided, here are some relevant tuning tips:

  • Disable caching in Pi-hole: To avoid redundant processing, it's recommended to turn off caching in the Pi-hole instance when using Unbound. This prevents Pi-hole from performing duplicate DNSSEC validation and caching, which can slow down the system.2
  • Adjust Unbound cache settings: Tuning the Unbound cache can significantly improve performance. For example, setting cache-size=0 in the Pi-hole configuration file can help avoid conflicts with Unbound's caching mechanism.2 Additionally, configuring Unbound to serve expired entries can help maintain fast response times by providing cached results even when they are slightly outdated.2
  • Optimize Unbound configuration: The Unbound configuration file can be adjusted to improve performance. For instance, setting num-threads to the number of CPU cores, increasing msg-cache-size and rrset-cache-size, and adjusting outgoing-range can all contribute to better performance.3
  • Use libevent for better performance: Installing and configuring libevent can allow Unbound to handle more file descriptors efficiently, which can improve performance, especially under heavy load.3
  • Increase socket buffer size: Adjusting the socket buffer size using so-rcvbuf can help handle spikes in traffic and improve reliability.3
These adjustments can help ensure that Unbound operates efficiently, providing fast and reliable DNS resolution for gaming and other applications.
 
Unbound DNS tuning for gaming can involve optimizing the DNS server to reduce latency and improve response times, which can be crucial for online gaming performance. Based on the context provided, here are some relevant tuning tips:

  • Disable caching in Pi-hole: To avoid redundant processing, it's recommended to turn off caching in the Pi-hole instance when using Unbound. This prevents Pi-hole from performing duplicate DNSSEC validation and caching, which can slow down the system.2
  • Adjust Unbound cache settings: Tuning the Unbound cache can significantly improve performance. For example, setting cache-size=0 in the Pi-hole configuration file can help avoid conflicts with Unbound's caching mechanism.2 Additionally, configuring Unbound to serve expired entries can help maintain fast response times by providing cached results even when they are slightly outdated.2
  • Optimize Unbound configuration: The Unbound configuration file can be adjusted to improve performance. For instance, setting num-threads to the number of CPU cores, increasing msg-cache-size and rrset-cache-size, and adjusting outgoing-range can all contribute to better performance.3
  • Use libevent for better performance: Installing and configuring libevent can allow Unbound to handle more file descriptors efficiently, which can improve performance, especially under heavy load.3
  • Increase socket buffer size: Adjusting the socket buffer size using so-rcvbuf can help handle spikes in traffic and improve reliability.3
These adjustments can help ensure that Unbound operates efficiently, providing fast and reliable DNS resolution for gaming and other applications.
Can you provide a link to the source of this information.
 
No link I can find from all info I grabbed.
Where did the information you posted in #7 come from? It looks like nonsense generated by A.I.

Try my settings and see the responsiveness. You have to do math to find out what numbers should be there.
I don't use Unbound. If you want to optimize Unbound for normal web browsing then that's a different matter and I think there are already many posts about that.
 
It’s another form of placebo effect. Once any DNS query is resolved and cached (by any resolver you choose), there’s not much performance gain to be realized.
 
You have to do math

Your math is wrong. No Unbound settings on your end-user device will make root servers respond faster nor cached queries reach local clients faster. Once resolved and cached the address is 1ms away for Ethernet connected gaming device. And skip AI generated crap.
 
Unbound DNS tuning for gaming can involve optimizing the DNS server to reduce latency and improve response times, which can be crucial for online gaming performance. Based on the context provided, here are some relevant tuning tips:

  • Disable caching in Pi-hole: To avoid redundant processing, it's recommended to turn off caching in the Pi-hole instance when using Unbound. This prevents Pi-hole from performing duplicate DNSSEC validation and caching, which can slow down the system.2
  • Adjust Unbound cache settings: Tuning the Unbound cache can significantly improve performance. For example, setting cache-size=0 in the Pi-hole configuration file can help avoid conflicts with Unbound's caching mechanism.2 Additionally, configuring Unbound to serve expired entries can help maintain fast response times by providing cached results even when they are slightly outdated.2
  • Optimize Unbound configuration: The Unbound configuration file can be adjusted to improve performance. For instance, setting num-threads to the number of CPU cores, increasing msg-cache-size and rrset-cache-size, and adjusting outgoing-range can all contribute to better performance.3
  • Use libevent for better performance: Installing and configuring libevent can allow Unbound to handle more file descriptors efficiently, which can improve performance, especially under heavy load.3
  • Increase socket buffer size: Adjusting the socket buffer size using so-rcvbuf can help handle spikes in traffic and improve reliability.3
These adjustments can help ensure that Unbound operates efficiently, providing fast and reliable DNS resolution for gaming and other applications.
sorry for spoiling the mood .. but unbound or another dns resolver can have absolutely no effect on playing games .. dns only translates IP which is then cached by the operating system, both windows and linux ... games use exclusively P2P (IP2IP) connections, whether tcp or udp .. but they definitely do not use domains, it would be pure nonsense .. but if so .. as it is directly in the cache and DNS queries are zero .. if you want fast DNS responses and do not require any blocklists .. then use fixed for example 1.1.1.1 or 8.8.8.8 .. if your pages are loading slowly .. then try traceroute or dig .. but it will probably be a bad connection or the problem will be completely different ...
 
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 sysctl or 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.
 
I have been using unbound for a very long time now. seen the program from the start. my tune is better, I left room for overhead.
 

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