mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Add class comment
This commit is contained in:
@@ -22,6 +22,35 @@ class SpfDnsLookupException(ProcessorException):
|
||||
|
||||
|
||||
class SpfDnsLookupProcessor(BaseProcessor):
|
||||
'''
|
||||
Validate that SPF values in TXT records are valid.
|
||||
|
||||
Example usage:
|
||||
|
||||
processors:
|
||||
spf:
|
||||
class: octodns.processor.spf.SpfDnsLookupProcessor
|
||||
|
||||
zones:
|
||||
example.com.:
|
||||
sources:
|
||||
- config
|
||||
processors:
|
||||
- spf
|
||||
targets:
|
||||
- route53
|
||||
|
||||
The validation can be skipped for specific records by setting the lenient
|
||||
flag, e.g.
|
||||
|
||||
_spf:
|
||||
octodns:
|
||||
lenient: true
|
||||
ttl: 86400
|
||||
type: TXT
|
||||
value: v=spf1 ptr ~all
|
||||
'''
|
||||
|
||||
log = getLogger('SpfDnsLookupProcessor')
|
||||
|
||||
def __init__(self, name):
|
||||
|
||||
Reference in New Issue
Block a user