How to Configure DNS Settings, Authoritative Nameservers & BIND9 Zone Records (A, CNAME, MX, SPF, DKIM, DMARC & CAA)

Configuring authoritative Domain Name System (DNS) records and glue nameservers ensures your websites, API gateways, and transactional mail servers resolve with sub-millisecond reliability across global recursive resolvers. This guide covers both the 5-step visual walkthrough inside the WinWinHost control panel and the production BIND9 zone architecture (SOA serials, A/CNAME/MX/CAA records, and SPF/DKIM/DMARC/PTR mail deliverability alignment).

Part 1: Visual Control Panel DNS & Nameserver Setup

Whether you are managing a single business domain on Unlimited Web Hosting or white-labeling custom glue nameservers (ns1.yourdomain.com and ns2.yourdomain.com) on a WinWinHost Reseller Account, follow these five steps to configure your global DNS settings:

1. Access Global Account Settings

From the primary control panel navigation menu, click on Account Settings and select Global Settings:

Account Settings and Global Settings navigation menu in WinWinHost control panel

2. Define Primary & Secondary Nameserver Hostnames

Enter the primary and secondary authoritative nameserver hostnames (for example, ns1.winwinhost.com and ns2.winwinhost.com) for your hosting cluster, along with your custom control panel header and footer branding:

Enter primary and secondary nameserver hostnames

Confirm that Online Help is enabled, verify your default SOA contact address, and click Save:

Confirm online help setting and save global nameserver configuration

3. Open Global DNS Settings

Return to the Account Settings menu and select Global DNS Settings to manage default zone records applied to newly provisioned domains:

Global DNS Settings menu item

4. Add a New DNS Zone Template Record

Click the Add New button to define default A, CNAME, MX, and TXT resource records:

Click Add New button to create a DNS zone template record

5. Assign Authoritative Nameserver IPv4 Addresses & Save

Enter the authoritative IPv4 addresses for your nameservers (NS1 and NS2) and click Save to increment the zone serial and broadcast your records across the DNS cluster:

Save authoritative DNS IPv4 records in control panel

Part 2: Essential DNS Resource Record Reference Table

Every authoritative domain zone relies on standardized IETF resource records to route HTTP/HTTPS web traffic, validate SSL/TLS certificates, and authenticate outbound email:

Record Type RFC Standard Host / Name Example Value / Target Recommended TTL Operational Purpose
SOA RFC 1035 @ ns1.winwinhost.com. hostmaster.winwinhost.com. 2026101801 3600 1800 604800 86400 86400s (24h) Defines primary nameserver, zone serial (YYYYMMDDNN), refresh/retry intervals, and negative cache TTL
NS RFC 1035 @ ns1.winwinhost.com. / ns2.winwinhost.com. 86400s (24h) Delegates authoritative zone resolution to designated nameservers
A / AAAA RFC 1035 / 3596 @, www, mx 76.86.208.178 (IPv4) 3600s (1h) or 300s pre-cutover Maps hostname directly to an IPv4 (A) or IPv6 (AAAA) address
CNAME RFC 1035 mail, cdn send.forge.rmta.net. 3600s (1h) Aliases a subdomain to another canonical hostname (never place a CNAME on the zone apex @)
MX RFC 5321 @ 10 mx.winwinhost.com. 3600s (1h) Directs inbound SMTP mail to an explicit A/AAAA host (never point an MX record to a CNAME alias)
CAA RFC 8659 @ 0 issue "letsencrypt.org" 3600s (1h) Restricts which Certificate Authorities are permitted to issue TLS certificates for the domain
TXT (SPF/DMARC) RFC 7208 / 7489 @, _dmarc "v=spf1 a mx include:mail.winwinhost.com ~all" 3600s (1h) Authorizes outbound SMTP senders (SPF), publishes DKIM RSA keys, and enforces DMARC alignment

Part 3: Production BIND9 Zone File Template & Email Deliverability Alignment

