Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
c2265bd3
Commit
c2265bd3
authored
Mar 21, 2011
by
Mark Andrews
Browse files
adjust rt23702 test to take less time
parent
70f42b7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/tests/system/dnssec/ns2/sign.sh
View file @
c2265bd3
...
...
@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: sign.sh,v 1.4
8
2011/03/21
01:02:39
marka Exp $
# $Id: sign.sh,v 1.4
9
2011/03/21
20:31:22
marka Exp $
SYSTEMTESTTOP
=
../..
.
$SYSTEMTESTTOP
/conf.sh
...
...
@@ -164,19 +164,22 @@ cat $infile $keynew1.key $keynew2.key >$zonefile
$SIGNER
-P
-r
$RANDFILE
-o
$zone
-k
$keyold1
-k
$keynew1
$zonefile
$keyold1
$keyold2
$keynew1
$keynew2
>
/dev/null
#
#
# Make a zone big enough that it takes several seconds to generate a new
# nsec3 chain.
#
zone
=
nsec3chain-test
zonefile
=
nsec3chain-test.db
.signed
cat
>
$zonefile
<<
EOF
zonefile
=
nsec3chain-test.db
cat
>
$zonefile
<<
'
EOF
'
$TTL
10
@ 10 SOA ns2 hostmaster 0 3600 1200 864000 1200
@ 10 NS ns2
@ 10 NS ns3
ns2 10 A 10.53.0.2
ns3 10 A 10.53.0.3
EOF
awk
'END { for (i = 0; i <
10
00; i++)
awk
'END { for (i = 0; i <
3
00; i++)
print "host" i, 10, "NS", "ns.elsewhere"; }'
< /dev/null
>>
$zonefile
k
=
`
$KEYGEN
-q
-r
$RANDFILE
-a
RSASHA256
-b
1024
-n
zone
-fk
$zone
`
k
=
`
$KEYGEN
-q
-r
$RANDFILE
-a
RSASHA256
-b
1024
-n
zone
$zone
`
key1
=
`
$KEYGEN
-q
-r
$RANDFILE
-a
RSASHA256
-b
1024
-n
zone
-fk
$zone
`
key2
=
`
$KEYGEN
-q
-r
$RANDFILE
-a
RSASHA256
-b
1024
-n
zone
$zone
`
cat
$key1
.key
$key2
.key
>>
$zonefile
$SIGNER
-P
-3
-
-A
-H
1
-g
-r
$RANDFILE
-o
$zone
-k
$key1
$zonefile
$key2
>
/dev/null
bin/tests/system/dnssec/tests.sh
View file @
c2265bd3
...
...
@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.8
5
2011/03/21
07:26:47 each
Exp $
# $Id: tests.sh,v 1.8
6
2011/03/21
20:31:22 marka
Exp $
SYSTEMTESTTOP
=
..
.
$SYSTEMTESTTOP
/conf.sh
...
...
@@ -1292,22 +1292,20 @@ ret=0
(
echo
zone nsec3chain-test
echo
server 10.53.0.2 5300
grep
DNSKEY ns2/Knsec3chain-test.
*
.key |
sed
-e
's/.*://'
-e
's/^/update add /'
-e
's/IN/300 IN/'
echo
update add nsec3chain-test. 0 nsec3param 1 0 1 -
echo
update add nsec3chain-test. 0 nsec3param 1 0 1 123456
echo
send
)
|
$NSUPDATE
for
i
in
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
do
$DIG
$DIGOPTS
nsec3param nsec3chain-test @10.53.0.2
>
dig.out.ns2.test
$n
||
ret
=
1
if
grep
"ANSWER:
2
,"
dig.out.ns2.test
$n
>
/dev/null
if
grep
"ANSWER:
3
,"
dig.out.ns2.test
$n
>
/dev/null
then
break
;
fi
echo
"I:sleeping ...."
sleep
3
done
;
grep
"ANSWER:
2
,"
dig.out.ns2.test
$n
>
/dev/null
||
ret
=
1
grep
"ANSWER:
3
,"
dig.out.ns2.test
$n
>
/dev/null
||
ret
=
1
if
[
$ret
!=
0
]
;
then
echo
"I:nsec3 chain generation not complete"
;
fi
sleep
3
$DIG
$DIGOPTS
+noauth +nodnssec soa nsec3chain-test @10.53.0.2
>
dig.out.ns2.test
$n
||
ret
=
1
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment