DNS randomly stops working then works again?

Started by railswrack, November 08, 2024, 09:24:13 AM

Previous topic - Next topic
November 08, 2024, 09:24:13 AM Last Edit: November 08, 2024, 11:35:41 PM by railswrack
New to OPNsense. So far everything has been working fine but I ran into an issue recently.

I was playing an online game and got disconnected due to a network connection issue. I checked my connection and it was still online. Then I went to google and it worked, but when I tried going to any other website it wouldn't load and would give me a DNS error.

Like 5 minutes later it started working again without me doing anything. Then a couple moments later it went out again. Happens on all my devices connected to my network at the same time.

No idea what would cause this or how to fix it from happening again?

November 08, 2024, 11:31:12 PM #1 Last Edit: November 08, 2024, 11:39:02 PM by railswrack
Update: DNS still working, but I want to know what caused it to stop working and how to prevent this from happening again. When the DNS stopped working, it stopped working across all devices connected to my internet (LAN). Not using any VLANs.

ISP: Comcast (Xfinity)


Hardware: Modem: Arris S33v2 / Router: Protectli Valut V1210 – 2 Port Intel N5105 / Switch: Netgear MS105 5-port 2.5GbE / WAP: TP Link TL-WA1201


OPNsense Settings:
Dashboard: https://i.imgur.com/IuiWZKC.jpeg
System/Settings/General: https://i.imgur.com/4FCnrlR.jpeg
Interfaces/LAN: https://i.imgur.com/wSZBtXM.jpeg
Interfaces/WAN: https://i.imgur.com/rySB3gv.jpeg
Firewall/NAT/Outbound: https://i.imgur.com/nhpTUDF.jpeg

(This is the only firewall rule I have added. All other firewall settings and rules are default)

Services/ISC DHCPv4/LAN: https://i.imgur.com/f4Ft9Gp.jpeg
Services/ISC DHCPv4/Log File: https://i.imgur.com/frv3UGA.jpeg

(The only static IP I have on my LAN (192.168.*.169) is my main pc that's wired to my switch. Not sure why it keeps saying in the DHCPv4 log file that there is a duplicate dynamic and static leases present for it. Could it be IPV4 and IPV6 leases conflicting with each other? Not sure if this could be a cause for my DNS issue?)

Services/Unbound DNS/General: https://i.imgur.com/zFnQNUy.jpeg


I had the same issue two days ago with a newer installation of opnsense on an old lenovo pc. At the end it was the standard realtek driver. After switching to the vendor drivers it worked again like a charme. The strange thing was really that I lost the DNS, but not the connection (i had a stream vom Amazon Prime playing which was not stopping).
Perhaps it's a similiar issue?

Regards,
Martin

I got issues with a special cable (DAC) which causes the network interface to go up and down constantly. But that triggered the services to restart.

Meaning maybe you also have an network interface issues that is causing cascading issues like you see.

Check your `dmesg`.
Hardware: DEC3852
Version: OPNsense 24.10 Business Edition