DNS.Record.encode

You're seeing just the function encode, go back to DNS.Record module for more information.

Serializes a DNS.Record into its binary representation.