DNS record management
DNS hosting required
We're currently testing a new DNS hosting feature with select users. Only organizations using it can perform the actions described on this page.
DNS records connect your .gov domain to websites, email, and other online services.
If your domain uses our DNS hosting service, you can manage DNS records directly from the .gov registrar.
- Add DNS records
- Edit existing records
- Delete a record
- Add a TXT record for domain verification
- Add a CNAME record to your web host
- Create subdomain
- Set up email on your .gov domain
Add DNS records
- Sign in to the .gov registrar using your Login.gov account.
- Click the “Manage” link for your .gov domain.
- Click “DNS” on the left-side navigation.
- Click “DNS records.”
- Click the “Add record” button.
- Select the type of record you want to create.
- Enter the required values.
- Click “Save.”
Edit existing records
- Sign in to the .gov registrar using your Login.gov account.
- Click the “Manage” link for your .gov domain.
- Click “DNS” on the left-side navigation.
- Click “DNS records.”
- Click the “Edit” link next to the record you want to update.
- Edit the record fields.
- Click “Save.”
DNS changes may take time to appear across the internet.
Delete a record
- Sign in to the .gov registrar using your Login.gov account.
- Click the “Manage” link for your .gov domain.
- Click “DNS” on the left-side navigation.
- Click “DNS records.”
- Click the three dots next to the record you want to update.
- Click “Delete.”
Add a TXT record for domain verification
TXT records are commonly used to verify that you manage a domain. Some services, such as email providers or website platforms, will give you a unique verification value to add as a TXT record before you can finish setup or use certain features.
To add a TXT record for domain verification:
- Sign in to the .gov registrar using your Login.gov account.
- Click the “Manage” link for your .gov domain.
- Click “DNS” on the left-side navigation.
- Click “DNS records.”
- Click the “Add record” button.
- Under “Type,” choose “TXT.”
- Enter the required values.
- Click “Save.”
- If required, contact your service provider to complete the verification process (though some may check automatically).
When entering TXT record content:
- Enter the value exactly as provided (don’t add quotation marks at the beginning or end).
- Don’t add extra spaces.
- If the value is long, enter it as a single value unless your service provider specifically tells you otherwise.
Your domain’s verification will not succeed until the DNS change has been saved.
Add a CNAME record to your web host
A CNAME record can be used to connect a domain or subdomain to a web hosting service. It’s the record that allows your users to see your approved .gov domain name, masking the hostname where your web host actually operates.
To add a CNAME record:
- Sign in to the .gov registrar using your Login.gov account.
- Click the “Manage” link for your .gov domain.
- Click “DNS” on the left-side navigation.
- Click “DNS records.”
- Click the “Add record” button.
- Under “Type,” choose “CNAME.”
- Enter the host name provided by your web hosting provider.
- Enter the destination value provided by your web hosting provider.
- Click “Save.”
Create subdomain
A subdomain creates a separate address under your domain, such as blog.example.gov or help.example.gov. You can use subdomains for websites, applications, support portals, and other online tools. The website or application you’re connecting to will typically tell you which type of DNS record to create and what values to enter.
To create a subdomain:
- Sign in to the .gov registrar using your Login.gov account.
- Click the “Manage” link for your .gov domain.
- Click “DNS” on the left-side navigation.
- Click “DNS records.”
- Click the “Add record” button.
- Select the type of record you want to create.
- Enter the required values in the form fields. (Typically, the website or application you’re connecting will tell you what values to enter.)
- Click “Save.”
Set up email on your .gov domain
To send and receive email using your domain, you’ll need an email service provider.
Most email providers require one or more MX records, and may also require additional records for domain verification and email security. Follow your email provider’s instructions and enter the DNS values exactly as specified.
After adding the records, allow time for DNS changes to propagate before testing email services.