~ubuntu-branches/ubuntu/trusty/maradns/trusty-proposed

« back to all changes in this revision

Viewing changes to deadwood-3.2.02/sqa/dwood2rc_d_upstream_servers/do.test

  • Committer: Package Import Robot
  • Author(s): Dariusz Dwornikowski
  • Date: 2014-02-16 19:36:04 UTC
  • mfrom: (1.2.11) (21.1.11 experimental)
  • Revision ID: package-import@ubuntu.com-20140216193604-xtmcopn9pilzszae
Tags: 2.0.09-1
* New maintainer (Closes: #739084)
* New upstream release to unstable
* Several security bugs (Closes: #739755)
   - security bugfix for CVE-2011-5055, CVE-2011-5056, CVE-2012-0024,
   CVE-2012-1570
   - security bugfix agains blind spoofing attack (no CVE number)
   - security bugfix for packet of death attack (no CVE number)
* Bump standards to 3.9.5
* Updated d/postinst to no longer modify conffiles (Closes: #710903)
* Init script fixed (Closes: #709826)
* --reinstall no longer kills the process (Closes: #701657)
* Updated old d/changelog entries, added information when the CVEs were
  fixed: 2.0.06-1, 2.0.04-1, 1.4.11-1, 1.2.12.06-1, 1.2.12.05-1, 1.0.28-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
# This is a basic Deadwood test to make sure it works
4
 
 
5
 
killall maradns > /dev/null 2>&1 # Don't run this test on Solaris
6
 
sleep 2
7
 
 
8
 
for IP in 127.0.0.2 127.0.0.4 127.0.0.6 ; do
9
 
cat > mararc-${IP} << EOF
10
 
chroot_dir="$( pwd )"
11
 
ipv4_bind_addresses="${IP}"
12
 
csv2 = {}
13
 
csv2["example.com."] = "db.example.com"
14
 
csv2["example.net."] = "db.example.net"
15
 
EOF
16
 
 
17
 
cat > db.example.com << EOF
18
 
*.% A 10.1.2.3
19
 
EOF
20
 
 
21
 
cat > db.example.net << EOF
22
 
*.% A 10.1.2.4
23
 
EOF
24
 
 
25
 
# OK, test the server
26
 
../../../server/maradns -f mararc-${IP} > /dev/null 2>&1 &
27
 
#../../../server/maradns -f mararc-${IP} &
28
 
sleep 1
29
 
 
30
 
done
31
 
 
32
 
# Now, make sure Deadwood works
33
 
 
34
 
cat > dwood2rc << EOF
35
 
chroot_dir="$( pwd )"
36
 
ipv4_bind_addresses="127.0.0.1"
37
 
upstream_servers = {}
38
 
upstream_servers["."]="127.0.0.2"
39
 
upstream_servers["example.net."]="127.0.0.6"
40
 
recursive_acl="127.0.0.1/16"
41
 
filter_rfc1918 = 0
42
 
EOF
43
 
 
44
 
../../src/Deadwood -f dwood2rc | grep -v version | sed 's/[(].*[)]//' &
45
 
sleep 1
46
 
askmara Awww1.example.com. 127.0.0.1
47
 
echo
48
 
askmara Awww1.example.com. 127.0.0.1
49
 
echo
50
 
askmara Awww2.example.com. 127.0.0.1
51
 
echo
52
 
askmara Awww1.example.net. 127.0.0.1
53
 
 
54
 
killall maradns
55
 
killall Deadwood
56
 
rm mararc-*
57
 
rm db.example.com
58
 
rm dwood2rc