Skip to content

feat: add uc dns set - #365

Open
miekg wants to merge 7 commits into
psviderski:mainfrom
miekg:miek/26/mei11ma/setdns
Open

feat: add uc dns set#365
miekg wants to merge 7 commits into
psviderski:mainfrom
miekg:miek/26/mei11ma/setdns

Conversation

@miekg

@miekg miekg commented May 11, 2026

Copy link
Copy Markdown
Contributor

% uc dns set ctrl.u.science.ru.nl
Set cluster domain: ctrl.u.science.ru.nl
Deploy the Caddy reverse proxy service ('uc caddy deploy') to enable internet access to your services via the reserved or your custom domain.

% uc dns show
ctrl.u.science.ru.nl

% uc dns set ctrl.u.science.ru.nl
Error: domain already reserved

% uc dns release
Released cluster domain: ctrl.u.science.ru.nl

See: #37

@miekg

miekg commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

.. and testing with a running caddy:

Error: failed to update DNS records pointing to caddy service: create cluster domain records in Uncloud DNS: rpc error: code = Unknown desc = Post "/domains/ctrl.u.science.ru.nl/records": unsupported protocol scheme ""

@miekg

miekg commented May 13, 2026

Copy link
Copy Markdown
Contributor Author

When having a wildcard dns record pointing to your cluster uc dns set works just like with uncloud dns.

@miekg
miekg force-pushed the miek/26/mei11ma/setdns branch from 3aeaf36 to d05d2a8 Compare June 24, 2026 05:05
miekg added 7 commits June 28, 2026 18:17
This allows manual setting of the cluster's domain name. I use this to
make the local cluster admin aware that this has been done.
(and then manually update the external dns)

```
% uc dns set ctrl.u.science.ru.nl
Set cluster domain: ctrl.u.science.ru.nl
Deploy the Caddy reverse proxy service ('uc caddy deploy') to enable internet access to your services via the reserved or your custom domain.

% uc dns show
ctrl.u.science.ru.nl

% uc dns set ctrl.u.science.ru.nl
Error: domain already reserved

% uc dns release
Released cluster domain: ctrl.u.science.ru.nl
```

See: psviderski#37

Signed-off-by: Miek Gieben <miek@miek.nl>
Signed-off-by: Miek Gieben <miek@miek.nl>
Signed-off-by: Miek Gieben <miek@miek.nl>
Prevents this error, when you know what you're doing:

    Error: failed to update DNS records pointing to caddy service: create cluster domain records in Uncloud DNS: rpc error: code = Unknown desc = Post "/domains/ctrl.u.science.ru.nl/records": unsupported protocol scheme ""

Signed-off-by: Miek Gieben <miek@miek.nl>
Signed-off-by: Miek Gieben <miek@miek.nl>
Signed-off-by: Miek Gieben <miek@miek.nl>
@miekg
miekg force-pushed the miek/26/mei11ma/setdns branch from aa131c5 to 5315a92 Compare June 28, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant