DNS issues since 23.1.6

Started by stuffu, April 21, 2023, 07:43:06 AM

Previous topic - Next topic
Changed config file, checked for updates and got version 1.9 advertised
Installed and working fine w/o rebooting.
I just restarted DHCPd and radvd (not using DHCPv6 though).

Cheers !

April 29, 2023, 03:46:26 PM #61 Last Edit: April 29, 2023, 05:10:35 PM by depc80
Quote from: mimugmail on April 29, 2023, 10:26:09 AM
Anyone else able to test?
I replaced repos with transfer, it seems there is no file or directory found.
Edit: replace the link inside, not rename. My bad. The new version works, but I have configured pihole so for now I round robin to both..for redundancy reason.  :P

Hi,
after editing /usr/local/etc/pkg/repos/mimugmail.conf and replace /repo/ with /transfer/ I have updated to OPNsense 23.1.6 and to os-adguardhome 1.9.
Since then dhcpd6 does not start anymore.

Otherwise DNS seems to work.

Can you reboot and if still exists check the logs?

Hi
I enable IPv6 for multiple interfaces + vlan, and Adguard listening without issue. I see IPv6 addresses show up on Adguard's dashboard. However, I have no idea if redirect rule to adguard would force IPv6 as well. Temporarily I add LAN IPv6 to rdr tartget alias. The problem is that I don't have static IPv6, and my ISP changes prefix once a day. Appreciate some example of IPv6 rdr configuration on adguard and opnesne.
Cheers

Moin, after the reboot the problem remains.
Here is an excerpt from the logs:

