Problem with DNS resolver
-
And in the main system log?
-
@Unoptanio why/how can you have both unbound 1.18 and 1.19.1 on the same system both starting?
Did you upgrade pfsense? That is a pretty fast upgrade
LIke 1 minute?
-
Huh, nice catch! Well that seems suspicious!
-
Latest updates on the situation:
This morning I restarted pfsense at 06:30AM
After the first restart, the unbound DNS in the service list is displayed with a working green icon.
But it's not actually working.
I did a manual restart of the service and it started working.
This problem occurs every time I restart pfsense.Below is a log made at 08:45 AM showing the two startups of the service just described
Status/System Logs/System/DNS Resolver
Jun 7 07:00:02 filterdns 37407 Adding Action: pf table: Block_Facebook host: gateway.facebook.com Jun 7 07:00:02 filterdns 37407 Adding Action: pf table: Block_Facebook host: cdn.fbsbx.com Jun 7 07:00:02 filterdns 37407 Adding Action: pf table: Block_Facebook host: scontent.xx.fbcdn.net Jun 7 07:00:02 filterdns 37407 Adding Action: pf table: Block_Facebook host: lookaside.facebook.com Jun 7 07:00:02 filterdns 37407 Adding Action: pf table: Block_Facebook host: graph.facebook.com Jun 7 07:00:02 filterdns 37407 Adding Action: pf table: Block_Facebook host: web.facebook.com Jun 7 07:00:02 filterdns 37407 merge_config: configuration reload Jun 7 07:00:02 filterdns 37407 failed to resolve host chat-dll.google.com will retry later again. Jun 7 07:00:02 filterdns 37407 failed to resolve host mobile-webview.google.com will retry later again. Jun 7 06:55:05 filterdns 37407 failed to resolve host chat-dll.google.com will retry later again. Jun 7 06:55:02 filterdns 37407 failed to resolve host mobile-webview.google.com will retry later again. Jun 7 06:51:28 unbound 17795 [17795:0] info: start of service (unbound 1.19.1). Jun 7 06:51:28 unbound 17795 [17795:0] notice: init module 0: iterator Jun 7 06:50:02 filterdns 37407 failed to resolve host chat-dll.google.com will retry later again. Jun 7 06:50:02 filterdns 37407 failed to resolve host mobile-webview.google.com will retry later again. Jun 7 06:45:03 filterdns 37407 failed to resolve host mobile-webview.google.com will retry later again. Jun 7 06:45:03 filterdns 37407 failed to resolve host chat-dll.google.com will retry later again. Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Gmail_Fqdn_list host: mtalk.google.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Gmail_Fqdn_list host: chat-dll.google.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Gmail_Fqdn_list host: mobile-webview.google.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Gmail_Fqdn_list host: accounts.google.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Gmail_Fqdn_list host: inbox.google.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Gmail_Fqdn_list host: mail.google.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_YouTube host: s.youtube.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_YouTube host: redirector.googlevideo.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_YouTube host: yt3.ggpht.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_YouTube host: youtubei.googleapis.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_YouTube host: www.youtube.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_YouTube host: i.ytimg.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_WhatsApp host: chat.cdn.whatsapp.net Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_WhatsApp host: web.whatsapp.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_WhatsApp host: g.whatsapp.net Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_WhatsApp host: static.whatsapp.net Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_WhatsApp host: dit.whatsapp.net Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_WhatsApp host: c.whatsapp.net Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_Instagram host: gateway.instagram.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_Instagram host: graph.instagram.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_Instagram host: i.instagram.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_Facebook host: edge-mqtt.facebook.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_Facebook host: static.xx.fbcdn.net Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_Facebook host: m.facebook.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_Facebook host: portal.fb.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_Facebook host: snaptu-z.facebook.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_Facebook host: www.facebook.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_Facebook host: gateway.facebook.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_Facebook host: cdn.fbsbx.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_Facebook host: scontent.xx.fbcdn.net Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_Facebook host: lookaside.facebook.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_Facebook host: graph.facebook.com Jun 7 06:45:03 filterdns 37407 Adding Action: pf table: Block_Facebook host: web.facebook.com Jun 7 06:45:03 filterdns 37407 merge_config: configuration reload Jun 7 06:41:46 filterdns 37407 failed to resolve host mobile-webview.google.com will retry later again. Jun 7 06:41:46 filterdns 37407 failed to resolve host chat-dll.google.com will retry later again. Jun 7 06:36:46 filterdns 37407 failed to resolve host chat-dll.google.com will retry later again. Jun 7 06:36:46 filterdns 37407 failed to resolve host mobile-webview.google.com will retry later again. Jun 7 06:31:47 filterdns 37407 failed to resolve host chat-dll.google.com will retry later again. Jun 7 06:31:47 filterdns 37407 failed to resolve host mobile-webview.google.com will retry later again. Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Gmail_Fqdn_list host: mtalk.google.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Gmail_Fqdn_list host: chat-dll.google.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Gmail_Fqdn_list host: mobile-webview.google.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Gmail_Fqdn_list host: accounts.google.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Gmail_Fqdn_list host: inbox.google.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Gmail_Fqdn_list host: mail.google.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_YouTube host: s.youtube.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_YouTube host: redirector.googlevideo.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_YouTube host: yt3.ggpht.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_YouTube host: youtubei.googleapis.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_YouTube host: www.youtube.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_YouTube host: i.ytimg.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_WhatsApp host: chat.cdn.whatsapp.net Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_WhatsApp host: web.whatsapp.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_WhatsApp host: g.whatsapp.net Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_WhatsApp host: static.whatsapp.net Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_WhatsApp host: dit.whatsapp.net Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_WhatsApp host: c.whatsapp.net Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_Instagram host: gateway.instagram.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_Instagram host: graph.instagram.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_Instagram host: i.instagram.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_Facebook host: edge-mqtt.facebook.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_Facebook host: static.xx.fbcdn.net Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_Facebook host: m.facebook.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_Facebook host: portal.fb.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_Facebook host: snaptu-z.facebook.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_Facebook host: www.facebook.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_Facebook host: gateway.facebook.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_Facebook host: cdn.fbsbx.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_Facebook host: scontent.xx.fbcdn.net Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_Facebook host: lookaside.facebook.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_Facebook host: graph.facebook.com Jun 7 06:31:47 filterdns 37407 Adding Action: pf table: Block_Facebook host: web.facebook.com Jun 7 06:31:47 filterdns 37407 merge_config: configuration reload Jun 7 06:31:27 filterdns 37407 failed to resolve host chat-dll.google.com will retry later again. Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Gmail_Fqdn_list host: mtalk.google.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Gmail_Fqdn_list host: chat-dll.google.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Gmail_Fqdn_list host: mobile-webview.google.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Gmail_Fqdn_list host: accounts.google.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Gmail_Fqdn_list host: inbox.google.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Gmail_Fqdn_list host: mail.google.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_YouTube host: s.youtube.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_YouTube host: redirector.googlevideo.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_YouTube host: yt3.ggpht.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_YouTube host: youtubei.googleapis.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_YouTube host: www.youtube.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_YouTube host: i.ytimg.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_WhatsApp host: chat.cdn.whatsapp.net Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_WhatsApp host: web.whatsapp.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_WhatsApp host: g.whatsapp.net Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_WhatsApp host: static.whatsapp.net Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_WhatsApp host: dit.whatsapp.net Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_WhatsApp host: c.whatsapp.net Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_Instagram host: gateway.instagram.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_Instagram host: graph.instagram.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_Instagram host: i.instagram.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_Facebook host: edge-mqtt.facebook.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_Facebook host: static.xx.fbcdn.net Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_Facebook host: m.facebook.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_Facebook host: portal.fb.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_Facebook host: snaptu-z.facebook.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_Facebook host: www.facebook.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_Facebook host: gateway.facebook.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_Facebook host: cdn.fbsbx.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_Facebook host: scontent.xx.fbcdn.net Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_Facebook host: lookaside.facebook.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_Facebook host: graph.facebook.com Jun 7 06:31:27 filterdns 37407 Adding Action: pf table: Block_Facebook host: web.facebook.com Jun 7 06:31:27 filterdns 37407 merge_config: configuration reload Jun 7 06:31:25 filterdns 37407 failed to resolve host chat-dll.google.com will retry later again. Jun 7 06:31:24 filterdns 37407 failed to resolve host mobile-webview.google.com will retry later again. Jun 7 06:31:24 filterdns 37146 Adding host mtalk.google.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Gmail_Fqdn_list host: mtalk.google.com Jun 7 06:31:24 filterdns 37146 Adding host chat-dll.google.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Gmail_Fqdn_list host: chat-dll.google.com Jun 7 06:31:24 filterdns 37146 Adding host mobile-webview.google.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Gmail_Fqdn_list host: mobile-webview.google.com Jun 7 06:31:24 filterdns 37146 Adding host accounts.google.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Gmail_Fqdn_list host: accounts.google.com Jun 7 06:31:24 filterdns 37146 Adding host inbox.google.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Gmail_Fqdn_list host: inbox.google.com Jun 7 06:31:24 filterdns 37146 Adding host mail.google.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Gmail_Fqdn_list host: mail.google.com Jun 7 06:31:24 filterdns 37146 Adding host s.youtube.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_YouTube host: s.youtube.com Jun 7 06:31:24 filterdns 37146 Adding host redirector.googlevideo.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_YouTube host: redirector.googlevideo.com Jun 7 06:31:24 filterdns 37146 Adding host yt3.ggpht.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_YouTube host: yt3.ggpht.com Jun 7 06:31:24 filterdns 37146 Adding host youtubei.googleapis.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_YouTube host: youtubei.googleapis.com Jun 7 06:31:24 filterdns 37146 Adding host www.youtube.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_YouTube host: www.youtube.com Jun 7 06:31:24 filterdns 37146 Adding host i.ytimg.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_YouTube host: i.ytimg.com Jun 7 06:31:24 filterdns 37146 Adding host chat.cdn.whatsapp.net Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_WhatsApp host: chat.cdn.whatsapp.net Jun 7 06:31:24 filterdns 37146 Adding host web.whatsapp.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_WhatsApp host: web.whatsapp.com Jun 7 06:31:24 filterdns 37146 Adding host g.whatsapp.net Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_WhatsApp host: g.whatsapp.net Jun 7 06:31:24 filterdns 37146 Adding host static.whatsapp.net Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_WhatsApp host: static.whatsapp.net Jun 7 06:31:24 filterdns 37146 Adding host dit.whatsapp.net Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_WhatsApp host: dit.whatsapp.net Jun 7 06:31:24 filterdns 37146 Adding host c.whatsapp.net Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_WhatsApp host: c.whatsapp.net Jun 7 06:31:24 filterdns 37146 Adding host gateway.instagram.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_Instagram host: gateway.instagram.com Jun 7 06:31:24 filterdns 37146 Adding host graph.instagram.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_Instagram host: graph.instagram.com Jun 7 06:31:24 filterdns 37146 Adding host i.instagram.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_Instagram host: i.instagram.com Jun 7 06:31:24 filterdns 37146 Adding host edge-mqtt.facebook.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_Facebook host: edge-mqtt.facebook.com Jun 7 06:31:24 filterdns 37146 Adding host static.xx.fbcdn.net Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_Facebook host: static.xx.fbcdn.net Jun 7 06:31:24 filterdns 37146 Adding host m.facebook.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_Facebook host: m.facebook.com Jun 7 06:31:24 filterdns 37146 Adding host portal.fb.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_Facebook host: portal.fb.com Jun 7 06:31:24 filterdns 37146 Adding host snaptu-z.facebook.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_Facebook host: snaptu-z.facebook.com Jun 7 06:31:24 filterdns 37146 Adding host www.facebook.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_Facebook host: www.facebook.com Jun 7 06:31:24 filterdns 37146 Adding host gateway.facebook.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_Facebook host: gateway.facebook.com Jun 7 06:31:24 filterdns 37146 Adding host cdn.fbsbx.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_Facebook host: cdn.fbsbx.com Jun 7 06:31:24 filterdns 37146 Adding host scontent.xx.fbcdn.net Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_Facebook host: scontent.xx.fbcdn.net Jun 7 06:31:24 filterdns 37146 Adding host lookaside.facebook.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_Facebook host: lookaside.facebook.com Jun 7 06:31:24 filterdns 37146 Adding host graph.facebook.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_Facebook host: graph.facebook.com Jun 7 06:31:24 filterdns 37146 Adding host web.facebook.com Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_Facebook host: web.facebook.com Jun 7 06:31:03 unbound 81793 [81793:0] info: start of service (unbound 1.19.1). Jun 7 06:31:03 unbound 81793 [81793:0] notice: init module 0: iterator
In particular line:
Jun 7 06:31:24 filterdns 37146 Adding Action: pf table: Block_Facebook host: web.facebook.com
Jun 7 06:31:03 unbound 81793 [81793:0] info: start of service (unbound 1.19.1).
Jun 7 06:31:03 unbound 81793 [81793:0] notice: init module 0: iterator
Jun 7 06:25:03 filterdns 29751 failed to resolve host mobile-webview.google.com will retry later again......
.....
Jun 7 06:51:28 unbound 17795 [17795:0] info: start of service (unbound 1.19.1).
Jun 7 06:51:28 unbound 17795 [17795:0] notice: init module 0: iteratorUsing the "pkg search unbound" command we discovered that my pfsense 2.7.2 had DNS unbound version 1.18.0_1.
Using the command "pkg install unbound-1.19.1" I installed the new update to version 1.19.1
I did a system reboot.
Throughout yesterday the log showed the two versions but I think it's normal, there are times that demonstrate the relevant version at that moment.
Using the command "cat /var/log/resolver.log | grep 'start'" I can see that only version 1.19.1 appears in today's logs
I had also disabled DHCP Registration in Unbound DNS because it caused the service to continually restart.
The situation has improved, there are no longer continuous restarts of the unbound DNS service and we also have the latest version 1.19.1.
What can I do to resolve the problem that after the first start of pfsense the unbound DNS does not work (even if in the list of services the unbound DNS appears with a working green check box icon) and I have to restart the service manually? -
Yesterday..... using the "pkg search unbound" command we discovered that my pfsense 2.7.2 had DNS unbound version 1.18.0_1.
Using the command "pkg install unbound-1.19.1" I installed the new update to version 1.19.1
I did a system reboot.
Throughout yesterday the log showed the two versions but I think it's normal, there are times that demonstrate the relevant version at that moment.
Using the command "cat /var/log/resolver.log | grep 'start'" I can see that only version 1.19.1 appears in today's logs
I had also disabled DHCP Registration in Unbound DNS because it caused the service to continually restart.
Thanks to you I discovered another interesting command "pkg upgrade" which checks if there are updates on all packages
The situation has improved, there are no longer continuous restarts of the unbound DNS service and we also have the latest version 1.19.1.
What can I do to resolve the problem that after the first start of pfsense the unbound DNS does not work (even if in the list of services the unbound DNS appears with a working green check box icon) and I have to restart the service manually? -
@Unoptanio said in Problem with DNS resolver:
I had also disabled DHCP Registration in Unbound DNS because it caused the service to continually restart.
So this was the real culprit ...
The situation has improved, there are no longer continuous restarts of the unbound DNS service and we also have the latest version 1.19.1.
What can I do to resolve the problem that after the first start of pfsense the unbound DNS does not work (even if in the list of services the unbound DNS appears with a working green check box icon) and I have to restart the service manually?Maybe enable verbose logging to see if there is a hint in the log what is causing unbound not to start properly ...
-
Where do you enable verbose logging?
-
@Unoptanio said in Problem with DNS resolver:
Where do you enable verbose logging?
services_unbound_advanced.php
scroll down - "log level"
-
Don't worry about this one. The domain "mobile-webview.google.com" doesn't exist ....
I've tried several revolvers world wide : not found.@Unoptanio said in Problem with DNS resolver:
Jun 7 06:25:03 filterdns 29751 failed to resolve host mobile-webview.google.com will retry later again.
You've set yourself "mobile-webview.google.com" as filterdns is trying its out most best to resolve it.
Not very useful.This line can create 'huge' problems with DNS :
@Unoptanio said in Problem with DNS resolver:
Jun 7 07:00:02 filterdns 37407 Adding Action: pf table: Block_Facebook host: web.facebook.com
Read this : Aliases.
This is a typical case of :
Where "not useful" is an understatement.
When a typical *.facebook.com host name is resolved, it will return many, like a lot, of IP addresses.
The filterdns process is executed every xx seconds or so to update the relation 'host name' => IPs. If the list with IP changes, and it will change constantly, the firewall is reload, .... and process (like unbound) get restarted.
Do you see where this is going ?Remove all your references to google or facebook in your aliases tables. If you need to filter these, use pfBlockerng.
Your unbound will say thank you to you. -
@Unoptanio said in Problem with DNS resolver:
Disable unbound listening on the WAN and see if it stays up.
-
Yeah the first thing I would do is remove those two failing hosts that don't exist.
Jun 7 06:41:46 filterdns 37407 failed to resolve host mobile-webview.google.com will retry later again. Jun 7 06:41:46 filterdns 37407 failed to resolve host chat-dll.google.com will retry later again.
-
@Popolou
Done -
@stephenw10
Done -
Ok!. It seems like everything is working fine now.
I restarted the PC at 7:00 am.
After the reboot everything works fine.
Unbound DNS works.In summary: steps to solve the problem
- Disabled DHCP Registration in DNS Unbound (caused continuous restarts of the service)
- Disable unbound listening on the WAN (caused the service to be restarted twice)
- It is recommended to install the latest version of the Unbound DNS service
-
@Unoptanio said in Problem with DNS resolver:
In summary: steps to solve the problem
Disabled DHCP Registration in DNS Unbound (caused continuous restarts of the service) Disable unbound listening on the WAN (caused the service to be restarted twice) It is recommended to install the latest version of the Unbound DNS service
Good to hear you've sorted it.
Having unbound serve dns records for DHCP leases is known to cause restarts. I think many here disable it and create static leases for those hosts they do want to resolve.
I found explicitly selecting listening interfaces often caused problems with unbound not starting. I set it to 'all', relied on firewall default blocking to prevent access where it wasn't desired, no more unbound start-up issues.
I doubt the upgrade contributed to fixing the issues you were seeing. I reckon it came down solely to the listening interfaces selection! -
@Unoptanio said in Problem with DNS resolver:
It is recommended to install the latest version of the Unbound DNS service
this should be taken care of by just upgrading pfsense - still not understanding how you had both on the system??
-
Initially I only had version 1.18.0_1 of the unbound DNS.
After updating to version 1.19.1, despite restarting the PC, the two versions were the same. The next day only version 1.19.1 remained.
In the meantime, other PC reboots were madeBut isn't it just the log of versions at various times?
-
@Unoptanio said in Problem with DNS resolver:
After updating to version 1.19.1,
And how did you do that exactly? You updated pfsense, you updated packages on pfsense? You installed it on your own? I can not see a way that both would of been on the system at the same time??
You should never see this
There should only ever be 1 version installed.
-
I haven't updated pfsense.
I only updated the unbound DNS service which strangely was not the latest version
-
@Unoptanio said in Problem with DNS resolver:
I only updated the unbound DNS service
And how did you do that, you ran the package update from cmd line of pfsense - you manually iinstalled a package from outside pfsense repository?
What version of pfsense are you running exactly?
Pretty sure 2.7.2 came with 19.1, let me fire up my VM.. and check..