How to add HTTP response headers and DNS TXT records

HTTP response headers

Please keep in mind that if the header value contains double quotes (") you will need to escape them (\") to avoid breaking the configuration. Example:



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" />

Vercel Now

Add the following to your now.json file at the root of your project. More information can be found here:

  "headers": [
      "source": "/(.*)",
      "headers": [
          "key": "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;;".