'The getHostByNameTest does a different type of query that requires it
return an A record from an ALL_RECORDS lookup, so we accommodate that
here.'

def _lookup(self, name, cls, qtype, timeout):

    if (name == 'getHostByNameTest'):
        rr = dns.RRHeader(name=name, type=dns.A, cls=cls, ttl=60, payload=dns.Record_A(address='127.0.0.1', ttl=60))
    else:
        rr = dns.RRHeader(name=name, type=qtype, cls=cls, ttl=60)
    results = [rr]
    authority = []
    additional = []
    return defer.succeed((results, authority, additional))
