Commit 674f5d2b authored by Daniel Salzman's avatar Daniel Salzman

tests-extra: extend wild. zone with upper-case records + generate random dnames

parent 46aff9b7
$ORIGIN wild.
$TTL 3600
@ SOA dns1 hostmaster 2010111213 10800 3600 1209600 7200
@ SOA dns1 Hostmaster 2010111213 10800 3600 1209600 7200
NS dns1
NS dns2
MX 10 mail
......@@ -23,3 +23,5 @@ test HINFO "" ""
TXT "\\" "\""
TXT "ahoj" "" "nevim"
NAPTR 20 0 "s" "SIP+D2U" "" sip._udp.wild.
Upper-case MX 10 MaiL
......@@ -16,6 +16,7 @@ Parameters:
import binascii
import getopt
import string
import os
import random
import re
......@@ -89,6 +90,12 @@ WORDS = [
"mobile","customer","siprouter","sip","office","voice","support",
"spare","owa","exchange" ]
# Replace some words with random ones
for i, word in enumerate(WORDS):
if random.choice([True, False]):
size = random.randint(2, 20)
WORDS[i] = ''.join(random.choice(string.hexdigits) for _ in range(size))
# For unique CNAMES/DNAMES
CNAME_EXIST = set([])
# For unique names
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment