How many DNS lookups does Google Workspace SPF use?
`include:_spf.google.com` uses 4 DNS lookups total (1 for `_spf.google.com` plus 3 nested `_netblocks` includes).
Exact DNS TXT records required to authenticate Google Workspace (Gmail for Business) custom domains — including the hidden 4-lookup SPF weight of _spf.google.com.
| Host / Name | Type | Value | TTL | Purpose |
|---|---|---|---|---|
@ |
TXT | v=spf1 include:_spf.google.com ~all |
3600 | Root SPF record (expands to 4 DNS lookups via _netblocks 1-3) |
google._domainkey |
TXT | v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A... |
3600 | Generated in Google Admin Console -> Apps -> Gmail -> Authenticate email |
_dmarc |
TXT | v=DMARC1; p=quarantine; adkim=r; aspf=r; rua=mailto:dmarc@yourdomain.com; |
3600 | Start with p=none for 14 days, then advance to quarantine/reject |
| Mechanism | Type | Direct | Est. Total | Notes |
|---|
EnvGuard for JetBrains IDEs scans .env, YAML, and DNS config files locally before commit — paired with our DevOps & AI Automation Kits on Gumroad.
`include:_spf.google.com` uses 4 DNS lookups total (1 for `_spf.google.com` plus 3 nested `_netblocks` includes).
Always choose 2048-bit RSA unless your legacy DNS host strictly cannot handle split TXT strings over 255 bytes.
Google recommends `~all` (SoftFail) paired with DMARC enforcement (`p=quarantine` or `p=reject`) to avoid breaking legitimate mailing-list forwarding.