Skip to content

Commit e7d1d20

Browse files
committed
chore: add generic DNS record for checking if Coder Connect is running
1 parent 0472a88 commit e7d1d20

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tailnet/controllers.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
"golang.org/x/xerrors"
1717
"storj.io/drpc"
1818
"storj.io/drpc/drpcerr"
19+
"tailscale.com/net/tsaddr"
1920
"tailscale.com/tailcfg"
2021
"tailscale.com/util/dnsname"
2122

@@ -1265,6 +1266,11 @@ func (t *tunnelUpdater) updateDNSNamesLocked() map[dnsname.FQDN][]netip.Addr {
12651266
}
12661267
}
12671268
}
1269+
fqdn, err := dnsname.ToFQDN("is.coder.connect.enabled.right.now--.coder.")
1270+
if err != nil {
1271+
panic(fmt.Sprintf("failed to create static FQDN: %v", err))
1272+
}
1273+
names[fqdn] = []netip.Addr{tsaddr.CoderServiceIPv6()}
12681274
return names
12691275
}
12701276

0 commit comments

Comments
 (0)