2023-04-30T01:16:00 Notice root reload filter for configured schedules
2023-04-30T01:01:00 Notice root reload filter for configured schedules
2023-04-30T00:51:37 Notice dhclient Creating resolv.conf
2023-04-30T00:46:00 Notice root reload filter for configured schedules
2023-04-30T00:31:00 Notice root reload filter for configured schedules
2023-04-30T00:21:36 Notice dhclient Creating resolv.conf
2023-04-30T00:16:00 Notice root reload filter for configured schedules
2023-04-30T00:01:00 Notice root reload filter for configured schedules
2023-04-29T23:51:37 Notice dhclient Creating resolv.conf
2023-04-29T23:46:00 Notice root reload filter for configured schedules
2023-04-29T23:31:00 Notice root reload filter for configured schedules
2023-04-29T23:28:59 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan10
2023-04-29T23:28:58 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan20
2023-04-29T23:28:58 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0
2023-04-29T23:28:58 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan50
2023-04-29T23:28:57 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan30
2023-04-29T23:28:57 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan40
2023-04-29T23:28:56 Error opnsense /system_general.php: The command '/bin/kill -'TERM' '70094'' returned exit code '1', the output was 'kill: 70094: No such process'
2023-04-29T23:28:54 Notice opnsense /system_general.php: plugins_configure dhcp (execute task : dhcpd_dhcp_configure())
2023-04-29T23:28:54 Notice opnsense /system_general.php: plugins_configure dhcp ()
2023-04-29T23:28:49 Notice php-cgi /system_general.php: plugins_configure dns (execute task : unbound_configure_do())
2023-04-29T23:28:49 Notice php-cgi /system_general.php: plugins_configure dns (execute task : dnsmasq_configure_do())
2023-04-29T23:28:49 Notice php-cgi /system_general.php: plugins_configure dns ()
2023-04-29T23:28:49 Notice configctl event @ 1682803728.65 exec: system event config_changed
2023-04-29T23:28:49 Notice configctl event @ 1682803728.65 msg: Apr 29 23:28:48 OPNsense.localdomain config[70853]: [2023-04-29T23:28:48+02:00][INFO] config-event: new_config /conf/backup/config-1682803728.6124.xml
2023-04-29T23:28:16 Error opnsense /usr/local/sbin/pluginctl: The command '/bin/kill -'TERM' '53009'' returned exit code '1', the output was 'kill: 53009: No such process'
2023-04-29T23:27:54 Notice configctl event @ 1682803673.72 exec: system event config_changed
2023-04-29T23:27:54 Notice configctl event @ 1682803673.72 msg: Apr 29 23:27:53 OPNsense.localdomain config[10507]: [2023-04-29T23:27:53+02:00][INFO] config-event: new_config /conf/backup/config-1682803673.6702.xml
2023-04-29T23:27:40 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan10
2023-04-29T23:27:40 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan20
2023-04-29T23:27:40 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0
2023-04-29T23:27:39 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan50
2023-04-29T23:27:39 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan30
2023-04-29T23:27:39 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan40
2023-04-29T23:27:38 Error opnsense /system_general.php: The command '/bin/kill -'TERM' '70094'' returned exit code '1', the output was 'kill: 70094: No such process'
2023-04-29T23:27:36 Notice opnsense /system_general.php: plugins_configure dhcp (execute task : dhcpd_dhcp_configure())
2023-04-29T23:27:36 Notice opnsense /system_general.php: plugins_configure dhcp ()
2023-04-29T23:27:22 Error php-cgi /system_general.php: The command '/bin/kill -'TERM' '53009'' returned exit code '1', the output was 'kill: 53009: No such process'
2023-04-29T23:27:22 Notice php-cgi /system_general.php: plugins_configure dns (execute task : unbound_configure_do())
2023-04-29T23:27:22 Notice php-cgi /system_general.php: plugins_configure dns (execute task : dnsmasq_configure_do())
2023-04-29T23:27:22 Notice php-cgi /system_general.php: plugins_configure dns ()
2023-04-29T23:27:22 Notice configctl event @ 1682803641.82 exec: system event config_changed
2023-04-29T23:27:22 Notice configctl event @ 1682803641.82 msg: Apr 29 23:27:21 OPNsense.localdomain config[70853]: [2023-04-29T23:27:21+02:00][INFO] config-event: new_config /conf/backup/config-1682803641.7812.xml
2023-04-29T23:27:07 Warning opnsense /services_unbound.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan10
2023-04-29T23:27:07 Warning opnsense /services_unbound.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan20
2023-04-29T23:27:07 Warning opnsense /services_unbound.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0
2023-04-29T23:27:07 Warning opnsense /services_unbound.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan50
2023-04-29T23:27:06 Warning opnsense /services_unbound.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan30
2023-04-29T23:27:06 Warning opnsense /services_unbound.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan40
2023-04-29T23:27:05 Error opnsense /services_unbound.php: The command '/bin/kill -'TERM' '70094'' returned exit code '1', the output was 'kill: 70094: No such process'
2023-04-29T23:27:03 Notice opnsense /services_unbound.php: plugins_configure dhcp (execute task : dhcpd_dhcp_configure())
2023-04-29T23:27:03 Notice opnsense /services_unbound.php: plugins_configure dhcp ()
2023-04-29T23:26:45 Notice configctl event @ 1682803605.13 exec: system event config_changed
2023-04-29T23:26:45 Notice configctl event @ 1682803605.13 msg: Apr 29 23:26:45 OPNsense.localdomain config[31825]: [2023-04-29T23:26:45+02:00][INFO] config-event: new_config /conf/backup/config-1682803605.0955.xml
2023-04-29T23:21:35 Notice dhclient Creating resolv.conf
2023-04-29T23:16:00 Notice root reload filter for configured schedules
2023-04-29T23:09:42 Error opnsense /usr/local/sbin/pluginctl: The command '/bin/kill -'TERM' '70094'' returned exit code '1', the output was 'kill: 70094: No such process'
2023-04-29T23:01:00 Notice root reload filter for configured schedules
2023-04-29T23:00:14 Error opnsense /usr/local/sbin/pluginctl: The command '/bin/kill -'TERM' '70094'' returned exit code '1', the output was 'kill: 70094: No such process'
2023-04-29T22:54:01 Error opnsense /usr/local/sbin/pluginctl: The command '/bin/kill -'TERM' '70094'' returned exit code '1', the output was 'kill: 70094: No such process'
2023-04-29T22:51:33 Notice dhclient Creating resolv.conf
2023-04-29T22:46:13 Error opnsense /system_general.php: The command '/bin/kill -'TERM' '70094'' returned exit code '1', the output was 'kill: 70094: No such process'
2023-04-29T22:46:10 Notice opnsense /system_general.php: plugins_configure dhcp (execute task : dhcpd_dhcp_configure())
2023-04-29T22:46:10 Notice opnsense /system_general.php: plugins_configure dhcp ()
2023-04-29T22:46:03 Notice php-cgi /system_general.php: plugins_configure dns (execute task : unbound_configure_do())
2023-04-29T22:46:03 Notice php-cgi /system_general.php: plugins_configure dns (execute task : dnsmasq_configure_do())
2023-04-29T22:46:03 Notice php-cgi /system_general.php: plugins_configure dns ()
2023-04-29T22:46:02 Notice configctl event @ 1682801162.03 exec: system event config_changed
2023-04-29T22:46:02 Notice configctl event @ 1682801162.03 msg: Apr 29 22:46:02 OPNsense.localdomain config[40793]: [2023-04-29T22:46:02+02:00][INFO] config-event: new_config /conf/backup/config-1682801161.9829.xml
2023-04-29T22:46:00 Notice root reload filter for configured schedules
2023-04-29T22:33:00 Error opnsense /services_unbound.php: The command '/bin/kill -'TERM' '70094'' returned exit code '1', the output was 'kill: 70094: No such process'
2023-04-29T22:32:57 Notice opnsense /services_unbound.php: plugins_configure dhcp (execute task : dhcpd_dhcp_configure())
2023-04-29T22:32:57 Notice opnsense /services_unbound.php: plugins_configure dhcp ()
2023-04-29T22:32:49 Notice configctl event @ 1682800368.48 exec: system event config_changed
2023-04-29T22:32:49 Notice configctl event @ 1682800368.48 msg: Apr 29 22:32:48 OPNsense.localdomain config[40793]: [2023-04-29T22:32:48+02:00][INFO] config-event: new_config /conf/backup/config-1682800368.4423.xml
2023-04-29T22:31:00 Notice configctl event @ 1682800260.24 exec: system event config_changed
2023-04-29T22:31:00 Notice configctl event @ 1682800260.24 msg: Apr 29 22:31:00 OPNsense.localdomain config[40793]: [2023-04-29T22:31:00+02:00][INFO] config-event: new_config /conf/backup/config-1682800260.1738.xml
2023-04-29T22:31:00 Notice root reload filter for configured schedules
2023-04-29T22:29:54 Notice configctl event @ 1682800193.68 exec: system event config_changed
2023-04-29T22:29:54 Notice configctl event @ 1682800193.68 msg: Apr 29 22:29:53 OPNsense.localdomain config[14015]: [2023-04-29T22:29:53+02:00][INFO] config-event: new_config /conf/backup/config-1682800193.6431.xml
2023-04-29T22:27:45 Error opnsense /usr/local/sbin/pluginctl: The command '/bin/kill -'TERM' '70094'' returned exit code '1', the output was 'kill: 70094: No such process'
2023-04-29T22:26:43 Notice configctl event @ 1682800003.03 exec: system event config_changed
2023-04-29T22:26:43 Notice configctl event @ 1682800003.03 msg: Apr 29 22:26:43 OPNsense.localdomain config[63969]: [2023-04-29T22:26:43+02:00][INFO] config-event: new_config /conf/backup/config-1682800002.9742.xml
2023-04-29T22:26:41 Notice syslog-ng Configuration reload finished;
2023-04-29T22:26:41 Notice syslog-ng Configuration reload request received, reloading configuration;
2023-04-29T22:24:25 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan10
2023-04-29T22:24:24 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan20
2023-04-29T22:24:24 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0
2023-04-29T22:24:23 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan50
2023-04-29T22:24:23 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan30
2023-04-29T22:24:23 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan40
2023-04-29T22:24:22 Error opnsense /system_general.php: The command '/bin/kill -'TERM' '70094'' returned exit code '1', the output was 'kill: 70094: No such process'
2023-04-29T22:24:19 Notice opnsense /system_general.php: plugins_configure dhcp (execute task : dhcpd_dhcp_configure())
2023-04-29T22:24:19 Notice opnsense /system_general.php: plugins_configure dhcp ()
2023-04-29T22:24:15 Notice php-cgi /system_general.php: plugins_configure dns (execute task : unbound_configure_do())
2023-04-29T22:24:15 Notice php-cgi /system_general.php: plugins_configure dns (execute task : dnsmasq_configure_do())
2023-04-29T22:24:15 Notice php-cgi /system_general.php: plugins_configure dns ()
2023-04-29T22:24:14 Notice configctl event @ 1682799854.35 exec: system event config_changed
2023-04-29T22:24:14 Notice configctl event @ 1682799854.35 msg: Apr 29 22:24:14 OPNsense.localdomain config[13371]: [2023-04-29T22:24:14+02:00][INFO] config-event: new_config /conf/backup/config-1682799854.3173.xml
2023-04-29T22:23:47 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan10
2023-04-29T22:23:47 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan20
2023-04-29T22:23:46 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0
2023-04-29T22:23:46 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan50
2023-04-29T22:23:46 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan30
2023-04-29T22:23:45 Warning opnsense /system_general.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan40
2023-04-29T22:23:45 Error opnsense /system_general.php: The command '/bin/kill -'TERM' '70094'' returned exit code '1', the output was 'kill: 70094: No such process'
2023-04-29T22:23:42 Notice opnsense /system_general.php: plugins_configure dhcp (execute task : dhcpd_dhcp_configure())
2023-04-29T22:23:42 Notice opnsense /system_general.php: plugins_configure dhcp ()
2023-04-29T22:23:37 Notice php-cgi /system_general.php: plugins_configure dns (execute task : unbound_configure_do())
2023-04-29T22:23:37 Notice php-cgi /system_general.php: plugins_configure dns (execute task : dnsmasq_configure_do())
2023-04-29T22:23:37 Notice php-cgi /system_general.php: plugins_configure dns ()
2023-04-29T22:23:37 Notice configctl event @ 1682799816.78 exec: system event config_changed
2023-04-29T22:23:37 Notice configctl event @ 1682799816.78 msg: Apr 29 22:23:36 OPNsense.localdomain config[14015]: [2023-04-29T22:23:36+02:00][INFO] config-event: new_config /conf/backup/config-1682799816.7469.xml
2023-04-29T22:23:10 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : webgui_configure_do(,wan))
2023-04-29T22:23:10 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : vxlan_configure_do())
2023-04-29T22:23:05 Warning opnsense /services_unbound.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan10
2023-04-29T22:23:05 Warning opnsense /services_unbound.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan20
2023-04-29T22:23:04 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : unbound_configure_do(,wan))
2023-04-29T22:23:04 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : openssh_configure_do(,wan))
2023-04-29T22:23:04 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : opendns_configure_do())
2023-04-29T22:23:04 Warning opnsense /services_unbound.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0
2023-04-29T22:23:04 Warning opnsense /services_unbound.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan50
2023-04-29T22:23:03 Warning opnsense /services_unbound.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan30
2023-04-29T22:23:03 Warning opnsense /services_unbound.php: dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb0_vlan40
2023-04-29T22:23:02 Error opnsense /services_unbound.php: The command '/bin/kill -'TERM' '70094'' returned exit code '1', the output was 'kill: 70094: No such process'
2023-04-29T22:22:59 Notice opnsense /services_unbound.php: plugins_configure dhcp (execute task : dhcpd_dhcp_configure())
2023-04-29T22:22:59 Notice opnsense /services_unbound.php: plugins_configure dhcp ()



