This repository is used to manage Hack Club's DNS configuration using OctoDNS. Please see its documentation for more information.
We have a website that allows you to add a subdomain to Hack Club's DNS without needing to know how to use GitHub or OctoDNS. You can find it at https://dns.hackclub.com. It can also be faster if you are just making a small change, like adding a subdomain or editing an existing one. If you are making a large change, like adding multiple subdomains or changing the DNS records for an existing subdomain, please use a pull request.
- Create a fork of this repository.
- In your fork open the hackclub.com.yaml file and add the following alphabetically based off the subdomain name:
SUBDOMAIN_NAME: # email@example.com U012AB345CD
- type: CNAME
value: SOURCE_DOMAIN_OR_IP.- Replace
SUBDOMAIN_NAMEwith the name of the subdomain. So if the name washellothen the subdomain would behello.hackclub.com. - Replace
SOURCE_DOMAIN_OR_IPwith the domain or IP address of the website you want the subdomain to go to. If you are using an IP address, changetype: CNAMEtotype: A. Remember to leave that.at the end! - Add your contact information in a comment (see above). Include either an email address, Slack ID, or both.
- Commit your changes and create the PR!
That's it! Someone with contributor access to the repo will then review your PR.
If you're asked to make any changes to your pull request, please amend it by committing to your fork, instead of closing it and creating another.
The CNAME record cannot coexist with other record types, which may require you to change to an ALIAS or A record type if you need additional DNS records on your subdomain. Due to a bug in OctoDNS, removing a CNAME may cause your changes to break. You might encounter this when trying to use both Vercel and email/Google Workspace on the same subdomain.
To fix this, follow these steps, each in a separate PR:
- Make a PR that deletes all records on your subdomain (ex: #1642).
- Make another PR that adds the additional records needed, replacing the
CNAMEwith the other record that you want (oftentimesALIAS) (ex: #1643). - Make it clear to the person reviewing your PRs that the first PR must be merged before the second one.
Subdomains, under domains following the format hackclub.xxx(or other domains referring to hackclub), are only available for official Hack Club projects, not including HCB (fiscally sponsored) projects. Everyone is welcome to use dino.icu!
When adding a site hosted on â–² Vercel, you will need to verify the domain by adding a TXT record.
Add the value to the hackclub.com.yaml file as shown below:
_vercel:
type: TXT
values:
- vc-domain-verify=wackclub.hackclub.com,423c28e0fbdd51449cf1