Docs Home Return to Homepage
Get Started Login

How to Add or Edit DNS Records in DirectAdmin

Last updated Changelog

On this page

DNS records tell the internet where to find your website, where to deliver your email, and prove you own your domain to services like Google or Microsoft. In DirectAdmin you manage them in DNS Management. In this example we’ll add an A record so staging.yourdomain.com points at your hosting server.

Note: These records only affect your domain if it uses the nameservers listed as NS records in this zone. If your domain’s DNS is managed somewhere else, such as at your registrar or Cloudflare, make the change there instead.

Steps

  1. Log in to DirectAdmin. In the Account Manager section, click DNS Management. If you have more than one domain, pick the right one from the domain menu at the top right.

    The DirectAdmin dashboard with DNS Management highlighted under Account Manager

  2. You’ll see every record for the domain. Click Add Record.

    The DNS Management page listing the domain’s records, with Add Record highlighted

  3. Fill in the record:

    • Record Type: choose the type (see the table below). We’re adding an A record.
    • Name: the subdomain, such as staging. Your domain is added on the end for you.
    • TTL: how long, in seconds, other servers may cache it. The default is fine.
    • Value: what the record points to. For an A record, that’s an IPv4 address.

    Then click Add.

    The Add Record box with type A, the name staging and the value 162.244.93.3 highlighted, plus the Add button

  4. DirectAdmin shows Record Added and the record appears in the list. To change one later, click the pencil icon next to it. To delete records, tick them and click Delete.

    The DNS records list with the new staging A record highlighted

Changes usually work within minutes. Other networks may keep using the old answer until its TTL runs out.

Common record types

Type Use it for The value is
A Pointing a name at a server An IPv4 address
AAAA The same, for IPv6 An IPv6 address
CNAME Making a name an alias of another name A hostname, such as shops.myshopify.com.
MX Telling the world where to deliver your email A priority and a mail server
TXT Verifying your domain, and email security (SPF, DKIM, DMARC) Text supplied by the service
CAA Limiting which companies can issue SSL certificates for you An issuer, such as letsencrypt.org
SRV Services like VoIP or Microsoft Teams Priority, weight, port and target, supplied by the service

Warning: Your MX records send email through NameCrane’s spam filtering. Don’t edit them here by hand. To change where your email goes, use the MX Template on the MX Records page instead. See Route your email through MXFilter.

Troubleshooting

Problem What to do
My change isn’t showing up Wait for the old TTL to run out. You can check what the world sees with an online DNS lookup tool.
A hostname value doesn’t work DirectAdmin treats names without a trailing dot as part of your domain. End full hostnames with a dot, such as example.com..
A service can’t find my TXT record Check the Name is exactly what they asked for. Some want just your domain, others a prefix such as _dmarc.
I deleted something by mistake Add it again with the same values. If you’re unsure what it was, contact support.

Snagged on something? Contact support and we’ll get you sorted.

Snagged on something?

Our sysadmins answer tickets around the clock.