def get_record(self, dns_type, name):
try:<EOL><INDENT>record = [record for record in self.dns_records<EOL>if record['<STR_LIT:type>'] == dns_type and record['<STR_LIT:name>'] == name][<NUM_LIT:0>]<EOL><DEDENT>except IndexError:<EOL><INDENT>raise RecordNotFound(<EOL>'<STR_LIT>'<EOL>.format(domain=name))<EOL><DEDENT>return record<EOL>
Get a dns record
:param dns_type:
:param name:
:return: