Module conversion_utils

Source
Expand description

Provides helper functions to convert net addresses to resource records

Functionsยง

hashmap_to_txt
Converts the hashmap to a TXT Record
ip_addr_to_resource_record
Convert the addr to an A (IpV4) or AAAA (IpV6) record
port_to_srv_record
Convert the port to an SRV record. The provided name will be used as resource name and target
socket_addr_to_srv_and_address
Convert the socket address to a SRV and an A (IpV4) or AAAA (IpV6) record, the return will be a tuple where the SRV is the first item