dns_server: Add python method to extract a DNS entry from a ldb.MessageElement