Create a record of type (record_type) and fill it with the given
        dict of results

def CreateRecord(record_type, host, results):
        """
        Create a record of type (record_type) and fill it with the given
        dict of results
        """
        record_class = dns_tag_lookup[record_type]
        record = etree.Element("a")
        record.set("host", host)
        for params in results:
            result = etree.Element("result")
            for k,v in params.iteritems():
                result.set(k, v)
            record.append(result)

        return record_class(record)