systemd-resolved: serve uplink-names, writing the host names file (issue 960)

The verb checks each host name (root, wildcard, trailing dot, a label over
63 bytes, the mesh's own domain or under it, more than 8), writes
/var/lib/node-resolver/uplink-names whole through sudo -n install then
sudo -n mv -f, and answers the names with the link carrying the default
route (the lowest-metric kernel default route that is neither routed nor
the private network's interface) and when they were set.

Builds: design 08 sign-in-page §2, §5, §6
This commit is contained in:
jochen
2026-11-24 21:19:35 +01:00
parent 03bf70a22b
commit a40d7fb1c4
5 changed files with 394 additions and 5 deletions
+9 -1
View File
@@ -28,7 +28,8 @@
"serves": [
"routes",
"route",
"unroute"
"unroute",
"uplink-names"
]
}
],
@@ -102,6 +103,13 @@
"health": {
"kind": "unit"
}
},
{
"id": "uplink-names",
"type": "directory",
"path": "/var/lib/node-resolver",
"mode": "0755",
"unknown": "program"
}
],
"build": {