You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document solution for 'so-rcvbuf 1048576 was not granted' warning
that commonly appears in Unbound logs.
Resolves#539
Signed-off-by: Christian Kaczmarek <[email protected]>
Copy file name to clipboardExpand all lines: docs/guides/dns/unbound.md
+48Lines changed: 48 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -269,6 +269,54 @@ Lastly, restart unbound:
269
269
sudo service unbound restart
270
270
```
271
271
272
+
### Common Issues & Troubleshooting
273
+
274
+
#### Fix `so-rcvbuf` warning in unbound
275
+
276
+
The configuration in `/etc/unbound/unbound.conf.d/pi-hole.conf` sets the **socket receive buffer size** for incoming DNS queries to a higher-than-default value in order to handle high query rates:
277
+
278
+
```bash
279
+
so-rcvbuf: 1m
280
+
```
281
+
282
+
As a result, you may see this warning in unbound logs:
283
+
284
+
```bash
285
+
so-rcvbuf 1048576 was not granted. Got 425984. To fix: start with root permissions(linux) or sysctl bigger net.core.rmem_max(linux) or kern.ipc.maxsockbuf(bsd) values.
286
+
```
287
+
288
+
To fix it:
289
+
290
+
1. Check the current limit. This will show something like `net.core.rmem_max = 425984`:
291
+
292
+
```bash
293
+
sudo sysctl net.core.rmem_max
294
+
```
295
+
296
+
2. Temporarily increase the limit to match unbound's request:
297
+
298
+
```bash
299
+
sudo sysctl -w net.core.rmem_max=1048576
300
+
```
301
+
302
+
3. Make it permanent. Edit `/etc/sysctl.conf` and add or edit the line:
0 commit comments