I get this error when I initiate an update:
***GOT REQUEST TO CHECK FOR UPDATES***
Currently running OPNsense 25.7.4 (amd64) at Mon Oct 13 00:44:11 EDT 2025
Fetching changelog information, please wait... fetch: https://pkg.opnsense.org/FreeBSD:14:amd64/25.7/sets/changelog.txz: Host does not resolve
Updating OPNsense repository catalogue...
pkg: https://pkg.opnsense.org/FreeBSD:14:amd64/25.7/latest/meta.txz: No address record
repository OPNsense has no meta file, using default settings
pkg: https://pkg.opnsense.org/FreeBSD:14:amd64/25.7/latest/packagesite.pkg: No address record
pkg: https://pkg.opnsense.org/FreeBSD:14:amd64/25.7/latest/packagesite.txz: No address record
Unable to update repository OPNsense
Error updating repositories!
Checking integrity... done (0 conflicting)
Your packages are up to date.
***DONE***
DNS not working. Needs a local fix.
Cheers,
Franco
Thanks Franco, I checked my DNS (little Pihole server) and I can access http://pkg.opnsense.org/ and any other sites that aren't on a blocklist.
But when I ssh into OPNsense and ping I get errors:
root@OPNsense:~ # ping bing.com
ping: cannot resolve bing.com: Name does not resolve
root@OPNsense:~ # ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: icmp_seq=0 ttl=56 time=15.700 ms
64 bytes from 1.1.1.1: icmp_seq=1 ttl=56 time=25.244 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=56 time=13.440 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=56 time=17.130 ms
64 bytes from 1.1.1.1: icmp_seq=4 ttl=56 time=11.652 ms
^C
--- 1.1.1.1 ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 11.652/16.633/25.244/4.696 ms
root@OPNsense:~ # ping http://pkg.opnsense.org/FreeBSD:14:amd64/
ping: cannot resolve http://pkg.opnsense.org/FreeBSD:14:amd64/: Name does not resolve
I wonder how to fix that. I want the Pihole DNS served to all clients in the LAN.
Check your /etc/resolv.conf tosee what nameservers you have.
Then add a valid DNS server to OPNsense to your liking.
Cheers,
Franco
Thanks, I had none 😯
root@OPNsense:~ # less /etc/resolv.conf
domain pihole
search pihole
I followed this guide using method 1: https://docs.pi-hole.net/routers/opnsense/#method-1-distribute-pi-hole-as-dns-server-via-dhcp
I got it working again by entering my pihole IPv4 and IPv6 address here as well: System: Settings: General: [Networking/DNS Servers]
Now my resolv.conf file looks like this:
Screenshot 2025-10-14 035859.png
I hope that's the right OPNsense way to do it.
Looks good :)