Skip to content

Domain / What each DNS record is

What each DNS record is

DNS is the list that tells the rest of the internet where each part of your domain is. For email, it answers five questions. Each record Banxmail asks for answers one of them:

MXwhere to deliver the email
SPFwho may send on your behalf
DKIMthe signature on each message
DMARCwhat to do when the proof fails
autoconfighow the app finds the servers

There are six required records (one MX, one SPF, three DKIM and one DMARC) and a few optional ones.

Every record has three parts that you fill in on your DNS provider’s panel:

  • Type: MX, TXT or CNAME.
  • Name (or “host”): which part of the domain it refers to. @ means the domain itself (my.com). A name like _dmarc applies to _dmarc.my.com. Careful: some panels add the domain at the end by themselves, and others expect the full name. If the panel completes it on its own and you type _dmarc.my.com, the record becomes _dmarc.my.com.my.com and doesn’t work. Your provider’s guide says which case applies.
  • Value (or “content”): what the record points to or states. Some panels require a trailing dot on names (mail.banxmail.com.), others refuse it. When in doubt, try without; if the panel complains, try with.

After you create it, the record can take from a few minutes to a few hours to take effect everywhere. That’s the time it takes for servers around the world to forget the old answer (the TTL, in seconds, that your DNS panel shows).

The MX record (mail exchanger) says which server receives your domain’s email. When someone writes to you@yourcompany.com, the person’s server looks up the domain’s MX and delivers the message at that address.

  • It points to the name mail.banxmail.com, not to an IP number.
  • It has a priority: when there are several MX records, the lowest number is tried first. With only one, the number changes nothing. Use 10.
  • Remove the old MX records from another provider. If one is left, part of the messages will keep going to the wrong place. The panel warns you when it finds an MX from somewhere else.

The record:

Type       MX
Name       @
Value      mail.banxmail.com
Priority   10

Without a correct MX, you can still send email, but you can’t receive it.

SPF (Sender Policy Framework) is a list, published in a TXT record, of the servers allowed to send email using your domain. The server that receives the message checks whether the sender is on the list.

Banxmail’s record:

Type    TXT
Name    @
Value
  v=spf1 include:_spf.banxmail.com ~all

The include: points to Banxmail’s list, and ~all means “anything not on the list is suspicious”.

  • There can be only one SPF per domain. If you already have one (from an online store, a sending system, your web host), don’t create another: merge include:_spf.banxmail.com into the one that exists. For example, v=spf1 include:_spf.hostinger.com ~all becomes v=spf1 include:_spf.hostinger.com include:_spf.banxmail.com ~all. Two SPF records make both be ignored.
  • SPF has a limit of 10 DNS lookups. Each include: counts. If you stack many services you can exceed the limit.

DKIM (DomainKeys Identified Mail) is a digital signature. Banxmail signs every message that leaves. The public key, which the receiver uses to check the signature, is published in DNS, under a name like bx1._domainkey.yourcompany.com. With it, the recipient knows the message came from who it says and that nobody changed it along the way.

Banxmail asks for three CNAME records (bx1, bx2 and bx3), and not a TXT with the key inside. A CNAME is a pointer: your DNS says “the answer is in Banxmail’s zone”. That way we change keys from time to time, for security, without you touching DNS again. There are three because the change passes from one to the next; all three must exist.

The three records, in this format (the panel fills in your account code where the part between < and > is):

Type    CNAME
Name    bx1._domainkey
Value
  <account>.bx1.dkim.banxmail.com

Type    CNAME
Name    bx2._domainkey
Value
  <account>.bx2.dkim.banxmail.com

Type    CNAME
Name    bx3._domainkey
Value
  <account>.bx3.dkim.banxmail.com

The target of each CNAME starts with your account code (<account>), and the same code applies to all your domains. This also proves the domain is yours: without the three correct DKIM CNAMEs, the domain does not send to the outside (receiving depends only on the MX).

DMARC (Domain-based Message Authentication, Reporting and Conformance) combines SPF and DKIM and tells the recipient what to do with a message that fails both proofs, for the visible sender address in the email: nothing (none), send to spam (quarantine) or reject (reject). It also asks for reports about what was sent in the domain’s name.

Without DMARC, anyone can send messages with your domain as the sender, and providers tend to distrust yours. Gmail and Yahoo began requiring it from anyone who sends in volume.

In Banxmail, the _dmarc record is a CNAME to a name of your account in the banxmail.com zone, which the panel shows. The policy that will apply there is p=reject: a message that pretends to be from your domain and fails the proofs is rejected. The aggregate reports arrive at Banxmail, separated by customer. We can adjust the policy without you touching DNS.

Type    CNAME
Name    _dmarc
Value   <account>.dmarc.banxmail.com

Autoconfig and autodiscover: automatic setup

Section titled “Autoconfig and autodiscover: automatic setup”

These are optional records that just make life easier for whoever is setting up an app. Without them everything works, but the person has to type the servers by hand (see the manual setup).

  • autoconfig (Thunderbird and others): a CNAME at the name autoconfig points to mail.banxmail.com.
Type    CNAME
Name    autoconfig
Value   mail.banxmail.com
  • autodiscover (Outlook and others): the panel also checks the name autodiscover as a CNAME to mail.banxmail.com. Banxmail does not ask for SRV records: only autoconfig and autodiscover. Create what the panel shows on the line autoconfig and autodiscover · optional.
  • Cloudflare: the email CNAMEs must stay as DNS only (the gray cloud), never with the proxy on (the orange cloud). With the proxy, the name starts answering with Cloudflare’s address and the check fails. See the Cloudflare guide.
  • Your website stays where it is. The A records and the www CNAME don’t change. Only the email ones are added.
  • Subdomains: a domain like mail.yourcompany.com is a different domain for email, with its own records.
  • Domain with email somewhere else: don’t change the MX before migrating. See Migration.

You can check what the world sees using the command line (replace my.com with your domain):

dig MX my.com +short
dig TXT my.com +short
dig CNAME bx1._domainkey.my.com +short
dig CNAME _dmarc.my.com +short

On Windows, use nslookup -type=MX my.com. An empty answer means the record doesn’t exist yet, or hasn’t yet reached whoever asked. When in doubt, the Banxmail panel runs these lookups for you, every 15 seconds, and explains the result on each line.