For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /directadmin/domains_dns/how_to_manage_dns_records_in_directadmin.md.

How to Manage DNS Records in DirectAdmin

Managing DNS records through DirectAdmin helps ensure your domain resolves to the correct destinations and that services such as websites and email work properly.

Open DNS Management

Log in to DirectAdmin

Log in to your DirectAdmin control panel.

Open DNS Management

Navigate to Account Manager → DNS Management.

DNS Management in DirectAdmin

Add an A Record

An A record points your domain or subdomain to an IPv4 address.

Open Add Record

In DNS Management, click Add Record.

Add Record option in DirectAdmin

Select A Record

Select A Record from the dropdown.

Enter the domain or subdomain name, such as example.com or sub.example.com, and provide the IP address where it should point.

Configure A record in DirectAdmin

Save the Record

Click Add to save the record.

Add a Nameserver Record

An NS record specifies the nameservers responsible for a domain's DNS records.

Open Add Record

In DNS Management, click Add Record.

Add Record option in DirectAdmin

Select NS Record

Select NS Record from the dropdown.

Select NS Record in DirectAdmin

Enter Nameserver Details

Add the required nameserver records, such as:

  • ns1.example.com
  • ns2.example.com

Add nameserver records in DirectAdmin

Save the Records

Save the changes after adding the nameserver records.

Add an SPF Record

An SPF (Sender Policy Framework) record helps prevent unauthorized mail servers from sending emails on behalf of your domain.

Open Add Record

In DNS Management, click Add Record.

Add Record option in DirectAdmin

Select TXT Record

Choose TXT Record as the record type.

Select TXT Record in DirectAdmin

Select SPF Record Type

Choose SPF under TXT Record Type.

Add the IP Address

Enter the IP address that is authorized to send email for your domain.

Configure SPF record in DirectAdmin

Save the Record

Save the SPF record.

Add an MX Record

An MX (Mail Exchange) record directs incoming email for your domain to the appropriate mail server.

Open Add Record

In DNS Management, click Add Record.

Add Record option in DirectAdmin

Select MX Record

Choose MX Record as the record type.

Select MX Record in DirectAdmin

Enter Mail Server Details

Enter the mail server hostname, such as mail.example.com, and assign a Priority value. Lower numbers indicate higher priority.

Configure MX record in DirectAdmin

Save the Record

Click Add to save the record.

Confirm DNS Changes

Once all required records have been added, click Save to confirm the changes.