Feature request (dns): "subdomain" support #213
Open
opened 2025-05-22 20:21:02 +00:00 by jfly
·
1 comment
No Branch/Tag Specified
main
update-nixpkgs
update-go-dep-github-com-klauspost-compress-v1.20.4
update-go-dep-github-com-klauspost-compress-v1.20.3
update-go-dep-github-com-klauspost-compress-v1.20.1
update-go-dep-github-com-klauspost-compress-v1.20.0
update-go-dep-github-com-klauspost-compress-v1.19.2
update-go-dep-github-com-klauspost-compress-v1.19.1
update-go-dep-github-com-klauspost-compress-v1.19.0
gh-pages
update-go-dep-github-com-klauspost-compress-v1.18.6
update-go-dep-golang-org-x-sync-v0.20.0
update-go-dep-github-com-libp2p-go-libp2p-kad-dht-v0.39.0
better-markdown-formatting
push-mwvmrltpltzk
ke-bump-go
update-go-dep-github-com-libp2p-go-libp2p-kad-dht-v0.38.0
runtime-configuration
push-ouqurpspomqw
adr/stateless-file-config
feat/validate-names
update-go-dep-github-com-spf13-pflag-v1.0.10
update-go-dep-github-com-spf13-pflag-v1.0.8
dave
fix/nixos-module-export
feat/switch-to-flake-parts
fix/revert-nixos-module-changes
feat/flake-refinements
feat/dev-flake
fix/nixos-module
feat/add-more-systems
feat/docs-icon
feat/go-1.24
feat/vendor-hash-renovate-workflow
flake-update-2025-03-10
feat/cleanup-and-comment
v0.1.0
Labels
Clear labels
Good first issue
Help wanted
mq
merging
mq
waiting
OS
Darwin
OS
Linux
Priority
Critical
1
Priority
High
2
Priority
Medium
3
Priority
Low
4
Status
Blocked
1
Status
On Hold
2
Status
Needs More Info
3
Status
Needs Review
4
Status
In Progress
5
Status
Won't Fix
6
Status
Available
Status
Duplicate
Type
Community Contribution
1
contributed by members of the Clan community
Type
Discussion
1
Type
Bug
2
Type
Question
3
Type
Epic
4
Type
Feature Request
5
Type
User Experience
5
Type
Enhancement
6
Type
Maintenance
7
Type
Documentation
Type
Question
Question to be resolved
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: clan/data-mesher#213
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
I've been trying out data-mesher's dns support, and it's super cool! I love being able to add services to a node, and give it a nice human readable name. For example:
machines/node1/configuration.nix:This works great for services where I don't care which machine it's hosted on. However, there are some services (like syncthing) which I run on many machines, and want easy access to each syncthing instance. Concretely, imagine something like this:
node1.tldruns syncthing.node2.tldalso runs syncthing.I would like to be able to access these at
st.node1.tldandst.node2.tld. I could see this just being the default behavior: i.e.:*.node1.tldresolves tonode1.tldwith no additional config, or we let people configure it*.*I can't do this right now because data-mesher has this strict
NameRegexthat doesn't allow for dots.Implementation ideas
I'm open to sending a PR for this if you want. A few ideas:
NameRegexto allow for dots. Out of curiosity, I tried this and things just worked, but perhaps the strict regex is intentional?node1.tldcould claimfoo.node2.tld. I imagine this is solvable with more code somewhere, but I'd need a pointer in the right direction.nss-datamesherto resolve*.hostname.tldtohostname.tld. That looks like a straightforward change here: https://git.clan.lol/clan/data-mesher/src/branch/main/nss-datamesher/src/lib.rs#L125.One approach would be to allow claiming a subdomain if you already have a claim on the parent.
An instance could claim for example
['saturn.sol', 'titan.saturn.sol', 'dione.saturn.sol']. Then when we are resolving DNS from host claims we will allowtitananddioneonly if the instance has already acquired the claim onsaturn.sol.We have to model it like this for the future scenario where we bring two clans together, and there could be overlapping host claims between two disjoint data-mesher clusters.
Needs more thought though.