Quote from: depc80 on April 29, 2023, 10:42:46 PM
Hi
I enable IPv6 for multiple interfaces + vlan, and Adguard listening without issue. I see IPv6 addresses show up on Adguard's dashboard. However, I have no idea if redirect rule to adguard would force IPv6 as well. Temporarily I add LAN IPv6 to rdr tartget alias. The problem is that I don't have static IPv6, and my ISP changes prefix once a day. Appreciate some example of IPv6 rdr configuration on adguard and opnesne.
Cheers

But this is not the problem, its about dhcp not handing out the local IP as dns :)


Quote from: mimugmail on April 30, 2023, 07:50:18 AM
Quote from: depc80 on April 29, 2023, 10:42:46 PM
Hi
I enable IPv6 for multiple interfaces + vlan, and Adguard listening without issue. I see IPv6 addresses show up on Adguard's dashboard. However, I have no idea if redirect rule to adguard would force IPv6 as well. Temporarily I add LAN IPv6 to rdr tartget alias. The problem is that I don't have static IPv6, and my ISP changes prefix once a day. Appreciate some example of IPv6 rdr configuration on adguard and opnesne.
Cheers

But this is not the problem, its about dhcp not handing out the local IP as dns :)
I see. Does IPv6 DNS records can be looked up over IPv4? Add LAN IPv6 as upstream DNS, I see a lot more IPv6 in logs. With Pihole I can use local-link IPv6 to advoid the dynamic prefix, Adguard doesn't accept it. I'm trying w [::1]:53350 for now. Will look around more. Thank you.

