[CALL FOR TESTING] Defer PPPoE dialup to after boot completes

Started by franco, November 13, 2026, 10:31:37 AM

Previous topic - Next topic
Quote from: franco on November 27, 2026, 02:31:42 PMYes, magic!  It's quite beneficial to everyone having DNS woes on bootup affecting WireGuard actually:
I'll chime in on this re: a different race condition:

I run Adguard Home as my DNS forwarder on port 53 (forwarding to unbound on 5553).

I had UNchecked "Allow DNS server list to be overridden by DHCP/PPP on WAN" under System: Settings: General.

On boot, the DDNS plugin could not resolve the hostnames (e.g. for cloudflare) and throws errors. Presumably because Adguard Home was not up yet. It would then only retry (and succeed) one interval (5 minutes for me) later. That is not mission-critical and I could resolve it by re-enabling "Allow DNS server list to be overridden by DHCP/PPP on WAN", but perhaps this could also be fixed by a "wait until DNS is up"?


AGH is not in our plugins so there's not much we can do.


Cheers,
Franco

Quote from: franco on November 28, 2026, 03:49:00 PMAGH is not in our plugins so there's not much we can do.
That's understood, but I thought maybe the startup of DDNS could be delayed / be dependent on DNS being up. But it's not a big deal.


Sorry yes I meant ddclient (Services: Dynamic DNS).

Sample error:
QuoteAccount xyz [spdyn - SPDNS (IPv6)] raised fatal error (HTTPSConnectionPool(host='update.spdyn.de', port=443): Max retries exceeded with url: /nic/update?hostname=xxx.spdns.de&myip=xyz&system=dyndns&wildcard=NOCHG (Caused by NameResolutionError("HTTPSConnection(host='update.spdyn.de', port=443): Failed to resolve 'update.spdyn.de' ([Errno 2] Name could not be resolved at this time)")))

This error goes away if the firewall uses the upstream DHCP-distributed DNS servers.

Ok, can you try this patch?

# opnsense-patch https://github.com/opnsense/plugins/commit/1739d8bf54


Cheers,
Franco

Thanks Franco!

Patch applied cleanly. Disabled the "DHCP DNS override"  and rebooted.

Unfortunately ddclient still shows DNS errors:

QuoteFailed to resolve 'update.spdyn.de' ([Errno 2] Name could not be resolved at this time)")))
(Same for cloudflare)

Update after 5min runtime worked fine (as DNS was up).


IF the DNS goes through AGH it's probably slow to initialize.  The timeouts+retries in os-ddclient may be improved, but that's not something I want to touch for existing complexity reasons (different backends, ddclient weirdness and being outdated, etc.).


Cheers,
Franco