Client area
Back to all guides SpicyHost help ยท DirectAdmin

Add and edit DNS records in DirectAdmin

Point a subdomain somewhere else, set up email with Google or Microsoft, add SPF or verification records, and change or remove records you no longer need.

1

Log in to your control panel

Open the control panel address from your welcome email. It ends in :2222, for example yourdomain.co.uk:2222. Enter your username and password, then click Sign in.

Control panel login page
The login page.
2

Open DNS Management

On the home page, find the Your Account section and click DNS Management. If you have more than one domain, pick the domain first from the list on Home.

DirectAdmin home page with DNS Management highlighted
Click DNS Management under Your Account.
3

Understand the page

The top table lists every record your domain has now. The Add Domain Records section below has one row per record type. Each row has three boxes:

  • Name (left): what the record is for, such as www or home.
  • TTL (middle): how long, in seconds, other servers remember the record. Leave it at 3600.
  • Value (right): where it points, such as an IP address or another host name.
DNS Management page with the existing records table and the Add Domain Records section highlighted
Existing records at the top, the form to add new ones below.
4

Add a record

Find the row for the record type, fill in Name and Value, and click Add on that row. Only that one row is saved.

The example points home.yourdomain.co.uk at the IP address 8.4.66.12, using the A row. The grey box above the form shows the full name the record will have, here home.demo.co.uk., so you can check it before clicking Add.

See Record types below for what to type for each kind of record.

A row filled in with home and 8.4.66.12, with Add highlighted
Type the name and value on the same row, then click that row's Add.
5

Check it's listed

The new record now shows in the table at the top. Changes can take up to an hour to be seen everywhere, because other servers remember the old answer for the TTL time.

Records table showing the new home A record
The home record pointing at 8.4.66.12.
6

Change or remove a record

There's no edit button. To change a record, remove it and add it again with the new value:

  • Tick Select next to the record in the top table.
  • Click Delete Selected.
  • Add the record again with the correct value, as in step 4.

Leave Remove from pointers and Duplicate to pointers ticked. They keep any domain pointers you have in step with your main domain.

Before deleting, note down the old value. Don't delete the NS records or the records named mail, ftp, pop, smtp or www unless you know you're replacing them. Your website and email stop working without them.

Record types

TypeUse it to
APoint a name at an IPv4 address
AAAAPoint a name at an IPv6 address
CNAMEMake a name an alias of another host name
MXSay which server receives your email
TXTSPF, DKIM, DMARC and site verification codes
SRVServices such as Microsoft 365 or VoIP that ask for one
CAALimit which companies can issue SSL certificates

Two rules that catch most people out

A record: point a subdomain at another server

Row A. Name home, value 8.4.66.12. Use this for a home server, a VPS, or a shop hosted elsewhere that gives you an IP address.

CNAME: point a subdomain at another service

Row CNAME. Use this when a service gives you a host name instead of an IP, for example a shop or booking system:

NameValue
shopshops.myshopify.com.

Only use a CNAME on a subdomain, never on the domain itself. If a name already has an A record, delete it first. A name can't have both.

MX: move your email to Google or Microsoft

Your email is handled by SpicyHost by default, through the 10 mail.yourdomain.co.uk. MX record. To use Google Workspace or Microsoft 365 instead:

  • Delete the existing MX record.
  • Add the MX records your email provider gives you, on the MX row. Pick the priority number from the drop-down and put the host name, with its dot on the end, in the box next to it. Leave Name as yourdomain.co.uk.
  • Go to Home > MX Records under E-Mail Management and untick Use this server to handle my e-mails. Otherwise email sent from your own website stays on our server and never reaches your new mailbox.

For Google Workspace, the single MX record is:

NamePriorityValue
yourdomain.co.uk.1smtp.google.com.

Always copy the exact values from your provider's setup page, as they sometimes change.

TXT: verify your domain

Google, Microsoft, Facebook and others ask you to add a TXT record to prove you own the domain. On the TXT row, set Name to yourdomain.co.uk. and paste the code they give you into Value, for example google-site-verification=abc123. Paste it without quote marks. You can have as many verification TXT records as you need.

SPF: allow another service to send email as you

Your domain already has an SPF record, the TXT record starting v=spf1. It lists which servers may send email for your domain. If you send email through another service, such as Google Workspace, Microsoft 365, Mailchimp or a website plugin, add that service to this record.

Your domain must only ever have one SPF record. Don't add a second v=spf1 TXT record. Two SPF records break it, and your email may go to spam. Change the existing one instead.

To change it, note down the current SPF value, delete it, and add a new TXT record with the service's include: added just before the end:

Before:  v=spf1 a mx ip4:51.91.126.212 ~all
After:   v=spf1 a mx ip4:51.91.126.212 include:_spf.google.com ~all

Keep the existing parts and keep ~all at the very end. Common includes:

ServiceAdd
Google Workspaceinclude:_spf.google.com
Microsoft 365include:spf.protection.outlook.com
Mailchimpinclude:servers.mcsv.net

If you've moved all your email away from SpicyHost, you can use just the provider's version, such as v=spf1 include:_spf.google.com ~all.

DKIM and DMARC

Email services often give you a DKIM record to add. It's a TXT record with a name like google._domainkey. Add it on the TXT row with that name and paste the long value.

A DMARC record is a TXT record named _dmarc. A safe starting value is v=DMARC1; p=none; rua=mailto:you@yourdomain.co.uk, which reports problems to you without blocking anything.

Using Cloudflare?

If your domain's nameservers point to Cloudflare instead of ns1.spicyhost.co.uk and ns2.spicyhost.co.uk, the records here aren't used. Make your changes in your Cloudflare dashboard instead.