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
Show file tree
Hide file tree
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
Prev Previous commit
Next Next commit
const
  • Loading branch information
ethanndickson committed Apr 11, 2025
commit 141f0c45c2fceaa02a03679bb0ef5578290406ab
2 changes: 2 additions & 0 deletions tailnet/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ func NewConn(options *Options) (conn *Conn, err error) {
// connect to a specific known workspace.
const IsCoderConnectEnabledFQDNString = "is--coder--connect--enabled--right--now.coder."

var IsCoderConnectEnabledFQDN, _ = dnsname.ToFQDN(IsCoderConnectEnabledFQDNString)

type ServicePrefix [6]byte

var (
Expand Down
6 changes: 1 addition & 5 deletions tailnet/controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -1266,11 +1266,7 @@ func (t *tunnelUpdater) updateDNSNamesLocked() map[dnsname.FQDN][]netip.Addr {
}
}
}
fqdn, err := dnsname.ToFQDN(IsCoderConnectEnabledFQDNString)
if err != nil {
panic(fmt.Sprintf("failed to create static FQDN: %v", err))
}
names[fqdn] = []netip.Addr{tsaddr.CoderServiceIPv6()}
names[IsCoderConnectEnabledFQDN] = []netip.Addr{tsaddr.CoderServiceIPv6()}
return names
}

Expand Down