---
name: "Zonemaster::LDNS::RR::SPF"
section: "3pm"
platform: "linux"
package: "libzonemaster-ldns-perl"
version: "4.1.0+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Zonemaster::LDNS::RR::SPF"
---

# Zonemaster::LDNS::RR::SPF(3pm)

Type SPF record

## NAME

Zonemaster::LDNS::RR::SPF - Type SPF record

## DESCRIPTION

A subclass of Zonemaster::LDNS::RR, so it has all the methods of that class available in addition to the ones documented here.

## METHODS

- **spfdata()**

  Returns the concatenation of all the strings composing the data of the resource record.

  For example, if an SPF resource record has the following presentation format:

  ```
      test.example. 3600 IN SPF "v=spf1 " "mx " "a " "-all"
  ```

  then `spfdata()` returns the string `"v=spf1 mx a -all"`.
