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

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Apr 9, 2025

Closes coder/internal#466

$ dig -6 @fd60:627a:a42b::53 is.coder--connect--enabled--right--now.coder AAAA

; <<>> DiG 9.10.6 <<>> -6 @fd60:627a:a42b::53 is.coder--connect--enabled--right--now.coder AAAA
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62390
;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;is.coder--connect--enabled--right--now.coder. IN AAAA

;; ANSWER SECTION:
is.coder--connect--enabled--right--now.coder. 2	IN AAAA	fd60:627a:a42b::53

;; Query time: 3 msec
;; SERVER: fd60:627a:a42b::53#53(fd60:627a:a42b::53)
;; WHEN: Wed Apr 09 16:59:18 AEST 2025
;; MSG SIZE  rcvd: 134

Hostname considerations:

  • Workspace names, usernames, and agent names can't have double hyphens, so this name can't conflict with a real Coder Connect hostname.
  • Components can't start or end with hyphens according to RFC 952
  • DNS records can't have hyphens in the 3rd and 4th positions, as to not conflict with IDNs https://datatracker.ietf.org/doc/html/rfc5891

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ethanndickson ethanndickson marked this pull request as ready for review April 9, 2025 05:46
@ethanndickson ethanndickson force-pushed the ethan/generic-connect-dns-record branch from 0db912a to 7d9114f Compare April 11, 2025 02:04
@ethanndickson ethanndickson force-pushed the ethan/generic-connect-dns-record branch from 7d9114f to be2f543 Compare April 11, 2025 03:49
@ethanndickson ethanndickson merged commit 3c1cb5d into main Apr 11, 2025
35 checks passed
Copy link
Member Author

Merge activity

  • Apr 10, 11:59 PM EDT: A user merged this pull request with Graphite.

@ethanndickson ethanndickson deleted the ethan/generic-connect-dns-record branch April 11, 2025 03:59
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add DNS configuration to vpn to allow it to be used to tell if Coder Connect is running.
3 participants