Article · 4 min read · Servers and performance
kubespin: DNS names and providers
One row per name, with:
DNS in the menu shows every name kubespin made or serves for you, what makes each kind of name, and the DNS servers your servers use. It has three tabs: Names, Providers and DNS servers.
Names
One row per name, with:
- the name, such as
blog-k7q2.kubespin.ioorionos.kubespin.io; - what it’s for, Server or App, linking to its page;
- where it should point: the server’s public address, or kubespin for a name carried through the agent’s tunnel;
- what makes it: DNS provider, Wildcard, kubespin tunnel, Mesh or Your DNS;
- whether it resolves:
- Resolves: it points where it should;
- Points elsewhere: it resolves to another address (hover to see which);
- Not yet: it doesn’t resolve yet; a new name can take a few minutes;
- Mesh only: a kubespin: The mesh network name, which resolves only on your devices on the mesh, so kubespin doesn’t look it up.
Check again looks every public name up again from kubespin.
Providers
One card for each way kubespin makes names, with its zone, what it makes, how many of your names come from it, and Off when it isn’t set up:
| Provider | What it makes |
|---|---|
| The DNS provider (IONOS, Cloudflare or AWS Route 53) | Server names and app names, as A records it creates and removes |
| Wildcard certificate | Generated app names, one level under the zone, with HTTPS from one certificate |
| kubespin’s own domain | Generated names for apps on home servers, reached through the agent’s tunnel |
| Mesh network | Your devices’ names, which resolve only on the mesh |
| Your own domains | Domains you own: you point them at the server’s address with whoever runs their DNS. See kubespin: Setting up custom DNS. |
Check, on the DNS provider’s card, asks the provider whether kubespin can still change the zone, and says Working or why not. A key that has expired or lost its rights shows up here before a new name fails.
These are set for the whole of kubespin by whoever runs it, so they’re the same for every account.
DNS servers
Your Pi-hole, or another DNS server you run, and the servers that use it. See kubespin: One DNS for all your devices.
A server’s own name
With a DNS provider set, a server can get a name of its own, <server>.<zone>:
- Open the server and choose Manage.
- Under Name, choose Set up name. Once it has one, Publish again puts the record back.
A server’s Overview shows how it’s reached, with its mesh address and the DNS server it uses, each linking here.
Command line
The kubespin command has no DNS commands yet. Use kubespin api, or a script with an API token:
kubespin api GET /network/dns/names
API
curl -s -X POST https://kubespin.io/api/v1/network/dns/names/check \
-H "Authorization: Bearer $KUBESPIN_TOKEN"
It returns results: for each public name, the addresses it resolves to, and right, true when it points where it should.
GET /api/v1/network/dns/nameslists the names (name,for,expect,via) and the zones.GET /api/v1/network/dns/providerslists the providers.POST /api/v1/network/dns/providers/checkchecks the DNS provider, at most once a minute, and returnsok,errorandat.POST /api/v1/servers/{id}/dnssets up the server’s own name.
[!permissions] Permissions Area: Servers, for the DNS page; Domains and names, for a server’s own name.
Step Needs Default roles See names and providers View (Servers) Admin, Developer, Operator, Viewer Look the names up, check the provider Manage (Servers) Admin Set up a server’s name Manage (Domains and names) Admin API token: Read only to look; Read and change for the rest.