Quote from: depc80 on April 30, 2023, 09:31:57 AM
Does IPv6 DNS records can be looked up over IPv4?
Of course. If you run dual stack there is no need to have DNS over both protocols from client to recursive server. I use only IPv4. The recursive server needs to have IPv6 connectivity to reach authoritative servers over IPv6.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Quote from: mimugmail on April 30, 2023, 08:09:31 AM
Please all revert again to the origin file, I just pushed the update to all users.

Just for my own edification, I am running Unbound on port 5353 and AdGuard on port 53. The new checkbox tells me to tick it if I'm running AdGuard as primary DNS on port 53. I am, but I don't want to tick it as I am not having the issue described here.

Should the tickbox perhaps instead say "Enable if AdGuard runs on port 53 and you didn't change Unbound to run on a different port" or something like that?

You can't run two things on the same port.

You only need the checkbox if you are running AdGuard on 53.

If you are running AdGuard on port 53, you can't be running Unbound or DNSMasq on 53 as you have to change it.


Quote from: Grossartig on April 30, 2023, 11:00:46 PM
Quote from: mimugmail on April 30, 2023, 08:09:31 AM
Please all revert again to the origin file, I just pushed the update to all users.

Just for my own edification, I am running Unbound on port 5353 and AdGuard on port 53. The new checkbox tells me to tick it if I'm running AdGuard as primary DNS on port 53. I am, but I don't want to tick it as I am not having the issue described here.

