← Back to issue list

build providers: use LXD-provided DNS by default

View original Github issue

Metadata

Project
snapcraft
Number
#3141
Type
pull request
State
merged
Author
cjp256
Labels
Created
Updated
Closed

Current evaluation

Merged into master. Configures the host to use systemd-resolved for DNS resolution, leveraging LXD-provided DNS by default. Approved with passing CI checks and 100% diff coverage across two files.

Suggested action:

No scores available.

Issue body

A DNS server is provided by LXD, we just need to configure the host to use systemd-resolved for name resolution. After installing these files, there is no need to restart the container, just restart networkd. Signed-off-by: Chris Patterson <chris.patterson@canonical.com> - [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged into master. Configures the host to use systemd-resolved for DNS resolution, leveraging LXD-provided DNS by default. Approved with passing CI checks and 100% diff coverage across two files.
qwen3.6-35b-a3b-mtp-q6 Merged into master. Configures build providers to use LXD-provided DNS by default via systemd-resolved, removing the need for container restarts. Achieved 100% diff coverage.
qwen3.6-35b-a3b-mtp-q6 Merged into master. Configures the host to use systemd-resolved to leverage LXD-provided DNS by default, eliminating container restarts and requiring only a networkd restart. Achieved 100% diff coverage.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#3052 build providers: wait for systemd and better nameserver setup on LXD snapcraft merged Merged. Updated LXD build provider to handle systemd degraded state, enable core20 tests, and configure nameserver resolution via systemd-resolved with env var override. Approved, passed CI, +154/-50 lines across 8 files.
80%
#3521 build providers: set hostname for lxd snapcraft merged Merged. Fixes LXD build provider hostname configuration by running hostname -F to notify the kernel after updating /etc/hostname. Approved by reviewers, passed CI, and achieved 100% coverage.
75%
#3281 build providers: hide systemd setup for LXD snapcraft merged Merged to hide verbose systemd setup output for LXD build providers. Approved by one reviewer, passed CI, and modified two files to streamline console output while preserving internal debug visibility.
71%