#
# $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 sys
import getopt
import random
import re
ldh = []
# Letters
# Digits
# Hyphen
gen = None
zone_file = None
domains = {}
else:
return label
def gen_random_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 zone_file:
else:
else: