triauth with Amazon Route 53
Manage who can sign in with triauth by adding or deleting DNS records of your domain in the AWS console.
On this page
Introduction
Amazon Route 53 is the DNS service of Amazon Web Services. If your domain is managed with Route 53, you can use the AWS console to manage triauth identities and their trusted devices. All you need is a login to the AWS console that may edit the hosted zone of your domain.
Set up your domain for triauth
1. Open your hosted zone
Open Route 53 in the AWS console, click Hosted zones, and then your domain. Look for a record with TXT type whose name is the domain itself, such as example.com. Email setups often add one. If there is none, continue with step 2. If there is one, skip to step 3.
2. Create the record
Click Create record and fill in the form.
| Field | What to enter |
|---|---|
| Record name | Leave it empty. An empty name means the domain itself. |
| Record type | TXT |
| Value | triauth auth.triauth.org |
| TTL (seconds) | 86400, one day. This record rarely changes. |
Leave the rest as it is and click Create records. If you self-host the authenticator, its address goes in place of auth.triauth.org.

3. If a TXT record exists already, add the value to it
Creating a second TXT record with the same name fails, so add the value to the record that is there. Tick the box in front of the record and click Edit record in the panel on the right. In Value, add a new line below the existing one and type "triauth auth.triauth.org", with the quotes, like the line above it. Click Save.

Checkpoint
A blue banner says that the record was created or updated. Your domain's TXT record contains "triauth auth.triauth.org". Route 53 answers with the new record within a minute. From now on, the Get started setup accepts identifiers at your domain, such as john@example.com.

Add a person
1. Get the zone file
Ask the person to send you their zone file. At the last step of their device setup, they choose Someone else and click Download zone file, or Share zone file on a phone.
2. Import it
Open your hosted zone in Route 53 and click the Import zone file button. Open the zone file received from the new person in a text editor, copy everything, and paste it into the Zone file box. Click Import.

3. Keep a list of identifiers and their identity domains
Since Route 53 does not have a place to store the identifier associated with the created record, you should keep an external list with that information. It can be a simple text file or spreadsheet with one column for the identity domain (e.g., _72I2EC3OL2._at.example.com), and another one for the associated identifier (e.g., john@example.com). You will find it handy when you later need to edit or remove records for that person. Keeping lookup codes (e.g., AY8A-BAEA-39C0-ZBK4) on that list also helps when that person forgets theirs and wants to set up another device.
Checkpoint
A banner says that the records were created. The list has a new TXT record named after the person's identity domain, with one line per identity record. Route 53 shows the name in lowercase, which changes nothing, as DNS does not distinguish case. Let the person know that the records are in place, and they can sign in. If their setup is still open, they click Verify now and then Finish setup.

To type the records instead
Click Create record. In Record name, type the identity domain as the setup shows it, such as _72I2EC3OL2._at. Route 53 adds the domain after it. Choose TXT. In Value, paste each identity record the setup lists on its own line, without quotes. Leave the TTL as it is and click Create records.
Add or remove a device
Add a device
When a person sets up a second device, the setup shows new key records for the same identity domain. Tick the box in front of the record with the person's identity records, click Edit record, and add each new key record at the end of Value as a line of its own, in quotes. Click Save. Make sure you are editing the correct record (e.g., by cross-referencing the identifier and identity domain with the list you keep), so that alice@example.com doesn't trick you into adding her keys to the identity of bob@example.com. Do not import the zone file of a second device. Route 53 refuses a file whose record exists already.

Remove a device
Tick the record with the person's identity records, click Edit record, and delete every key record with that device's name. Keep the other identity records, such as the commit record. Click Save. Once the TTL of the record has passed, the device cannot sign in anywhere. Do this when a device is lost or stolen, or when the person stops using it.
Remove a person
When someone leaves, find and delete their identity records, which are typically grouped into one TXT entry in the Route 53 console. Since identity domains usually do not carry the person's identifier, you will likely need to refer to the list you keep to find the correct identity domain to remove. Tick the box in front of it, click Delete record, and confirm. Once the TTL has passed, none of their devices can sign in at any website that supports triauth. Websites that re-check their sessions end them at the next check.
The warning in the dialog is Route 53's standard text for any record. Deleting a person's identity records does not touch your website or your email.

