summaryrefslogtreecommitdiffstats
path: root/bin/tests/system/checkds/dig.bat
blob: bf07a4f1538b71355bb2036e8f903055c5c4e89e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
set ext=
set file=

:loop
@set arg=%1
if "%arg%" == "" goto end
if "%arg:~0,1%" == "+" goto next
if "%arg%" == "-t" goto next
if "%arg%" == "ds" goto ds
if "%arg%" == "DS" goto ds
if "%arg%" == "dlv" goto dlv
if "%arg%" == "DLV" goto dlv
if "%arg%" == "dnskey" goto dnskey
if "%arg%" == "DNSKEY" goto dnskey
set file=%arg%
goto next

:ds
set ext=ds
goto next

:dlv
set ext=dlv
goto next

:dnskey
set ext=dnskey
goto next

:next
shift
goto loop

:end

set name=%file%.%ext%.db
type %name%