saltext.noderings.utils.dns

DNS name and record-value helpers.

saltext.noderings.utils.dns.relative_name(name, zone)[source]

www.example.com. in example.com -> www; the apex -> @.

saltext.noderings.utils.dns.validate_values(rrtype, values)[source]

Return an error message, or None when the values are acceptable.

saltext.noderings.utils.dns.canonical(rrtype, v)[source]

A comparable form of one value: the API may lowercase names or add trailing dots.

saltext.noderings.utils.dns.quote_txt(v)[source]

Split a TXT value into 255-byte quoted strings, as the API expects.

saltext.noderings.utils.dns.unquote_txt(v)[source]

Join the API’s quoted TXT strings back into one value.