Enable DNSSEC
A DNS answer normally has no cryptographic proof of where it came from, so a website that reads your records has to trust whatever reaches it. DNSSEC adds a signature to every answer from your domain. Anyone who reads your records can then check that they came from your zone and that nobody changed them on the way. Websites that support triauth see the signature, and some require it.
Route 53 does the signing for you. Your part is to let it create a key, and then to have a fingerprint of that key published one level up, in the zone of your domain's ending, such as .com. That fingerprint is what lets the rest of the internet check your signatures. It takes three steps, with a wait in between, and the order matters. A fingerprint that does not match your key makes every server that checks signatures refuse your domain until you fix it.
1. Turn on signing
In your hosted zone, open the DNSSEC signing tab and click Enable DNSSEC signing. The key-signing key is the key your domain is known by. It is stored in AWS Key Management Service, the AWS service that keeps keys, and the form creates both for you. Under Key-signing key (KSK) creation, choose Create new KSK and give the key a unique name, with letters, digits, and underscores only. Under Customer managed CMK, type an alias, a name of your choice for the stored key. AWS charges for the stored key separately from Route 53, see AWS KMS pricing. Click Enable DNSSEC signing. The tab then offers Disable DNSSEC signing in place of the enable button.
2. Wait
Resolvers are the servers that look names up for everyone's computers, and they keep each answer for its TTL. Every copy of your records they have today is unsigned. Once the fingerprint is published, a resolver that still has such a copy cannot check it and may refuse your domain. So wait for the longest TTL in your zone to pass before step 3. For a hosted zone that Route 53 created, that is two days, the TTL of its NS record.
3. Tell the registrar about the key
The registrar is the company you bought the domain name from, and only it can have the fingerprint published in the zone of your domain's ending. Your hosted zone can be at Route 53 while the registrar is another company, or both can be Route 53.
Back on the DNSSEC signing tab, click View information to create DS record. The DS record is the fingerprint. Under Establish a chain of trust, choose where your domain is registered.
If it is registered with Route 53, you hand over the public key, and Route 53 computes the fingerprint itself. Note the Key type, Signing algorithm, and Public key. Then open Registered domains, choose your domain, and on the DNSSEC keys tab click Add key. Choose the same key type and algorithm, paste the public key, and click Add. Route 53 emails the registrant contact of the domain once the key is added, or to say why it was not.
If it is registered elsewhere, copy the DS record values into the DNSSEC settings at your registrar. Every registrar's panel differs. Look for "DNSSEC" or "DS record".
Checkpoint
An online DNSSEC checker, such as DNSViz, shows your domain as secure, with an unbroken chain from the root down to it. Some registrars publish the fingerprint only once a day, so the checker may need a day to agree. Resolvers start checking your signatures once the TTL of your NS record has passed, up to two days later.
To turn DNSSEC off one day, remove the key or the DS record at the registrar first, wait up to three days, and only then click Disable DNSSEC signing. In the other order, the fingerprint still promises signatures that no longer come, and resolvers that check them refuse your whole domain until the fingerprint is gone.
Troubleshooting
Route 53 says the record already exists
A TXT record with that name is there already, and Route 53 keeps all values of one name in a single record. Tick the existing record, click Edit record, and add the new value as a line, as in step 3 of Set up your domain for triauth or under Add a device.
The import fails and no records are created
The zone file contains a record that exists already, usually because the person has set up a device before. Add the new identity records to the existing record instead, as under Add a device.
The setup says the domain is not configured, or that the records are not visible yet
Route 53 answers with a new record within a minute, but the rest of the internet may keep the old answer for as long as the TTL. Wait a few minutes and try again. If the message stays, see Troubleshooting.
The DNSSEC signing tab shows Action needed
Route 53 lost access to the key in AWS Key Management Service, usually because the key was disabled, deleted, or its permissions changed. Unless you fix it soon, resolvers that check signatures refuse your domain. Make sure the key exists and is enabled, then activate the key-signing key again on the DNSSEC signing tab.
Next steps
- Read Get started for the setup on the person's side, from the first record to the first sign-in.
- Read Roll out to your team for identifiers, modes, and groups across a whole organization.
- Read Devices and keys for what a device is, and what to do when one is lost.
- Read Public and private mode for what each mode shows in DNS and what the lookup code is for.
- Read the Route 53 documentation for everything else about records at Route 53.
All logos and trademarks belong to their respective owners and do not imply affiliation or endorsement of the organization or product by triauth, nor vice versa. The content provided on this page may include information from third-party sources. We do not assume any responsibility for the completeness, correctness, or applicability of the information. You should independently verify any details before relying on them.