Improve Deliverability

IPSECKEY lookup

Enter a name to read its IPSECKEY records: IPsec gateways and public keys published in DNS.

Quick answer: An IPSECKEY record publishes an IPsec gateway and public key in DNS for opportunistic encryption (RFC 4025). It should be protected with DNSSEC.

What is an IPSECKEY record?

An IPSECKEY record (RFC 4025) lets a host publish the public key and the gateway for IPsec, the protocol suite behind many VPNs. It supports opportunistic encryption: a system that wants to connect to a host can look up its key in DNS and set up an encrypted tunnel without any manual configuration.

Each record has a precedence, a gateway type (none, IPv4, IPv6 or a domain name), a public key algorithm, the gateway itself and the public key in base64.

How to use the IPSECKEY lookup

  1. Enter the host name or the reverse-DNS name that holds the record.
  2. Press Look up IPSECKEY.
  3. Read the gateway, algorithm and key preview in the table.

The fields explained

  • Precedence. Lower numbers are preferred, similar to MX priority.
  • Gateway type. 0 no gateway, 1 IPv4 address, 2 IPv6 address, 3 domain name.
  • Algorithm. 0 no key, 1 DSA, 2 RSA, 3 ECDSA, 4 Ed25519.
  • Gateway. Where to connect. When it is a name, the name needs its own address records.
  • Public key. The key used to authenticate the peer.

Security notes

  • DNSSEC is needed. An unsigned IPSECKEY record can be forged, which would let an attacker redirect an encrypted tunnel. Sign the zone.
  • Reverse zones. Records are often published in the reverse DNS tree, so the owner of the IP block must delegate or add them.
  • Rarely used. Most VPNs use pre-shared keys or certificates. IPSECKEY is a niche feature.

IPSECKEY and email deliverability

IPSECKEY has nothing to do with email sending, and mailbox providers ignore it. It is included here because it appears in full DNS record listings and is often misunderstood. If you see one on your domain that you did not create, check with the person who manages your DNS.

Last reviewed November 20, 2026 by the LeadNurturix cold email team.

IPSECKEY lookup FAQ

What is an IPSECKEY record used for?

It publishes the IPsec gateway and public key of a host in DNS so that other systems can set up an encrypted tunnel automatically, known as opportunistic encryption.

Is IPSECKEY the same as a VPN configuration?

No. It only provides the key and gateway data. The VPN software must support looking it up and using it, and most do not by default.

Where are IPSECKEY records published?

Usually at the name of the host in the forward zone, or in the reverse zone (in-addr.arpa) for the IP address.

Why do I get no IPSECKEY records?

They are uncommon. Unless you set up opportunistic IPsec yourself, there will not be any.

Do I need DNSSEC with IPSECKEY?

Yes, RFC 4025 requires that the key be obtained in a secure way. Without DNSSEC an attacker can replace the record.

What does gateway type 3 mean?

The gateway is given as a domain name rather than an IP address. That name must resolve to an A or AAAA record.

Which key algorithms are supported?

DSA (1), RSA (2), ECDSA (3) and Ed25519 (4). Algorithm 0 means that no key is present, which is rarely useful.

Can IPSECKEY be used for email encryption?

No. Email encryption uses TLS between servers and S/MIME or PGP for end-to-end. For server TLS see MTA-STS and DANE.

Does an IPSECKEY affect SEO or deliverability?

No effect on either. It is a purely technical record for IPsec.

Need the fixes done for you?

LeadNurturix is a cold email agency. We set up sending domains and mailboxes with SPF, DKIM and DMARC done right, build targeted B2B lead lists, write the sequences and run the campaigns. Start with a free deliverability audit and we will tell you exactly what to change.

For Urgent Queries