If you're reading this blog, you probably work in government, most likely for a county or city, and maybe as a one-person IT shop. This week's post isn't a story about something that happened to me and my team. It's information I hope saves you some time. If your organization's domain doesn't end in .gov, read on.
It used to be a pain. Now it's free.
Getting a .gov domain used to be expensive. They cost $125 a year before 2017, and more than $400 a year from 2017 to 2021, compared with a few dollars for a .com or .org.
That changed in April 2021, when .gov became free for eligible organizations. Cities, counties, towns, tribal governments and many special districts all qualify. If cost was the reason you never moved, that reason is gone.
Why it matters
The biggest benefit, to me, is trust. Anyone can register cityofanywhere.com or anywhere-city.org. Only a verified U.S. government organization can get a .gov, under eligibility rules enforced by CISA. When a resident gets an email about a water bill or a website asking for payment, ".gov" is a signal they can actually rely on, and one a scammer can't fake.
There are requirements for what you can do with a .gov domain, such as no commercial advertising and no political campaigning. A local government should have no trouble staying inside them.
Choosing a name
Your domain has to clearly relate to your organization's name, location or services. Some well-known examples: NYC.gov for New York City, Fresno.gov for Fresno, California, and Mo.gov for the state of Missouri.
Most cities and counties don't get a bare name, though. Under the naming rules, a city or county domain generally needs the state name or its two-letter abbreviation, unless the name isn't shared by any other place in the U.S., the city is famous enough not to need it, or it's one of the 150 largest cities. So most of us end up with something like CityNameST.gov. The same page has plenty of examples of names that are likely and unlikely to be approved, plus a search to check whether your choice is available.
If you already have a domain that fits these rules, match it. CityState.org becomes CityState.gov. Residents already know the name, and only the ending changes.
Keep your old domains, and grab the others
Don't give up your current domain after the move. Keep it, and register the other common endings too: .com, .org, .net, and possibly .us. Point them all at your .gov with redirects.
This isn't just tidiness. If you let one lapse, or never register it, someone can grab it and put up a site about how upset they are with the city, or something worse, and it will show up in your search results. A few dollars a year per domain is cheap insurance.
Domains that don't send email should say so in DNS, so nobody can send mail that appears to come from them:
; For a domain that never sends or receives email
@ MX 0 .
@ TXT "v=spf1 -all"
_dmarc TXT "v=DMARC1; p=reject;"
The .gov security page recommends a DMARC record even for domains that don't send email.
What you need to request one
For a city or county, the request takes three things:
- A Login.gov account. If it's your first request, you'll verify your identity, which requires a state-issued ID, your Social Security number and a phone number.
- Approval from your senior official. For a city that's typically the mayor or city manager. Check get.gov for who counts for your type of organization, and line up their approval before you submit.
- Your chosen domain name, checked against the naming rules.
DNS hosting is on you, for now
As of this writing, .gov domains don't include DNS hosting. The registrar's site says it's testing a DNS hosting feature with select users, but for most of us you'll need to host the zone somewhere and enter its name servers in the .gov registrar.
If your DNS is hosted by the registrar you bought your .com or .org from, don't assume it can host the new domain. Many registrars only host DNS for domains they also register, and .gov is registered only through get.gov. Free and paid DNS hosting are both widely available; pick one that fits your budget and requirements. We're a Microsoft shop with Microsoft 365, so we host ours in Azure DNS. It's billed per zone and per query, and for a city our size the monthly cost is negligible.
Plan for HTTPS everywhere
This one surprises people. Every new .gov domain is automatically added to the HSTS preload list. Browsers will only connect to sites on that domain, and every subdomain under it, over HTTPS. There's no clicking through a warning, and no plain HTTP fallback.
Before you put anything on the new domain, make sure it has a valid certificate:
- Your main website and any sites for individual departments
- Hosted systems residents use, like payment portals, permits and agenda software. Check with each vendor that they can serve your new name over HTTPS.
- Internal systems. If you plan to use names like
intranet.citynamest.govinside your network, they need trusted certificates too, or browsers will refuse to load them.
Moving over
Once your domain is approved, the real work begins: moving your public-facing services to the new name.
Start communicating early. Announce the change as soon as the domain is approved. Put it in social media posts, newsletters and utility bill inserts. Nobody who deals with your organization should be surprised by it.
Set up email carefully. Add the domain to your email system and publish the security records (SPF, DKIM and DMARC) before you send from it, so new messages don't land in junk folders or get blocked. The .gov security page has tips. Then:
- Make the .gov address everyone's primary address, so replies come back to the new domain.
- Keep the old domain as an alias, so mail sent to old addresses still arrives.
- Find everything else that sends mail as your domain, like the utility billing system, the website's contact forms, copiers and alerting systems, and move them over too.
If you're on Microsoft 365, changing everyone's email address doesn't have to change how they sign in. Make that change separately and deliberately, after checking what depends on the old sign-in names, such as single sign-on apps and mobile devices.
Use the move to clean up the website. Update graphics, letterhead and PDFs that have the old address built in. Remove stale documents nobody uses. That's something you should do at least once a year anyway, but that's another post.
Redirect, don't break. Point the old website at the new one with permanent (301) redirects that keep the rest of the address, so oldname.org/parks goes to newname.gov/parks. Bookmarks, printed materials and search results will keep working while search engines catch up.
Checklist
- Confirm eligibility and choose a name that meets the naming rules
- Create a Login.gov account and get your senior official's approval
- Line up DNS hosting before the domain is approved
- Get certificates for every site and subdomain on the new domain, internal ones included
- Publish SPF, DKIM and DMARC for the new domain before sending from it
- Make .gov addresses primary, and keep the old domain as an alias
- Update every system that sends email as your organization
- Set up 301 redirects from the old domain, keeping paths
- Keep the old domain, and register .com, .org and .net variants
- Lock down domains that don't send email (null MX, SPF -all, DMARC reject)
- Tell residents early, and keep telling them