When managing authoritative zones directly in BIND9 (/var/lib/bind/*.hosts) on a Dedicated KVM Slice, enforce three strict hygiene rules so your domain passes automated DNS linters and enterprise spam filters (Gmail, Outlook, Yahoo):

  1. Increment the 10-Digit SOA Serial (YYYYMMDDNN) on Every Edit: Secondary nameservers rely on the SOA serial increasing monotonically to trigger IXFR/AXFR zone transfers.
  2. Separate Inbound MX Hosts from Outbound ESP CNAME Aliases: If mail.example.com is configured as a CNAME to an outbound transactional relay (such as Resend send.forge.rmta.net.), RFC 2181 §10.3 forbids pointing your MX record to mail.example.com. Instead, create a dedicated A record mx.example.com pointing to your static server IP (e.g., 76.86.208.178), point IN MX 10 mx.example.com., and align your ISP Reverse DNS (PTR) record for that static IP to mx.example.com so forward-confirmed reverse DNS (FCrDNS) matches your Postfix myhostname banner.
  3. Publish Complete SPF, DKIM, and DMARC Records: Combine an apex v=spf1 record, a 2048-bit RSA _domainkey public key, and a _dmarc policy record.
$TTL 3600
@   IN  SOA ns1.winwinhost.com. hostmaster.winwinhost.com. (
        2026101801 ; Serial (YYYYMMDDNN)
        3600       ; Refresh (1 hour)
        1800       ; Retry (30 minutes)
        604800     ; Expire (1 week)
        86400 )    ; Minimum negative cache TTL (24 hours)

; Authoritative Nameservers
@               IN  NS      ns1.winwinhost.com.
@               IN  NS      ns2.winwinhost.com.

; Web Ingress & Dedicated Inbound Mail Host (A Records)
@               IN  A       76.86.208.178
www             IN  A       76.86.208.178
mx              IN  A       76.86.208.178

; Inbound Mail Exchange (Must target an canonical A/AAAA host, never a CNAME)
@               IN  MX  10  mx.winwinhost.com.

; Outbound Transactional Relay Return-Path CNAME
mail            IN  CNAME   send.forge.rmta.net.

; Certificate Authority Authorization (RFC 8659)
@               IN  CAA 0   issue "letsencrypt.org"

; SPF (RFC 7208) & DMARC (RFC 7489) Policies
@               IN  TXT     "v=spf1 a mx include:mail.winwinhost.com ~all"
_dmarc          IN  TXT     "v=DMARC1; p=quarantine; pct=100; rua=mailto:dmarc-reports@winwinhost.com"

Part 4: Validating Zones with named-checkzone & dig

Before reloading BIND9 in production, always run named-checkzone and named-checkconf -z to catch missing trailing dots, unquoted TXT strings, or CNAME-and-other-data collisions before they affect live traffic:

# 1. Validate individual zone file syntax and SOA serial
named-checkzone winwinhost.com /var/lib/bind/winwinhost.com.hosts
# Output: zone winwinhost.com/IN: loaded serial 2026101801 / OK

# 2. Validate all zones referenced in named.conf.local and reload BIND9
sudo named-checkconf -z /etc/bind/named.conf.local && sudo rndc reload

# 3. Verify live A, MX, SPF, DMARC, and Reverse PTR resolution
dig +short A winwinhost.com
dig +short MX winwinhost.com
dig +short TXT winwinhost.com
dig +short TXT _dmarc.winwinhost.com
dig +short -x 76.86.208.178

Frequently Asked Questions (DNS & Nameservers)

How long does DNS propagation take after changing nameservers or A records?

Authoritative zone reloads via rndc reload take effect instantaneously on WinWinHost nameservers. Global recursive resolvers (Cloudflare 1.1.1.1, Google 8.8.8.8, ISP caches) refresh records according to the previous record's TTL—typically within 5 to 60 minutes for A/MX records and up to 24 hours for registrar glue NS changes.

Why can't I place a CNAME record on my root domain (@)?

RFC 1034 and RFC 2181 prohibit placing a CNAME record at the zone apex (@) because a CNAME cannot coexist with any other record types on the same node, which would break the mandatory apex SOA and NS records. Always use an A record at the zone apex.

What is the next step after my DNS records resolve?

Once your A and www records resolve to your WinWinHost server IP, follow our How to Install an SSL/TLS Certificate guide to activate HTTPS, and our How to Add a MySQL Database tutorial to provision your application storage. Explore all guides in the WinWinHost Knowledge Base.

WinWinHost News & Tutorials

Unlimited Website Edits via Autonomous AI

WinWinHost launches Unlimited Website Edits powered by autonomous AI engineering. Get continuous content revisions, mobile UI polish, technical SEO, and Core Web Vitals optimization with zero hourly fees and zero downtime.

New Product: Autonomous AI Web Developer Agent for $10/mo

WinWinHost introduces autonomous AI Web Developer Agents for just $10/month per domain. Each dedicated agent continuously monitors site health, resolves layout regressions, optimizes PageSpeed scores, and executes code updates with zero developer hourly fees.

Link Directory Plugin Released

Link Directory Plugin was released and we hope that this can help you to make a link directory website from your wordpress installation in just a few minutes.Right now the plugin has a lot of features but we are working to make even more options available to you.

Monetize Your Website

If you want to monetize your website via a payday loan affiliate network then you should know that are some nice networks out there like WinWinHost Network that can be a profitable way for your business.

Payday Loan Affiliate Plugin Released

Now you can earn money by generating leads with your wordpress website. We have created an wordpress plugin that adds a Payday Loan form to your website that you can customize in many ways.

What you can do with a domain name

Getting your own domain is really a huge step for anyone who wants to have an online presence. It changes the whole way a person work. Many people get domain names for individual reasons

The Shift to Edge Computing and Its Impact on Web Hosting

Explore how edge computing and distributed content delivery networks are redefining the speed, security, and scalability of modern web hosting.

WordPress Stats and Global Use

WordPress powers over 43% of the web. Learn more about the latest CMS market share growth metrics and global usage stats.

Google+ - The New Social Network

Google said it would begin the project of building a social networking platform that can compete against the more known Facebook and makes online communication a reality today.

Microsoft Office 365

Microsoft announced the launch of a cloud service called Office 365 which will bring together Microsoft Office, Microsoft Lync Online, Microsoft Exchange Online, and Microsoft SharePoint Online.

How to maintain your web hosting reseller account

One of the most efficient business on the Internet at this moment is selling web space known as web hosting reseller. It is the perfect solution for those who want to sell web space with a small investment.

Advantages of reselling Windows server space

Generally when you want to become a web hosting reseller you should consider everything carefully before starting to provide such services. It is better to decide if it is in your advantage to provide space on a Windows server.

About SEO

All the companies/individuals who have contact with the online environment and manage to make profit from its activities on the Internet, always want to improve the performance of his websites and this can be best done by using SEO.

ICANN approves new suffixes

ICANN (Internet Corporation for Assigned Names and Numbers) approved the measure after which anyone can register domains with custom suffixes.

Need Help?

Have questions about our hosting plans or custom software development? Reach out to our experts anytime.