Skip to content

chore: add generic DNS record for checking if Coder Connect is running #17298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 11, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore: add generic DNS record for checking if Coder Connect is running
  • Loading branch information
ethanndickson committed Apr 11, 2025
commit 75395e1215b39c70efea6f649d516acd7224d882
6 changes: 6 additions & 0 deletions tailnet/controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"golang.org/x/xerrors"
"storj.io/drpc"
"storj.io/drpc/drpcerr"
"tailscale.com/net/tsaddr"
"tailscale.com/tailcfg"
"tailscale.com/util/dnsname"

Expand Down Expand Up @@ -1265,6 +1266,11 @@ func (t *tunnelUpdater) updateDNSNamesLocked() map[dnsname.FQDN][]netip.Addr {
}
}
}
fqdn, err := dnsname.ToFQDN("is.coder.connect.enabled.right.now--.coder.")
if err != nil {
panic(fmt.Sprintf("failed to create static FQDN: %v", err))
}
names[fqdn] = []netip.Addr{tsaddr.CoderServiceIPv6()}
return names
}

Expand Down