Skip to content

Conversation

@graysky2
Copy link
Contributor

@graysky2 graysky2 commented Feb 6, 2026

📦 Package Details

Maintainer: @ratkaj
(You can find this by checking the history of the package Makefile.)

Description:

Add opt-in support for waiting for dnsmasq to be fully initialized before starting LXC containers. This addresses issues where containers that depend on DNS resolution (e.g., AdGuardHome) start before dnsmasq has loaded its DHCP lease table, resulting in hostnames not being resolved to IP addresses.

The feature is controlled by two new optional UCI config options in /etc/config/lxc-auto whose usage is commented therein.

No new depends are introduced with this change.


🧪 Run Testing Details

  • OpenWrt Version: SNAPSHOT
  • OpenWrt Target/Subtarget: x86/64
  • OpenWrt Device: Intel N150 based PC

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

If your PR contains a patch:

  • It can be applied using git am
  • It has been refreshed to avoid offsets, fuzzes, etc., using
    make package/<your-package>/refresh V=s
  • It is structured in a way that it is potentially upstreamable
    (e.g., subject line, commit description, etc.)
    We must try to upstream patches to reduce maintenance burden.

Add opt-in support for waiting for dnsmasq to be fully initialized
before starting LXC containers. This addresses issues where containers
that depend on DNS resolution (e.g., AdGuardHome) start before dnsmasq
has loaded its DHCP lease table, resulting in hostnames not being
resolved to IP addresses.

The feature is controlled by two new optional UCI config options in
/etc/config/lxc-auto whose usage is commented therein.

No new depends are introduced with this change.

Signed-off-by: John Audia <therealgraysky@proton.me>
@graysky2
Copy link
Contributor Author

graysky2 commented Feb 6, 2026

Works as expected. On my system, dnsmasq startup takes approx 10 seconds. Starting lxc-auto while dnsmasq is initializing properly waits for it to finish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant