from twisted.names import client, resolve import time def request(): server='192.168.2.1' theResolver = client.Resolver( servers = [ ( server, 53 )], timeout = ( 4, ) ) dnsResolver = resolve.ResolverChain( [ theResolver ] ) d = dnsResolver.lookupAddress( "www.heise.de" ) for i in range(500): print i request() time.sleep(60)