Aliases keep going stale / stop resolving

Started by sarkyscouser, November 24, 2026, 09:08:12 AM

Previous topic - Next topic
I stand corrected - thanks. Now I need to research when the old behaviour I learned and memorised decades ago changed.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

I too lost track of DNS and resolver library long ago. That's why I looked it up. But thinking about it, sending queries to one name server until it fails is the way to build a good cache and responses from a cache should be the quickest.

Quote from: mooh on November 24, 2026, 03:05:10 PMUnbound will only query locally configured DNS servers if it is explicitly configured to do so under "Services: Unbound DNS: Query Forwarding: Use System Nameservers"

I don't enable that option.

Consider the default configuration of OPNsense which has the DNS server options for Allow DNS server list to be overridden by DHCP/PPP on WAN enabled, the ISP supplied DNS will be used and the DNS servers listed under DNS servers will count for nought.

The problem @sarkyscouser is experiencing with the Aliases failing to update in OPNsense appears to be related to DNS. Also reported is that no problems are observed when accessing the URL's using a computer attached to the local network.

The configuration information provided thus far indicates the client computers will be obtaining IP addresses from DNS servers which OPNsense itself is not using - this opens the possibility of different behaviour being observed in OPNsense compared to the network clients.

Going back many years, the firewalls I was maintaining, FortiGate in this case (this would apply to other brands too), the devices would initially be configured by someone else who would set the DNS server on the FortiGate to use FortiNet's DNS servers. The network clients would be using DNS on the Windows AD controller, with Windows AD querying root servers, or more likely, a closer DNS server.

The FortiGate's would be configured with FQDN address entries and used in firewall rules. Occasionally, the user would be blocked connecting to some site that a firewall rule should allow. Tracking down the issue, it was found the firewall was resolving the name to a different address compared to what Active Directory obtained. Pointing the FortiGate's DNS to the internal DNS server resolved the problem.

Today at 03:04:12 AM #18 Last Edit: Today at 03:06:08 AM by lmoore
Quote from: lmoore on November 24, 2026, 10:34:14 AM

This image shows 3 different GitHub addresses being blocked.

Performing a DNS query for 'raw.githubusercontent.com' yields the following;

185.199.108.133
185.199.109.133
185.199.110.133
185.199.111.133

Thus only one address will  be reachable, i.e. 185.199.108.133.

Quote from: lmoore on November 24, 2026, 10:34:14 AMIf memory serves me, Github was experiencing issues accepting connections some time back - back then I never bothered to check if my aliases were updating.

These are the only errors for the past month in my General Log Files:



There are other errors listed earlier in October, 2 in September and quite a few for a few days around mid August.

I was only aiming at the statement that removing external nameservers will somehow change name resolution. Queries will only go to unbound without additional changes. That's also true for dhcp clients.

I only started to read this thread because I had similar problems a while ago.

Some cloud providers seem to do load balancing via DNS. DNS resolution of their servers only returns 1 IP address with low TTL, but a different one out of a certain set of addresses on every request. That way, there's a chance that the alias expansion uses one address while the actual request by a client resolves to another and rules build on the alias fail. Debian repos on fastlydns.net used to be bad offenders with 1 second TTLs, but they have kind of "fixed" the issue since by using 60 second TTL.

Updating the alias more frequently, there's a better chance of the alias and client request resolving to the same address, the rule matching and comms getting through. But it's a waste of resources. I'm looking for better ideas to solve this issue.

The proper solution would be to use load balancers. At the very least, DNS should return the complete address pool in a different order.