What is DNS?
DNS (Domain Name System) translates human-readable domain names (yourdomain.co.za) into IP addresses (e.g., 196.22.105.27) that computers use to locate websites and services. DNS records control how your domain functions.
Why manage DNS records?
- Point domain to hosting server (A records)
- Configure email routing (MX records)
- Verify domain ownership (TXT records)
- Set up email authentication (SPF, DKIM, DMARC)
- Create subdomains (CNAME, A records)
- Connect third-party services (Google Workspace, Shopify, etc.)
Prerequisites: Nameservers
Before managing DNS in DirectAdmin, ensure your domain uses 0724 Hosting nameservers:
ns1.practiwebs.co.zans2.practiwebs.co.za
Log in to your domain registrar and update nameservers. DNS changes take 1β24 hours to propagate globally (usually 2β4 hours).
Accessing DNS management
- Log in to DirectAdmin
- Go to Account Manager or Advanced Features
- Click DNS Management or DNS Zone
- Select your domain from the dropdown
- You will see all existing DNS records for the domain
Common DNS record types
| Record Type | Purpose | Example |
|---|---|---|
| A | Points domain to IPv4 address | yourdomain.co.za β 196.22.105.27 |
| AAAA | Points domain to IPv6 address | yourdomain.co.za β 2001:db8::1 |
| CNAME | Alias pointing to another domain | www β yourdomain.co.za |
| MX | Mail server for receiving email | mail.yourdomain.co.za |
| TXT | Text data (SPF, DKIM, verification) | SPF record, DMARC policy |
| NS | Nameserver delegation | ns1.practiwebs.co.za |
| SRV | Service location (e.g., SIP, XMPP) | _service._proto.domain |
Default DNS records
When you add a domain to DirectAdmin, these records are created automatically:
yourdomain.co.za. A 196.22.105.27 www CNAME yourdomain.co.za. yourdomain.co.za. MX 10 mail.yourdomain.co.za. mail A 196.22.105.27 ftp CNAME yourdomain.co.za. yourdomain.co.za. NS ns1.practiwebs.co.za. yourdomain.co.za. NS ns2.practiwebs.co.za.
These records enable basic website and email functionality.
Adding DNS records
Adding an A record
- In DNS Management, click Add Record
- Select A from the dropdown
- Name: Enter subdomain or @ for root (e.g.,
blogfor blog.yourdomain.co.za) - Value: Enter the IP address
- TTL: Leave default (14400) or set to 3600 for faster updates
- Click Add
Adding a CNAME record
- Click Add Record
- Select CNAME
- Name: Subdomain (e.g.,
www) - Value: Target domain (e.g.,
yourdomain.co.zaor external domain) - TTL: Leave default
- Click Add
Note: CNAME records cannot be used for the root domain (@). Use A records for the root.
Adding an MX record
- Click Add Record
- Select MX
- Priority: Lower numbers have higher priority (use 10 for primary mail server)
- Value: Mail server hostname (e.g.,
mail.yourdomain.co.za) - Click Add
For 0724 Hosting email, the default MX record points to your hosting server.
Adding a TXT record
- Click Add Record
- Select TXT
- Name: @ for root or subdomain
- Value: Text data (e.g., SPF record, verification code)
- Click Add
Configuring email authentication records
SPF record (Sender Policy Framework)
SPF authorises mail servers to send email for your domain.
Add TXT record:
- Name: @
- Value:
v=spf1 a mx ip4:196.22.105.27 ~all
Replace the IP address with your server IP (found in DirectAdmin β Account Info).
DKIM record (DomainKeys Identified Mail)
DKIM cryptographically signs outgoing emails.
- In DirectAdmin, go to Email Manager β DKIM Keys
- Enable DKIM for your domain
- DirectAdmin generates the DKIM TXT record automatically
- The record is added to DNS zone automatically
DMARC record
DMARC tells receiving servers how to handle unauthenticated email.
Add TXT record:
- Name: _dmarc
- Value:
v=DMARC1; p=quarantine; rua=mailto:dmarc@yourdomain.co.za
See our SPF/DKIM/DMARC guide for detailed setup.
Editing DNS records
- In DNS Management, find the record you want to edit
- Click Edit or the pencil icon
- Update the record value, TTL, or other settings
- Click Save
DNS changes take 1β4 hours to propagate globally (faster for lower TTL values).
Deleting DNS records
- In DNS Management, find the record to delete
- Click Delete or the trash icon
- Confirm deletion
Warning: Deleting critical records (A, MX, NS) breaks website or email functionality. Only delete records you are certain are no longer needed.
Common DNS configurations
Pointing a subdomain to external service
To point shop.yourdomain.co.za to Shopify:
- Add CNAME record:
shopβshops.myshopify.com - Or add A record if the service provides an IP address
Google Workspace email (external email)
To use Google Workspace for email while hosting website at 0724:
- Delete existing MX records
- Add Google's MX records:
- MX 1 β
aspmx.l.google.com - MX 5 β
alt1.aspmx.l.google.com - MX 5 β
alt2.aspmx.l.google.com - MX 10 β
alt3.aspmx.l.google.com - MX 10 β
alt4.aspmx.l.google.com
- MX 1 β
- Add Google's SPF and DKIM TXT records
Domain verification for third-party services
Services like Google Search Console require DNS verification:
- The service provides a TXT record value (e.g.,
google-site-verification=abc123...) - Add TXT record with name @ and the provided value
- Wait for propagation (1β4 hours)
- Return to the service to complete verification
DNS propagation and TTL
What is DNS propagation?
DNS propagation is the time it takes for DNS changes to spread across the internet. DNS servers worldwide cache records, and they must update before changes are visible globally.
Propagation timeframes
- Local: 5β15 minutes (your ISP)
- Regional: 1β4 hours (South Africa)
- Global: 4β24 hours (worldwide)
Most changes propagate within 2β4 hours for users with low-TTL records.
TTL (Time To Live)
TTL determines how long DNS servers cache a record before checking for updates.
- Low TTL (300-3600): Faster updates, more DNS queries
- High TTL (14400-86400): Slower updates, fewer DNS queries (more efficient)
Best practice: Set TTL to 3600 (1 hour) when making changes, then increase to 14400 (4 hours) after changes stabilize.
Checking DNS propagation
Use these tools to verify DNS changes have propagated:
- whatsmydns.net: Check DNS records from multiple locations worldwide
- mxtoolbox.com: Verify MX, SPF, and other email records
- dig command:
dig yourdomain.co.za A(Linux/Mac) - nslookup command:
nslookup yourdomain.co.za(Windows)
Troubleshooting DNS issues
Website not loading after DNS changes
- Verify nameservers point to ns1/ns2.practiwebs.co.za at your registrar
- Check A record points to correct IP address
- Wait for DNS propagation (up to 24 hours)
- Clear your browser cache and DNS cache
- Test from different device or network
Email not working after DNS changes
- Verify MX records point to correct mail server
- Check SPF, DKIM, DMARC records are configured
- Use mxtoolbox.com to test MX and email authentication
- Wait for DNS propagation (email services cache DNS heavily)
Subdomain not resolving
- Verify A or CNAME record exists for the subdomain
- Ensure the record points to correct IP or domain
- Check for typos in record name or value
- Wait for DNS propagation
"DNS_PROBE_FINISHED_NXDOMAIN" error
This error means the domain does not exist in DNS:
- Verify nameservers are set correctly at registrar
- Ensure domain is added to DirectAdmin
- Check DNS zone contains necessary records
- Wait for nameserver changes to propagate (up to 24 hours)
Advanced DNS configurations
Wildcard DNS records
Wildcard records match all subdomains:
- Name: *
- Type: A
- Value: Server IP address
Result: Any subdomain (abc.yourdomain.co.za, test.yourdomain.co.za) points to your server.
CAA records (Certificate Authority Authorisation)
CAA records specify which certificate authorities can issue SSL for your domain:
- Name: @
- Type: CAA
- Value:
0 issue "letsencrypt.org"
This allows only Let's Encrypt to issue certificates for your domain.
SRV records for services
SRV records specify service locations (e.g., VoIP, chat servers):
- Name: _service._protocol (e.g.,
_sip._tcp) - Priority: 10
- Weight: 10
- Port: Service port
- Target: Server hostname
DNS best practices
- Use low TTL when making changes: Set to 300β3600 for faster propagation
- Document changes: Keep records of what each DNS record does
- Avoid excessive records: Remove unused or outdated records
- Use CNAME for subdomains when possible: Easier to update
- Test before deleting: Ensure records are not in use before removing
- Set up email authentication: SPF, DKIM, and DMARC improve deliverability
- Monitor DNS health: Use monitoring tools to detect DNS issues
- Back up DNS zone: Export DNS records before major changes
Getting help with DNS management
If you need assistance configuring DNS records, troubleshooting DNS issues, setting up email authentication, or migrating DNS from another provider, contact 0724 Hosting support. We can help with complex DNS configurations, email routing, and third-party service integrations.