Domain names and DNS: register, renew and point a domain
A domain name is the address people type to reach your website and the part after the @ in your email. Whoever controls the domain controls both. Losing it, through an expired renewal, a former web designer's account or a hijacked login, can take your website and email down at once. Looking after it takes very little time once it is set up properly.
Who is who
- Registry: the organization that runs an extension, such as .com, .org or a country code like .au or .ca, and keeps its master list of names.
- Registrar: the company you register and renew through. For generic extensions such as .com, registrars are accredited by ICANN, the body that coordinates domain names worldwide. Country-code extensions are run under their own national rules.
- Registrant: the legal holder of the domain. This should be your business, not an employee or an agency.
- DNS host: the service whose nameservers answer questions about your domain ("where is the website?", "where should email go?"). Often the registrar, but it can be your web host or a separate DNS provider.
Choosing and registering
- Pick a name that is short, easy to spell when heard aloud, and clearly yours. Consider registering common misspellings or other extensions only if confusion would cause real harm.
- Generic extensions are open to anyone. Many country-code extensions have eligibility rules; for example, .au direct names require an Australian presence. Check the rules for the extension you want before you build your brand on it.
- Register it in the business's legal name, with accurate contact details. Registrars may verify them, and wrong details can lead to suspension.
- Use a contact email address that will outlive any one person, such as a shared admin address, and that is not itself on the domain (if the domain lapses, email to that domain stops too).
- Use your own registrar account. If a web designer or IT provider manages it, ask for the domain to be in an account your business owns, with them added as a user if needed.
Keep it secure and renewed
- Turn on MFA for the registrar account, preferably a security key, passkey or authenticator app rather than SMS. Give access to at least two trusted people.
- Turn on the registrar lock (also called transfer lock). It blocks the domain from being moved to another registrar until you unlock it.
- Turn on auto-renew and keep a valid payment method on file. Renewing for several years at a time reduces the chances of a lapse.
- Read renewal reminders. For generic domains, ICANN rules require registrars to send them before expiry. Before dismissing one as spam, check the renewal date in your registrar account, reached by typing its address yourself rather than clicking a link in the email: fake renewal notices are a common phishing lure.
- Know what happens after expiry. The website and email can stop working at or soon after expiry. There is usually a grace period to renew, and for many generic domains a 30-day redemption period after that, at extra cost. After that the name can be released for anyone to register. Periods and fees vary by extension and registrar, so check yours.
DNS records you will meet
DNS works like a phone book for the domain. Each record has a name, a type, a value and a TTL (time to live, in seconds), which tells other systems how long they may cache the answer. A TTL of 3600 means one hour.
| Type | What it does | Example value |
|---|---|---|
| A | Points a name at an IPv4 address | 192.0.2.10 |
| AAAA | Points a name at an IPv6 address | 2001:db8::10 |
| CNAME | Makes one name an alias of another name | www to example.com |
| MX | Says which mail servers receive email for the domain, with a priority number (lower is tried first) | 10 mail.example.net |
| TXT | Free text, used for email authentication (SPF, DKIM, DMARC) and proving ownership to services | v=spf1 ... -all |
| NS | Names the nameservers that answer for the domain | ns1.example.net |
| CAA | Lists which certificate authorities may issue HTTPS certificates for the domain | 0 issue "ca.example" |
The example addresses are reserved for documentation; use the values your own host gives you. One rule catches people out: a CNAME cannot sit on the bare domain (example.com itself), because a name with a CNAME may not hold other records. Many DNS hosts offer an alias or "flattening" record type for that job.
Email authentication
Three TXT-based records help receiving servers trust your email and reject forgeries of your domain:
- SPF lists the servers allowed to send mail as your domain. Have only one SPF record; combine services into it.
- DKIM publishes a key that lets receivers check a signature added by your email service.
- DMARC tells receivers what to do when a message fails those checks, and where to send reports. A common path is to start in monitoring mode (
p=none), read the reports, then move toquarantineorrejectonce all your legitimate senders pass.
Your email provider supplies the exact values. Forged sender addresses are a staple of phishing, covered in our guide on how to spot phishing.
Changing DNS safely
A DNS change applies to everyone using your domain, so a mistake can stop email or take the site down. Before any change:
- Back up the current records. Export the zone file if your DNS host allows it, or take screenshots of every record, so you can put them back exactly.
- Change one thing at a time and write down what you changed and when.
- Lower the TTL in advance on records you plan to change, at least as long ahead as the current TTL, so a correction also spreads quickly.
- Be very careful with NS records and nameserver changes. Moving to new nameservers replaces every record at once; copy all existing records to the new DNS host first. If DNSSEC is in use, ask both the registrar and the DNS hosts for their exact steps before moving, because a mismatch can make the domain unreachable.
Check your records with read-only commands
These only look things up; they change nothing. They work in Windows Command Prompt and in a Mac or Linux terminal:
nslookup example.com
nslookup -type=mx example.com
nslookup -type=txt example.comCompare the answers with what your DNS host shows. If a change has not appeared yet, wait for the old TTL to run out before assuming it failed. For how DNS fits with IP addresses and routers, see our networking basics guide.
Moving web host without touching email
If the domain sits in your own registrar account, moving the website usually means changing just the A, AAAA or www CNAME records to the new host's values, while the MX and email TXT records stay as they are. That separation is one reason to keep the domain out of your web host's hands; see how to choose web hosting.
Housekeeping once a year
- Confirm the registrant details, renewal date, auto-renew and lock.
- Check who has access to the registrar and DNS accounts, and remove people who have left.
- Review the records. Records pointing at services you no longer use can, in some cases, let someone else take over that subdomain. Note them down, confirm nothing depends on them, then remove them.