systemd-resolved: a network's own servers answer while the mesh's resolvers are silent (issue 1981) #704

Merged
mesh-tools merged 3 commits from fix/1981-sign-in-page-names into main 2026-11-24 13:00:43 +00:00
Member

Fixes issue 1981: on a guest wifi with a sign-in page the laptop resolved no name, so the sign-in page never loaded.

The resolver guard turned every network's servers off as a default route for names, so every name went to the mesh's resolvers, which are out of reach over the tunnel until the person signs in. Each 5 s round the guard now first asks each of the mesh's resolvers a name under the mesh's domain (within the new config value answer-within, default 1 s). While none answers, every link a network manager gave servers is a default route again, read from resolved each round; a link route routed (a VPN's) never is. Once one answers, the links lose it again within 5 s. The operator decided this shape on 2026-11-19.

Quick or thorough: thorough (the guard decides by itself; no verb by hand), see the issue's note.

Tests: 1981/AC1 TestTheNetworksServersAnswerWhileTheMeshsResolversAreSilent, 1981/AC2 TestANetworkJoinedWhileTheMeshIsSilentKeepsItsDefaultRoute, 1981/AC3 TestAResolverAnswersUnlessItIsSilent (unit). The module has no integration tests; go vet -tags integration ./... compiles. 1981/AC4 is live, on g14 at the next join of a network with a sign-in page.

systemd-resolved 0.1 -> 0.2: new config value answer-within and the rendered file /etc/node-resolver/answer-within.

2026-11-24: main merged in (8f21a7a5); the one conflict, module.json, keeps main's class core with the version 0.2. Merged at once without the check, by the operator's temporary rule until design 47 is delivered (2026-11-22 21:05).

Reviewed-by: mesh-code-reviewer@g14 at 8f21a7a5de
Pushed-by: fix-1981@g14

Fixes issue 1981: on a guest wifi with a sign-in page the laptop resolved no name, so the sign-in page never loaded. The resolver guard turned every network's servers off as a default route for names, so every name went to the mesh's resolvers, which are out of reach over the tunnel until the person signs in. Each 5 s round the guard now first asks each of the mesh's resolvers a name under the mesh's domain (within the new config value `answer-within`, default 1 s). While none answers, every link a network manager gave servers is a default route again, read from resolved each round; a link `route` routed (a VPN's) never is. Once one answers, the links lose it again within 5 s. The operator decided this shape on 2026-11-19. Quick or thorough: thorough (the guard decides by itself; no verb by hand), see the issue's note. Tests: 1981/AC1 TestTheNetworksServersAnswerWhileTheMeshsResolversAreSilent, 1981/AC2 TestANetworkJoinedWhileTheMeshIsSilentKeepsItsDefaultRoute, 1981/AC3 TestAResolverAnswersUnlessItIsSilent (unit). The module has no integration tests; `go vet -tags integration ./...` compiles. 1981/AC4 is live, on g14 at the next join of a network with a sign-in page. systemd-resolved 0.1 -> 0.2: new config value `answer-within` and the rendered file /etc/node-resolver/answer-within. 2026-11-24: main merged in (8f21a7a5); the one conflict, module.json, keeps main's class core with the version 0.2. Merged at once without the check, by the operator's temporary rule until design 47 is delivered (2026-11-22 21:05). Reviewed-by: mesh-code-reviewer@g14 at 8f21a7a5def5c0bf03cd8d6feaa226b2b390f505 Pushed-by: fix-1981@g14
mesh-tools added 2 commits 2026-11-19 08:55:41 +00:00
Behind a guest network's sign-in page the private network is out of reach,
and the guard sent every name to the mesh's resolvers, so the sign-in page
itself could not be found. The guard now asks the mesh's resolvers each
round and gives the links it turned off their default route back while none
answers; once one answers they lose it again.
The guard kept the links it had turned off in memory, so a VPN link turned
off before it was routed got its default route back, and a guard restarted
behind a sign-in page gave nothing back. It now reads them from resolved
each round and skips a link whose domains are all routing domains. How long
a mesh resolver is given to answer is the config value answer-within.
jschoubben added 1 commit 2026-11-24 13:00:30 +00:00
mesh-tools merged commit 8edc9233c0 into main 2026-11-24 13:00:43 +00:00
mesh-tools deleted branch fix/1981-sign-in-page-names 2026-11-24 13:00:43 +00:00
Author
Member

{
"records": [
{
"instance": "record/main_159_ca565358",
"sequence": 82188,
"bytes": 545,
"of-bytes": 65536,
"record": {
"milestone": "main.159",
"branch": "main",
"source": 159,
"call": "46a03d5e3121d34b",
"heads": {
"novox/mesh-catalog@704": "8edc9233c02ab75df06bbc13c4f667cb430025e6"
},
"opened": "2026-11-24T13:00:43.953372905Z",
"form": 3,
"trace": {
"pulls": [
"novox/mesh-catalog@704"
],
"commits": [
"8edc9233c02ab75df06bbc13c4f667cb430025e6"
],
"source": "159",
"call": "46a03d5e3121d34b",
"by": "fix-1981@g14",
"account": "g14.node-tools",
"at": "2026-11-24T13:00:43.941Z"
},
"ended": {
"at": "2026-11-24T13:03:13.855298641Z",
"why": "nothing to deliver"
},
"merge-called": "2026-11-24T13:00:43.941Z"
}
}
]
}

<!-- mesh-delivery:view --> { "records": [ { "instance": "record/main_159_ca565358", "sequence": 82188, "bytes": 545, "of-bytes": 65536, "record": { "milestone": "main.159", "branch": "main", "source": 159, "call": "46a03d5e3121d34b", "heads": { "novox/mesh-catalog@704": "8edc9233c02ab75df06bbc13c4f667cb430025e6" }, "opened": "2026-11-24T13:00:43.953372905Z", "form": 3, "trace": { "pulls": [ "novox/mesh-catalog@704" ], "commits": [ "8edc9233c02ab75df06bbc13c4f667cb430025e6" ], "source": "159", "call": "46a03d5e3121d34b", "by": "fix-1981@g14", "account": "g14.node-tools", "at": "2026-11-24T13:00:43.941Z" }, "ended": { "at": "2026-11-24T13:03:13.855298641Z", "why": "nothing to deliver" }, "merge-called": "2026-11-24T13:00:43.941Z" } } ] } <!-- mesh-act:view.record/main_159_ca565358.novox/mesh-catalog#704@1795525394217538716.77686610 -->
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: novox/mesh-catalog#704