Google Apps Domain Create SPF Records For BIND or Djbdns

‮th‬tps://www.lautturi.com
Google Apps Domain Create SPF Records For BIND or Djbdns

SPF (Sender Policy Framework) records are DNS records that are used to specify the servers that are authorized to send email on behalf of a domain.

To create SPF records for a domain in BIND or djbdns, you will need to add the SPF record to the domain's DNS zone file.

Here is an example of how to create an SPF record for a domain in BIND:

  1. Connect to the BIND server using ssh.

  2. Open the domain's DNS zone file in a text editor.

  3. Add the following line to the file, replacing <domain> with the domain for which you want to create the SPF record:

<domain> IN TXT "v=spf1 a mx ~all"

This SPF record specifies that the domain's A and MX records are authorized to send email on behalf of the domain, and that other servers should be treated as "soft fail" (i.e. they are not explicitly authorized, but the email should still be delivered).

  1. Save the DNS zone file and exit the text editor.

  2. Reload the BIND server to apply the changes:

rndc reload

To create an SPF record,

  1. Log into your domain name registrar's website.
  2. Find the page for managing DNS records.
  3. Create a new TXT record with the following information:
Name: @
Value: v=spf1 include:yourdomain.com ~all
  1. Replace "yourdomain.com" with your actual domain name.
  2. Save the record.
  3. Test the SPF record to make sure it is working correctly.
Created Time:2017-10-16 14:38:42  Author:lautturi