OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: Greelan on May 03, 2021, 03:30:18 pm

Title: [SOLVED] pkg and DNS resolution not working
Post by: Greelan on May 03, 2021, 03:30:18 pm
So a couple of days ago my OPNsense installation (21.1.5) stopped resolving. I am getting something similar to this thread: https://forum.opnsense.org/index.php?topic=4403.0

For example if I try to check for updates:
Code: [Select]
***GOT REQUEST TO CHECK FOR UPDATES***
Fetching changelog information, please wait... fetch: https://pkg.opnsense.org/FreeBSD:12:amd64/21.1/sets/changelog.txz.sig: No address record
Updating OPNsense repository catalogue...
pkg: https://pkg.opnsense.org/FreeBSD:12:amd64/21.1/latest/meta.txz: No address record
repository OPNsense has no meta file, using default settings
pkg: https://pkg.opnsense.org/FreeBSD:12:amd64/21.1/latest/packagesite.txz: No address record
Unable to update repository OPNsense
Updating SunnyValley repository catalogue...
pkg: https://updates.sunnyvalley.io/opnsense/FreeBSD:12:amd64/21.1/OpenSSL/latest/meta.txz: No address record
repository SunnyValley has no meta file, using default settings
pkg: https://updates.sunnyvalley.io/opnsense/FreeBSD:12:amd64/21.1/OpenSSL/latest/packagesite.txz: No address record
Unable to update repository SunnyValley
Updating mimugmail repository catalogue...
pkg: https://opn-repo.routerperformance.net/repo/FreeBSD:12:amd64/meta.txz: No address record
repository mimugmail has no meta file, using default settings
pkg: https://opn-repo.routerperformance.net/repo/FreeBSD:12:amd64/packagesite.txz: No address record
Unable to update repository mimugmail
Error updating repositories!
pkg: Repository OPNsense cannot be opened. 'pkg update' required
Checking integrity... done (0 conflicting)
Your packages are up to date.
***DONE***

I've tried the various fixes in the thread above but nothing.

My DNS servers are set correctly (they are pointing to a RPi on my LAN) and /etc/resolv.conf is populated correctly.

This just seemed to occur randomly one morning two days ago at 3am (judging from the logs when some Alias domains stopped resolving).

Any hints about how to fix? Thanks.
Title: Re: pkg and DNS resolution not working
Post by: Greelan on May 04, 2021, 12:06:46 pm
I've now discovered the issue was due to Sensei - for whatever reason it was blocking DNS resolution on OPNsense. Thanks so much SunnyValley...  ::)