zonefiles
utils.zonefiles.formatTxtRecord
Type: utils.zonefiles.formatTxtRecord :: String -> String
Converts a string into a valid txt record so it's compliant with RFC 4408 This means it splits the string every 255 chars and surrounds it with quotation marks
txtString
: The String of a txt resource record
utils.zonefiles.convertRecordToStr
Type: utils.zonefiles.convertRecordToStr :: String -> Any -> String
attributeset Takes any record from the module and converts it to a fitting zonefile string
record
: Record type, like a or caa
value
: Record value, like "198.51.100.42"
utils.zonefiles.mkZoneString
Type: utils.zonefiles.mkZoneString :: Attr -> String
Converts a zone attributeset into a zonefile and returns a multiline string
entries
: Takes dnsConfig."your-domain.invalid"
utils.zonefiles.write
Type: utils.zonefiles.write :: String -> Attr -> File
Returns a zone-file from NixOS-DNS values Can nicely be used with lib.mapAttrsToList
domainName
: takes "your-domain.invalid"
domainValues
: takes dnsConfig."your-domain.invalid"