split_spf: Split out all SPF records in a domain's TXT record

Description Usage Arguments Value Examples

View source: R/spf.r

Description

Given a vector of TXT records, this function will return a list of vectors of all the SPF records for each. If the given TXT record is not an SPF record, NA is returned (which makes it easy to skip with purrr functions).

Usage

1
split_spf(spf_rec)

Arguments

spf_rec

a character vector of DNS TXT records

Value

list; each element is chr vector of spf components

Examples

1
split_spf("v=spf1 include:_spf.apple.com include:_spf-txn.apple.com ~all")

hrbrmstr/gdns documentation built on May 17, 2020, 3:37 a.m.