Pasta address family detection relies on /etc/resolv.conf's address families #1014

Open
opened 2025-10-13 18:47:27 +00:00 by raito · 0 comments
Owner

Describe the bug

Our pasta address family detection relies on /etc/resolv.conf's address families.

So if you are running an IPv4-only resolver on an IPv6-only WAN system, you will run into troubles (and vice versa).

Workarounds exist to fix that, but are fragile and makes things more complicated for an end user to debug.

Steps To Reproduce

  1. Use systemd-resolved vanilla, e.g. 127.0.0.53
  2. Use Pasta with Lix.
  3. Try to build a FOD that does connect to Internet with a DNS resolution.
  4. See DNS resolution error.

Expected behavior

Success.

nix --version output

Since pasta is enabled.

Additional context

Discovered in AFNix infrastructure and workarounded in https://git.afnix.fr/afnix/infra/src/branch/main/services/resolver/default.nix#L38-L41.

## Describe the bug Our pasta address family detection relies on `/etc/resolv.conf`'s address families. So if you are running an IPv4-only resolver on an IPv6-only WAN system, you will run into troubles (and vice versa). Workarounds exist to fix that, but are fragile and makes things more complicated for an end user to debug. ## Steps To Reproduce 1. Use systemd-resolved vanilla, e.g. `127.0.0.53` 2. Use Pasta with Lix. 3. Try to build a FOD that does connect to Internet with a DNS resolution. 4. See DNS resolution error. ## Expected behavior Success. ## `nix --version` output Since pasta is enabled. ## Additional context Discovered in AFNix infrastructure and workarounded in https://git.afnix.fr/afnix/infra/src/branch/main/services/resolver/default.nix#L38-L41.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#1014
No description provided.