Compare commits

..

4 Commits

Author SHA1 Message Date
AJ ONeal b5ec1f7982 Merge branch 'master' of ssh://git.coolaj86.com:22042/coolaj86/digd.js 2017-11-04 21:13:16 -06:00
AJ ONeal 42d3e8a072 Merge branch 'v1' 2017-11-03 15:42:17 -06:00
AJ ONeal 4ffdf5b59d Merge branch 'v1' 2017-11-03 12:19:51 -06:00
AJ ONeal 93e5c80ab4 add tests for CNAME and CNAME return on A/AAAA 2017-11-03 11:53:50 -06:00
1 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,7 @@ $digcmd @$ns -p $port NS in-delegated.example.com
# should return records in ANSWER section, nothing else # should return records in ANSWER section, nothing else
$digcmd @$ns -p $port A example.com $digcmd @$ns -p $port A example.com
$digcmd @$ns -p $port AAAA example.com $digcmd @$ns -p $port AAAA example.com
$digcmd @$ns -p $port CNAME example.com
$digcmd @$ns -p $port MX example.com $digcmd @$ns -p $port MX example.com
$digcmd @$ns -p $port SRV example.com $digcmd @$ns -p $port SRV example.com
$digcmd @$ns -p $port TXT example.com $digcmd @$ns -p $port TXT example.com
@ -101,6 +102,8 @@ $digcmd @$ns -p $port NS doesntexist.example.com
# should return record of correct type in ANSWER section, nothing else # should return record of correct type in ANSWER section, nothing else
$digcmd @$ns -p $port A a.example.com $digcmd @$ns -p $port A a.example.com
$digcmd @$ns -p $port AAAA aaaa.example.com $digcmd @$ns -p $port AAAA aaaa.example.com
$digcmd @$ns -p $port CNAME cname.example.com
$digcmd @$ns -p $port A cname.example.com # Special Case, should return CNAME record
$digcmd @$ns -p $port MX mx.example.com $digcmd @$ns -p $port MX mx.example.com
$digcmd @$ns -p $port SRV srv.example.com $digcmd @$ns -p $port SRV srv.example.com
$digcmd @$ns -p $port TXT txt.example.com $digcmd @$ns -p $port TXT txt.example.com