Documentation
¶
Index ¶
- func CaaFlagIsNonZero(rc *models.RecordConfig) error
- func CaaHasEmptyTag(rc *models.RecordConfig) error
- func CaaHasEmptyTarget(rc *models.RecordConfig) error
- func CaaTargetContainsWhitespace(rc *models.RecordConfig) error
- func LabelNotApex(rc *models.RecordConfig) error
- func MxNull(rc *models.RecordConfig) error
- func NaptrHasEmptyTarget(rc *models.RecordConfig) error
- func NsAtApex(rc *models.RecordConfig) error
- func SrvHasEmptyTarget(rc *models.RecordConfig) error
- func SrvHasNullTarget(rc *models.RecordConfig) error
- func SrvHasZeroPort(rc *models.RecordConfig) error
- func TxtHasBackslash(rc *models.RecordConfig) error
- func TxtHasBackticks(rc *models.RecordConfig) error
- func TxtHasDoubleQuotes(rc *models.RecordConfig) error
- func TxtHasSemicolon(rc *models.RecordConfig) error
- func TxtHasSingleQuotes(rc *models.RecordConfig) error
- func TxtHasTrailingSpace(rc *models.RecordConfig) error
- func TxtHasUnpairedBackslash(rc *models.RecordConfig) error
- func TxtHasUnpairedDoubleQuotes(rc *models.RecordConfig) error
- func TxtIsEmpty(rc *models.RecordConfig) error
- func TxtLongerThan(maxLength int) func(rc *models.RecordConfig) error
- func TxtStartsOrEndsWithSpaces(rc *models.RecordConfig) error
- type Auditor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaaFlagIsNonZero ¶
func CaaFlagIsNonZero(rc *models.RecordConfig) error
CaaFlagIsNonZero identifies CAA records where tag is no zero.
func CaaHasEmptyTag ¶ added in v4.23.0
func CaaHasEmptyTag(rc *models.RecordConfig) error
CaaHasEmptyTag detects CAA records with empty tags.
func CaaHasEmptyTarget ¶ added in v4.23.0
func CaaHasEmptyTarget(rc *models.RecordConfig) error
CaaHasEmptyTarget detects CAA records with empty targets.
func CaaTargetContainsWhitespace ¶
func CaaTargetContainsWhitespace(rc *models.RecordConfig) error
CaaTargetContainsWhitespace identifies CAA records that have whitespace in the target. See https://github.com/StackExchange/dnscontrol/issues/1374
func LabelNotApex ¶
func LabelNotApex(rc *models.RecordConfig) error
LabelNotApex detects use not at apex. Use this when a record type is only permitted at the apex.
func MxNull ¶
func MxNull(rc *models.RecordConfig) error
MxNull detects MX records that are a "null MX". This is needed by providers that don't support RFC 7505.
func NaptrHasEmptyTarget ¶ added in v4.23.0
func NaptrHasEmptyTarget(rc *models.RecordConfig) error
NaptrHasEmptyTarget detects NAPTR records with empty targets.
func NsAtApex ¶ added in v4.23.0
func NsAtApex(rc *models.RecordConfig) error
NsAtApex detects NS records at the apex/root domain. Use this when a provider doesn't support custom NS records at the apex.
func SrvHasEmptyTarget ¶ added in v4.23.0
func SrvHasEmptyTarget(rc *models.RecordConfig) error
SrvHasEmptyTarget detects SRV records with empty targets.
func SrvHasNullTarget ¶
func SrvHasNullTarget(rc *models.RecordConfig) error
SrvHasNullTarget detects SRV records that has a null target.
func SrvHasZeroPort ¶ added in v4.23.0
func SrvHasZeroPort(rc *models.RecordConfig) error
SrvHasZeroPort detects SRV records with port set to zero.
func TxtHasBackslash ¶ added in v4.6.1
func TxtHasBackslash(rc *models.RecordConfig) error
TxtHasBackslash audits TXT records for strings that contains one or more backslashes.
func TxtHasBackticks ¶
func TxtHasBackticks(rc *models.RecordConfig) error
TxtHasBackticks audits TXT records for strings that contain backticks.
func TxtHasDoubleQuotes ¶
func TxtHasDoubleQuotes(rc *models.RecordConfig) error
TxtHasDoubleQuotes audits TXT records for strings that contain doublequotes.
func TxtHasSemicolon ¶ added in v4.7.4
func TxtHasSemicolon(rc *models.RecordConfig) error
TxtHasSemicolon audits TXT records for strings that contain backticks.
func TxtHasSingleQuotes ¶
func TxtHasSingleQuotes(rc *models.RecordConfig) error
TxtHasSingleQuotes audits TXT records for strings that contain single-quotes.
func TxtHasTrailingSpace ¶
func TxtHasTrailingSpace(rc *models.RecordConfig) error
TxtHasTrailingSpace audits TXT records for strings that end with space.
func TxtHasUnpairedBackslash ¶ added in v4.28.0
func TxtHasUnpairedBackslash(rc *models.RecordConfig) error
TxtHasUnpairedBackslash audits TXT records for strings that contain an odd number of consecutive backslashes. Some providers strip single backslashes or convert odd consecutive backslashes to even. e.g., "1back\slash" -> "1backslash", "3back\\\slash" -> "3back\\slash"
func TxtHasUnpairedDoubleQuotes ¶
func TxtHasUnpairedDoubleQuotes(rc *models.RecordConfig) error
TxtHasUnpairedDoubleQuotes audits TXT records for strings that contain unpaired doublequotes.
func TxtIsEmpty ¶
func TxtIsEmpty(rc *models.RecordConfig) error
TxtIsEmpty audits TXT records for empty strings.
func TxtLongerThan ¶ added in v4.7.3
func TxtLongerThan(maxLength int) func(rc *models.RecordConfig) error
TxtLongerThan returns a function that audits TXT records for length greater than maxLength.
func TxtStartsOrEndsWithSpaces ¶ added in v4.7.3
func TxtStartsOrEndsWithSpaces(rc *models.RecordConfig) error
TxtStartsOrEndsWithSpaces audits TXT records that starts or ends with spaces