Skip to content

Instantly share code, notes, and snippets.

@shankar-bavan
shankar-bavan / DKIM-SPF-DMARC-check-via-command-line.md
Created December 25, 2022 14:26
DKIM, SPF, and DMARC check via command line

SPF record check

  • Open the command line (Start > Run > cmd).
  • Enter nslookup -type=txt followed by a space and a domain or hostname, for example, nslookup -type=txt google.com.
  • If an SPF record exists, the result will be something like this: v=spf1 include:_spf.google.com ~all.
  • If there are no results or no v=spf1, then there is a problem getting the record for the domain, or it doesn’t exist.

DKIM record check

@jflopezfernandez
jflopezfernandez / nftables.conf
Created July 14, 2020 15:38
Simple nftables server configuration
#!/usr/bin/nft -f
# Delete all previously established rules
flush ruleset
# Local Area Network IPv4 Addresses
define server1_ipv4 = 192.168.1.2
define server2_ipv4 = 192.168.1.3
table inet firewall {