Unbound seems to be restarting frequently
-
Flush experimental & crap by rebooting ?
-
curious is this a clean install of 2.2, and upgrade? Did you have or try to install the unbound package before it was part of 2.2?
-
The problem persists after subsequent reboots. This was a clean 2.2 install.
Can someone tell me where to find the config? I'll try and grab it to post. Perhaps that may shed some light.
-
services > DNS resolver - unbound
services > DNS forwarder - dnsmasq
I was suggesting that you take a screen shot of the settings in there and post to see if there is anything strange there.
Or, you can post here daily "my unbound is weird" over and over…
-
Attached.
-
With these settings, your unbound is just acting as a forwarder. May as well use dnsmasq instead (dns forwarder)
-
But I still get the benefit of pre-fetch and caching.
My actual unbound config is here.
I found the unbound logs but I'm getting permission denied when I try to view them. I also can't do a sudo or sudo su. Any suggestions on how I can get the raw logs?
I'd still like to fix unbound should I decide to not forward queries.
-
Were you using unbound in 2.1.5? (yes or no)
-
I never used 2.1. My 2.2 build was a fresh install on a new pc engines build.
-
If I filter for restarts, I get the following:
Mar 2 11:52:20 unbound: [28167:0] notice: init module 0: iterator Mar 2 11:52:20 unbound: [28167:0] notice: Restart of unbound 1.5.1. Mar 2 10:49:14 unbound: [28167:0] notice: init module 0: iterator Mar 2 10:49:14 unbound: [28167:0] notice: Restart of unbound 1.5.1. Mar 2 10:49:12 unbound: [28167:0] notice: init module 0: iterator Mar 2 10:49:12 unbound: [28167:0] notice: Restart of unbound 1.5.1. Mar 2 10:49:12 unbound: [28167:0] notice: init module 0: iterator Mar 2 10:09:59 unbound: [45732:0] notice: init module 0: iterator Mar 2 10:09:59 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 10:03:14 unbound: [45732:0] notice: init module 0: iterator Mar 2 10:03:14 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 09:53:20 unbound: [45732:0] notice: init module 0: iterator Mar 2 09:53:20 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 09:43:24 unbound: [45732:0] notice: init module 0: iterator Mar 2 09:43:24 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 09:33:30 unbound: [45732:0] notice: init module 0: iterator Mar 2 09:33:30 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 09:33:30 unbound: [45732:0] notice: init module 0: iterator Mar 2 09:33:30 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 09:31:00 unbound: [45732:0] notice: init module 0: iterator Mar 2 09:31:00 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 09:30:56 unbound: [45732:0] notice: init module 0: iterator Mar 2 09:30:56 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 09:30:20 unbound: [45732:0] notice: init module 0: iterator Mar 2 09:30:20 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 09:24:02 unbound: [45732:0] notice: init module 0: iterator Mar 2 09:24:02 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 09:23:29 unbound: [45732:0] notice: init module 0: iterator Mar 2 09:23:29 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 09:13:34 unbound: [45732:0] notice: init module 0: iterator Mar 2 09:13:34 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 09:12:04 unbound: [45732:0] notice: init module 0: iterator Mar 2 09:12:04 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 09:09:56 unbound: [45732:0] notice: init module 0: iterator Mar 2 09:09:56 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 08:09:43 unbound: [45732:0] notice: init module 0: iterator Mar 2 08:09:43 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 08:02:39 unbound: [45732:0] notice: init module 0: iterator Mar 2 08:02:39 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 07:52:44 unbound: [45732:0] notice: init module 0: iterator Mar 2 07:52:44 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 07:49:50 unbound: [45732:0] notice: init module 0: iterator Mar 2 07:49:50 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 07:42:49 unbound: [45732:0] notice: init module 0: iterator Mar 2 07:42:49 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 07:40:24 unbound: [45732:0] notice: init module 0: iterator Mar 2 07:40:24 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 07:38:15 unbound: [45732:0] notice: init module 0: iterator Mar 2 07:38:15 unbound: [45732:0] notice: Restart of unbound 1.5.1. Mar 2 07:37:28 unbound: [45732:0] notice: init module 0: iterator
-
Hmmmm. Is there a reason you don't want to use the root DNS servers (just curious)?
-
Comcast operates a bunch of caching servers for content from Akamai, Netflix. I'd like to hit the locally cached servers when that content is requested. Netflix definitely streams a little faster, I think.
-
Thing is, I think hitting the local DNS without DNSSEC and harden glue and all that might be whats crashing your unbound.
Would you be opposed to trying it in resolver mode instead of forwarder mode for a while? See if it stops crashing?
-
Is there any additional logging I can enable that may offer better insight?
Would someone mind posting their config so I can try running a good one that I know works?
Thanks!
-
How do I reset the Resolver general settings to their defaults? The GUI retains the settings from the previous config, even if I wipe out the .conf file.
-
Why are you hard on yourself with CLI. Just use the webGUI to stop and start what you want.
Stop Services: DNS forwarder.
Clear out System: General Setup for DNS servers
Set Services: DNS Resolver(interfaces & DNSSEC) only
Services: DNS Resolver: Advanced(Harden = true)Maybe reboot.
-
Disabling the forwarder and adding in the hardening both worked. I'll continue to troubleshoot w/ the forwards or perhaps just enable dnsmasq.
-
It seems adding DNS servers into the general settings tab causes the unbound restarts. This seems like a bug. Does anyone know how I would report this?
-
I don't know if its a bug or if something malicious is being done to your DNS… Glad its working now.
-
Even if it's something malicious, unbound shouldn't reboot all the time. lol