There is no need to relaunch dnsmasq pid
dnsmasq is still the LAN-facing DNS server that forwards to Unbound. You may wish it was only a DHCP server, but it doesn't make it true unless you further adapt dnsmasq.conf (e.g. port=0).Dnsmasq runs only as DHCP. The option server =127.0.0.1#53535 for unbound address is equal to server=1.1.1.1 only this.
There is no necessity. Dnsmasq comes from dns via DHCP. Removing port 53 from dnsmasq would impair its function of distributing LAN's local DNS IP. Installing unbound on port 53 requires a clean install and a separate dhcp server. Our method is correct.You may wish it was only a DHCP server, but it doesn't make it true unless you further adapt dnsmasq.conf (e.g. port=0).
Right, so if you add the POSTCMD="service restart_dnsmasq" to S61unbound, the dnsmasq.postconf will run again and the pid will be there. The intent is not to break dnsmasq in case unbound won't start or gets uninstalled uncleanly, or someone removes the USB and reboots the router.Found the problem. The unbound check condition via PID competes in time with entware services initialization. If not PID, unbound.postconf is not launched.
Let's fixedCode:if [ -n "$(pidof unbound)" ];then
yea what would happen if the user wanted to remove the USB as they do from time to time....Right, so if you add the POSTCMD="service restart_dnsmasq" to S61unbound, the dnsmasq.postconf will run again and the pid will be there. The intent is not to break dnsmasq in case unbound won't start or gets uninstalled uncleanly, or someone removes the USB and reboots the router.
He had understood the proposal. The problem is calls to dnsmasq with each unbound restart request.Right, so if you add the POSTCMD="service restart_dnsmasq"
./jffs/scripts/post-mount.div
#!/bin/sh
# Added by amtm Entware installer
OF="$(/usr/bin/find $1/entware*/bin/opkg 2> /dev/null)"
if [ "$OF" ]; then
ln -nsf "$(echo "$OF" | sed 's~/bin/opkg~~g')" /tmp/opt
/opt/etc/init.d/rc.unslung start $0
fi
I don't think it's a problem since dnsmasq will not be caching, so there is no performance impact from the restart. I also don't think unbound will be restarted very often. If you restart it in the adblock script, why not just run unbound-control reload instead?He had understood the proposal. The problem is calls to dnsmasq with each unbound restart request.
As they are dependent for now, we will do so.so there is no performance impact from the restart.
POSTCMD="service restart_dnsmasq"
+======================================================================+
| Welcome to the unbound-Installer-Asuswrt-Merlin installation script |
| Version 1.17 by Martineau |
| |
| Requirements: USB drive with Entware installed |
| |
| The install script will: |
| 1. Install the unbound Entware package |
| 2. Override how the firmware manages DNS |
| 3. Optionally Integrate with Stubby |
| 4. Optionally Install Ad and Tracker Blocking |
| 5. Optionally Customise CPU/Memory usage (Advanced Users) |
| |
| You can also use this script to uninstall unbound to back out the |
| changes made during the installation. See the project repository at |
| https://github.com/rgnldo/Unbound-Asuswrt-Merlin |
| for helpful user tips on unbound usage/configuration. |
+======================================================================+
unbound (pid 1899) is running... uptime: 614 days 12:54:11 version: 1.9.3
1 = Update ('/opt/var/lib/unbound/') unbound Configuration l = Show unbound LIVE log entries (lx=Disable Logging)
2 = Remove Existing unbound Installation v = View ('/opt/var/lib/unbound/') unbound Configuration (vx=Edit; vh=View Example Configuration)
? = About Configuration rl = Reload unbound Configuration (Doesn't interrupt/halt unbound)
oq = Query unbound Configuration option e.g 'oq verbosity' (ox=Set) e.g. 'ox log-queries yes'
rs = Restart (or Start) unbound s = Display unbound statistics (s=Summary Totals; sa=All)
e = Exit Script
Option ==> 1
At the time of TomatoUSB, with the release of Optware, there was a script that monitored the connected USB devices. This prevented deadlocks on old routers. I'll see if I can find it.yea what would happen if the user wanted to remove the USB as they do from time to time....
At the time of TomatoUSB, with the release of Optware, there was a script that monitored the connected USB devices. This prevented deadlocks on old routers. I'll see if I can find it.
There is dependence on libopenssl. No chances. You need to walk along with Entware. Smoothly. The same problem is also with AMTM projects. Skynet gives some problems if USB has problems. Overall, it's unbound is working fine.Or maybe see if possible to compile unbound to run locally (in jffs) or only when mounted.
Fix image link.vary:
I am very interested in the gain with prefetch. But it must contain security. Better a little more latency than insecurity.prefetch
Ah! Fixed in BB code editor. And for more security, you can set:Fix image link.
I am very interested in the gain with prefetch. But it must contain security. Better a little more latency than insecurity.
serve-expired-ttl: <seconds>
Limit serving of expired responses to configured seconds after
expiration. 0 disables the limit. This option only applies when
serve-expired is enabled. The default is 0.
In summary, an NXDOMAIN response would be cached as specified in the SOA of the applicable zone, whereas SERVFAIL is unlikely to be cached, or, if cached, it'll be at most a double-digit number of seconds.cache-max-negative-ttl
serve-expired-ttl:
serve-expired-ttl-reset:
serve-expired: yes@SolluxCaptor What values did you add in these options. Take the test and return here.
Code:serve-expired-ttl: serve-expired-ttl-reset:
It is reported in your link. In the installer script there is also the report optionApologies, how should I test?
unbound-control -c /opt/var/lib/unbound/unbound.conf stats_noreset | egrep 'total.num|cache.count
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!