OPNsense Forum

English Forums => 25.7 Series => Topic started by: RAT on October 13, 2025, 06:59:13 AM

Title: Update not working - Host does not resolve
Post by: RAT on October 13, 2025, 06:59:13 AM
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***
Title: Re: Update not working - Host does not resolve
Post by: franco on October 13, 2025, 08:34:01 AM
DNS not working. Needs a local fix.


Cheers,
Franco
Title: Re: Update not working - Host does not resolve
Post by: RAT on October 14, 2025, 03:02:41 AM
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.
Title: Re: Update not working - Host does not resolve
Post by: franco on October 14, 2025, 06:55:48 AM
Check your /etc/resolv.conf tosee what nameservers you have.

Then add a valid DNS server to OPNsense to your liking.


Cheers,
Franco
Title: Re: Update not working - Host does not resolve
Post by: RAT on October 14, 2025, 10:05:26 AM
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.

Title: Re: Update not working - Host does not resolve
Post by: franco on October 14, 2025, 01:05:21 PM
Looks good :)