# check if it's within a subdomain we're supposed to delegate to
# some other DNS server.
while (isinstance(deferredResult.result, failure.Failure)
- and name.find('.') != -1):
+ and '.' in name):
maybeDelegate = True
name = name[name.find('.') + 1 :]
deferredResult = authority.BindAuthority._lookup(self, name, cls,