Should the tickbox perhaps instead say "Enable if AdGuard runs on port 53 and you didn't change Unbound to run on a different port" or something like that?

If you dont have problems  you also wont have any when enabling it

May 01, 2023, 05:35:01 PM #73 Last Edit: May 01, 2023, 09:42:39 PM by Dotzi
Below I posted an issue that I ran into today, but it just disappeared as mysteriously as it occurred. I have no idea what to make of this, as I did absolutely nothing that could have triggered the problem or its solution. I'm just glad it's solved for now.

I'll leave my post here anyway just in case it happens again or sb else experiences something similar.

======
My original post:

I'm puzzled ... everything has been working well on 23.1.6 and I haven't touched anything in the settings (OPNSense or AdGuard) since over a week, but some time last night AdGuardHome all of a sudden stopped processing DNS requests.

AdGuard runs on port 53, Unbound on port 5353

AdGuard's query log is empty, and indeed nothing gets blocked.
DNS requests do get resolved, except for my internal network addresses.
When I redirect all DNS queries directly to 127.0.0.1:5353, then the internal addresses are getting resolved by Unbound, but obviously this bypasses AdGuard altogether.
When I redirect everything to port 127.0.0.1:53, then AdGuard resolves the requests but my devices don't have internet connection.

I then re-installed AdGuard as well as the AdGuard plugin (didn't use it before), checked the box that AdGuard runs on port 53, but the behaviour I described above hasn't changed.

Quote from: mimugmail on May 01, 2023, 06:35:43 AM
If you dont have problems  you also wont have any when enabling it

Unfortunately that's not true. Enabling AdGuard to advertise dns_ports with 53 included will be used as a validation against all other DNS servers so that you will get an error message for your actual DNS server running port 53.

So only enable if you have AdGuard on port 53.


Cheers,
Franco