#
# $Id: gen-data-queryperf.py,v 1.2 2008/06/13 18:17:08 jinmei Exp $
#
# Contributed by Stephane Bortzmeyer <bortzmeyer@nic.fr>
#
# can generate files of queries, both with random names (to test the
# behaviour with NXdomain) and with domains from a real zone file."
#
import getopt
import random
import re
import string
import sys
gen = None
zone_file = None
domains = {}
else:
return label
# characters allowed in a label
def gen_random_label():
"""
Generate a random DNS label.
"""
label = ""
return label
def usage():
"[-p percent-random] [-t TLD]\n")
try:
["help", "percentrandom=", "zonefile=",
"number=", "tld=",
"maxsize="])
usage()
else:
usage()
usage()
if zone_file:
while line:
if domain_line:
if zone_file:
if not domains:
if zone_file:
else:
else: