If your domain uses the DirectAdmin server's nameservers, all DNS records for website, email and verification are managed in DNS Management. This guide shows how to add and change records safely and how to connect external services like Google Workspace.
Before you start
- Check that the domain's nameservers point to your hosting provider's DNS. Use the WHOIS checker. If DNS is at Cloudflare or your registrar, edit records there instead.
- Your package must include DNS control.
Open DNS Management
- Log in to DirectAdmin.
- Go to Account Manager → DNS Management.
- Select the domain if you have several.
The table lists every record with its name, TTL, type and value. Names ending without a dot are relative to the domain, so www means www.example.com; names ending with a dot are absolute.
Add a record
- Click Add Record.
- Choose the type:
A,AAAA,CNAME,MX,TXT,SRV,CAAorNS. - Enter the Name (leave empty or use the domain with a dot for the root), the Value and, optionally, the TTL.
- Click Add.
| Goal | Type | Name | Value |
|---|---|---|---|
| Subdomain to another server | A | app | 203.0.113.20 |
| Alias to a hosted service | CNAME | shop | shops.myshopify.com. |
| Domain verification | TXT | root | google-site-verification=... |
| SPF | TXT | root | v=spf1 a mx ip4:203.0.113.10 ~all |
Edit or delete records
Click Edit next to a record to change it, or tick records and click Delete. Do not remove the NS records or the root A record unless you are moving DNS elsewhere. Reset Defaults rebuilds the zone from the server template and removes custom records.
Use Google Workspace or Microsoft 365 for email
- Delete the existing
MXrecord pointing tomail.example.com. - Add the provider's MX records with their priorities.
- Replace the SPF TXT record with the provider's include, for example
v=spf1 include:_spf.google.com ~all. - Go to E-Mail Manager → MX Records and untick Local Mail Server so DirectAdmin does not keep mail for the domain locally.
Lower TTL before changes
If you plan to move a site, lower the TTL of the main records to 300 seconds a day earlier. Resolvers then pick up the change within minutes instead of hours.
Troubleshooting
- Changes not visible: query the server directly with
dig @server-ip example.com. If it shows the new value, wait for caches to expire. - CNAME at the root: not allowed by DNS standards. Use an A record for the root.
- Mail not arriving after switching MX: the Local Mail Server option is still ticked, so messages from the same server are delivered locally.
- DKIM record missing: enable DKIM in E-Mail Manager → DKIM Keys (if your host allows it) and it is added automatically.
