Git Product home page Git Product logo

terraform-cloudflare-parked-domain-baseline's Introduction

terraform-cloudflare-parked-domain-baseline

Github Actions Releases

Terraform Module Registry

A terraform module to set up DNS records to harden the parked(unused) domain using Cloudflare DNS.

Domains should be protected for email spoofing even if they are not intended to be actively used. This module configures DNS records to protect such domain based on M3AAWG Protecting Parked Domains Best Common Practices.

Features

This module creates the following DNS records.

  • Null MX record(RFC 7505) to indicate the domain does not accept any email.
  • SPF record to indicate no IP is authorized to send email on behalf of this domain.
  • DMARC record to enforce receiving domains to reject any email forging this domain.
  • Optionally adds rua tag in the DMARC record to receive aggregate feedback reports via email.
  • Optionally creates Null MX and DMARC records for wildcard subdomains as well as the root domain(enabled by default).

Usage

provider "cloudflare" {
}

data "cloudflare_zone" "this" {
  name = "example.com"
}

module "parked_domain" {
  source = "nozaq/parked-domain-baseline/cloudflare"

  zone_id             = data.cloudflare_zone.this.id
  ttl                 = 86400
  include_subdomains  = true
}

Requirements

Name Version
terraform >= 1.3
cloudflare >= 3.29

Providers

Name Version
cloudflare >= 3.29

Inputs

Name Description Type Required
zone_id The DNS zone ID to add the records to. Either zone_name or zone_id need to be given. string yes
aggregate_feedback_email The email address to which aggregate feedback is to be sent. string no
include_subdomains Configure all subdomains as well as the root domain. bool no
ttl The TTL of the DNS records. number no

Outputs

No outputs.

Related modules

terraform-cloudflare-parked-domain-baseline's People

Contributors

github-actions[bot] avatar nozaq avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.