OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • 23.7 Production Series »
  • 23.7 upgrade from 23.1 results in DNS issues
« previous next »
  • Print
Pages: [1] 2

Author Topic: 23.7 upgrade from 23.1 results in DNS issues  (Read 1398 times)

BasilBasil

  • Newbie
  • *
  • Posts: 10
  • Karma: 1
    • View Profile
23.7 upgrade from 23.1 results in DNS issues
« on: September 03, 2023, 12:57:08 pm »
I've been running opnsense 23.1 flawlessly I think pretty much from release (I have had the odd issue with opnsense prior to 23.1, but effectively 99.9% uptime for many years since switching from pfsense).

Yesterday I updated to 23.7.3 and immediately starting having issues.

First off was that I was not getting any DNS responses (I could connect via IPs OK) - for some reason "Enable Unbound" was not ticked anymore. Ticked, now getting DNS responses once unbound started.

HOWEVER, how my custom domain does no longer work.

For example, if I had server1.customdomain it would originally have responded with the IP address.

Now I get:

Server:      10.10.1.1
Address:   10.10.1.1#53

** server can't find server1.customdomain: NXDOMAIN


server1.local DOES however work.

All my overrides still work too.



Thankfully as I run this as a VM I rebooted into my 23.1 instance - everything working again.


What has changed in 23.7 that A) meant that unbound DNS did not automatically start because it had been unchecked to do so and B) Why is my custom domain stuff working?

In the mean time I've reverted back to 23.1, as a number of things rely on the device.customdomain tag and thus dont work properly...!

I've had a fiddle, but at the end of the day this is a home setup so I've run out of debug time and skills!

Many Thanks!
« Last Edit: September 03, 2023, 01:00:48 pm by BasilBasil »
Logged

zandrr

  • Newbie
  • *
  • Posts: 9
  • Karma: 1
    • View Profile
Re: 23.7 upgrade from 23.1 results in DNS issues
« Reply #1 on: September 04, 2023, 08:02:23 am »
I for one actually had the same experience post-upgrade and also rolled back without too much investigative analysis. VM as well.
Don't really have anything to add sorry, just mirroring your experience. This was back in 23.7.0 though, so first release.

Will keep an eye on this thread for insights. I'm in no rush to upgrade home again, but would like to. Just waiting patiently,
Logged

newsense

  • Hero Member
  • *****
  • Posts: 648
  • Karma: 43
    • View Profile
Re: 23.7 upgrade from 23.1 results in DNS issues
« Reply #2 on: September 04, 2023, 08:21:34 am »
Quote
Just waiting patiently

There are currently no open issues regarding DNS post 23.7.3
Logged

BasilBasil

  • Newbie
  • *
  • Posts: 10
  • Karma: 1
    • View Profile
Re: 23.7 upgrade from 23.1 results in DNS issues
« Reply #3 on: September 04, 2023, 09:51:06 pm »
Quote from: newsense on September 04, 2023, 08:21:34 am
Quote
Just waiting patiently

There are currently no open issues regarding DNS post 23.7.3

This may be the case, but the upgrade for me has caused two different issues, both DNS related.

Some guidance as to why the domain stuff isn’t working (or what to look for) may yield clues, but for now I’m sticking with 23.1.

Edit: Switched between 23.7.3 and 23.1 a few times. Black and white working/not working for me.

23.1.11 device.customdomain works
23.7.3 device.customdomain does NOT work

So there is clearly something between 23.1.11 and 23.7.3 that is causing this, if someone can provide some guidance as to where the problem might lie then I can do some more digging.
« Last Edit: September 04, 2023, 10:02:01 pm by BasilBasil »
Logged

CJ

  • Hero Member
  • *****
  • Posts: 629
  • Karma: 23
    • View Profile
    • Have Answer, Will Blog
Re: 23.7 upgrade from 23.1 results in DNS issues
« Reply #4 on: September 05, 2023, 02:41:46 pm »
I believe a few people had trouble where unbound got disabled during the upgrade but I don't think it was a common thing or that it was ever determined why.

How do you have your custom domain configured and what do the Unbound logs show?
Logged
Have Answer, Will Blog

BasilBasil

  • Newbie
  • *
  • Posts: 10
  • Karma: 1
    • View Profile
Re: 23.7 upgrade from 23.1 results in DNS issues
« Reply #5 on: September 07, 2023, 11:32:58 am »
Seems like a pretty significant bug if multiple users have seen it happen  ;D

As for custom domain, I think the only place it is set is here:

SYSTEM: SETTINGS: GENERAL

Domain "customdomain"

I'll have to boot back into 23.7 to get some unbound logs.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 15589
  • Karma: 1349
    • View Profile
