'Return a Deferred that will resolve a hostname.'

def resolve(self, name, timeout=(1, 3, 11, 45)):

    if (not name):
        return defer.succeed('0.0.0.0')
    if abstract.isIPAddress(name):
        return defer.succeed(name)
    return self.resolver.getHostByName(name, timeout)
