How to add HTTP response headers and DNS TXT records

HTTP response headers


In your server { } block add:

add_header HEADER_NAME "HEADER_VALUE" always;


Add the following to your httpd.conf in your VirtualHost or in an .htaccess file:

Header always set HEADER_NAME "HEADER_VALUE"


You can use the HTTP Response Headers GUI in IIS Manager or add the following to your web.config:

      <add name="HEADER_NAME" value="HEADER_VALUE" />

DNS TXT Records

BIND Server

If your domain is hosted by Bind DNS server, you can add DMARC record by locating your domain's zone file and opening it with your preferred editor, then add the following content:

; DMARC IN TXT "v=DMARC1; p=none;;"


Most DNS services have a DNS Web administration where you can set up DNS records. Use the following values:

HOST: "_dmarc"
VALUE:"v=DMARC1; p=none;;".