Re: 23.7 upgrade from 23.1 results in DNS issues
« Reply #6 on: September 07, 2023, 12:47:25 pm »
It's probably fixable under 30 minutes with the right error message attached.

If you have the 23.7 where Unbound is still disabled right after upgrade you can try running:

# /usr/local/opnsense/mvc/script/run_migrations.php
# opnsense-log | grep run_migrations


Cheers,
Franco
Logged

Sekkis

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: 23.7 upgrade from 23.1 results in DNS issues
« Reply #7 on: September 07, 2023, 03:28:03 pm »
I had issues starting Unbound after updating to 23.7. The logs gave no clues, but I stumbled on to a post (can't find it ATM) where they discussed a bug when running Unbound on "not all" interfaces, as I was.

The fix was to:
  Go to Services -> Unbound DNS -> General
  Choose to Clear All beneath the Network Interfaces drop down, Apply
  Choose your preffered interface(s) again, and reapply.

Worked for me, hope this helps.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 15589
  • Karma: 1349
    • View Profile
Re: 23.7 upgrade from 23.1 results in DNS issues
« Reply #8 on: September 07, 2023, 05:04:57 pm »
Yeah this one was fixed in 23.7.1:

https://github.com/opnsense/changelog/blob/01889aa7eb9c4e75c3aff6dde9abeca18f16ea55/community/23.7/23.7.1#L28


Cheers,
Franco
Logged

BasilBasil

  • Newbie
  • *
  • Posts: 10
  • Karma: 1
    • View Profile
Re: 23.7 upgrade from 23.1 results in DNS issues
« Reply #9 on: September 07, 2023, 10:53:31 pm »
I’ll spend a bit of time messing about with this this weekend to get answers.

Couldn’t turn the internet off yet, I’d get an unhappy other half.  ;D
Logged

rshakin

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: 23.7 upgrade from 23.1 results in DNS issues
« Reply #10 on: September 13, 2023, 07:20:19 am »
Same issue since updating cant acess any servers on a local hostname... any fixes or should i just to back to old version.
Logged

mic

  • Newbie
  • *
  • Posts: 18
  • Karma: 1
    • View Profile
Re: 23.7 upgrade from 23.1 results in DNS issues
« Reply #11 on: September 13, 2023, 10:29:07 am »
@Franco

Hi,

I have the same issue, after upgrade to 23.7.3 Unboud was disabled so I enable it but all my overrides dosn't work.
I run the following command:
Code: [Select]
/usr/local/opnsense/mvc/script/run_migrations.php

** OPNsense\Unbound\Unbound Migration failed, check log for details

and then
Code: [Select]
opnsense-log | grep run_migrations

<147>1 2023-09-13T08:23:04+02:00 localhost config 2076 - [meta sequenceId="29"] #1 /usr/local/opnsense/mvc/script/run_migrations.php(54): OPNsense\Base\BaseModel->runMigrations()
<147>1 2023-09-13T08:27:54+02:00 opnsense-casa.proximanet.net config 80369 - [meta sequenceId="8"] #1 /usr/local/opnsense/mvc/script/run_migrations.php(54): OPNsense\Base\BaseModel->runMigrations()
<147>1 2023-09-13T09:56:22+02:00 opnsense-casa.proximanet.net config 50858 - [meta sequenceId="6"] #1 /usr/local/opnsense/mvc/script/run_migrations.php(54): OPNsense\Base\BaseModel->runMigrations()

Then I tried also to enable the access list and insert my subnets, but it still doesn't work...

Can you help me, please?

Thank you
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 15589
  • Karma: 1349
    • View Profile
Re: 23.7 upgrade from 23.1 results in DNS issues
« Reply #12 on: September 13, 2023, 11:03:18 am »
Can you give the full log and the config.xml section of your overrides? That would help reproduce this quickly. You can also PM me or better yet send to franco@opnsense.org


Cheers,
Franco
Logged

mic

  • Newbie
  • *
  • Posts: 18
  • Karma: 1
    • View Profile
Re: 23.7 upgrade from 23.1 results in DNS issues
« Reply #13 on: September 13, 2023, 01:54:59 pm »
Hi Franco,

I sent you the unbound section of config.xml via email.

Thak you
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 15589
  • Karma: 1349
    • View Profile
Re: 23.7 upgrade from 23.1 results in DNS issues
« Reply #14 on: September 13, 2023, 04:45:54 pm »
With mic's help we now have a POC:

https://github.com/opnsense/core/pull/6844

I don't want to advertise it too much though. It needs to be discussed internally first and not everyone is at the office at the moment.


Cheers,
Franco
« Last Edit: September 13, 2023, 04:49:07 pm by franco »
Logged

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • English Forums »
  • 23.7 Production Series »
  • 23.7 upgrade from 23.1 results in DNS issues
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2