| /src/external/mpl/bind/dist/bin/tests/system/rrsetorder/ |
| tests.sh | 22 "$DIG" $DIGOPTS -p "${PORT}" "$@" | grep -v '^;' 44 dig_cmd @10.53.0.1 fixed.example >dig.out.fixed || ret=1 45 diff dig.out.fixed reference.dig.out.fixed.good >/dev/null || ret=1 55 dig_cmd @10.53.0.1 fixed.example >dig.out.fixed || ret=1 57 cp dig.out.fixed dig.out.$j 59 diff dig.out.fixed dig.out.$j >/dev/null && matches=$((matches + 1)) 62 diff dig.out.0 dig.out.1 >/dev/null && ret= [all...] |
| /src/external/mpl/bind/bin/dig/ |
| Makefile | 5 PROG= dig 6 SRCS= dig.c dighost.c 9 DIST=${IDIST}/bin/dig
|
| /src/external/mpl/bind/dist/bin/tests/system/ednscompliance/ |
| tests.sh | 27 $DIG $DIGOPTS @10.53.0.1 +qr +edns=100 soa $zone >dig.out$n || ret=1 28 grep "EDNS: version: 100," dig.out$n >/dev/null || { 38 $DIG $DIGOPTS @10.53.0.1 +qr +ednsopt=100 soa $zone >dig.out$n || ret=1 39 grep "; OPT=100" dig.out$n >/dev/null || { 49 $DIG $DIGOPTS @10.53.0.1 +qr +ednsflags=0x80 soa $zone >dig.out$n || ret=1 50 grep "MBZ: 0x0080," dig.out$n >/dev/null || { 60 $DIG $DIGOPTS @10.53.0.1 +edns=100 +nsid +noednsnegotiation soa $zone >dig.out$n || ret= [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/cookie/ |
| tests.sh | 61 $DIG $DIGOPTS +qr +header-only +nocookie version.bind txt ch @10.53.0.1 >dig.out.test$n || ret=1 62 grep COOKIE: dig.out.test$n >/dev/null && ret=1 63 grep "status: FORMERR" dig.out.test$n >/dev/null || ret=1 70 $DIG $DIGOPTS +qr +header-only +cookie version.bind txt ch @10.53.0.1 >dig.out.test$n || ret=1 71 grep COOKIE: dig.out.test$n >/dev/null || ret=1 72 grep "status: NOERROR" dig.out.test$n >/dev/null || ret=1 79 $DIG $DIGOPTS +cookie version.bind txt ch @10.53.0.1 >dig.out.test$n || ret= [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/auth/ |
| tests.sh | 28 $DIG $DIGOPTS @10.53.0.2 soa $zone >dig.out.test$n || ret=1 29 grep "ANSWER: 1," dig.out.test$n >/dev/null || ret=1 44 $DIG $DIGOPTS +norec @10.53.0.1 www.example.com >dig.out.test$n || ret=1 45 grep "ANSWER: 1," dig.out.test$n >/dev/null || ret=1 46 grep "flags: qr aa;" dig.out.test$n >/dev/null || ret=1 47 grep "www.example.com.*CNAME.*server.example.net" dig.out.test$n >/dev/null || ret=1 48 grep "server.example.net.*A.*10.53.0.100" dig.out.test$n >/dev/null && ret=1 55 $DIG $DIGOPTS +rec @10.53.0.1 www.example.com >dig.out.test$n || ret= [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/rootkeysentinel/ |
| tests.sh | 21 rm -f dig.out.* 40 $DIG $DIGOPTS . dnskey +short +rrcomm @10.53.0.1 >dig.out.ns1.test$n || ret=1 41 oldid=$(sed -n 's/.*key id = //p' <dig.out.ns1.test$n) 52 $DIG $DIGOPTS @10.53.0.2 example SOA >dig.out.ns2.test$n || ret=1 53 grep "status: NOERROR" dig.out.ns2.test$n >/dev/null || ret=1 58 $DIG $DIGOPTS @10.53.0.3 example SOA >dig.out.ns3.test$n || ret=1 59 grep "status: NOERROR" dig.out.ns3.test$n >/dev/null || ret= [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/additional/ |
| tests.sh | 28 $DIG $DIGOPTS +rec -t RT rt.rt.example @10.53.0.1 >dig.out.$n || ret=1 37 $DIG $DIGOPTS +rec -t RT rt.rt2.example @10.53.0.1 >dig.out.$n || ret=1 46 $DIG $DIGOPTS +rec -t NAPTR nap.naptr.example @10.53.0.1 >dig.out.$n || ret=1 55 $DIG $DIGOPTS +rec -t NAPTR nap.hang3b.example @10.53.0.1 >dig.out.$n || ret=1 64 $DIG $DIGOPTS +rec -t LP nid2.nid.example @10.53.0.1 >dig.out.$n || ret= [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/chain/ |
| tests.sh | 25 $DIG $DIGOPTS "@${SERVER}" "${COMMAND_ARGS}.${COMMAND}._control." TXT +time=5 +tries=1 +tcp >/dev/null 2>&1 34 $DIG $DIGOPTS a.short-dname.example @10.53.0.2 a >dig.out.ns2.short || ret=1 35 grep "status: NOERROR" dig.out.ns2.short >/dev/null || ret=1 43 $DIG $DIGOPTS a.short-dname.example @10.53.0.7 a >dig.out.ns4.short || ret=1 44 grep "status: NOERROR" dig.out.ns4.short >/dev/null || ret=1 51 $DIG $DIGOPTS a.long-dname.example @10.53.0.2 a >dig.out.ns2.long || ret=1 52 grep "status: NOERROR" dig.out.ns2.long >/dev/null || ret= [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/resolver/ |
| tests.sh | 20 "${DIG}" -p "${PORT}" "${@}" 33 dig_with_opts +tcp nxdomain.example.net @10.53.0.1 a >dig.out.ns1.test${n} || ret=1 34 grep "status: NXDOMAIN" dig.out.ns1.test${n} >/dev/null || ret=1 41 dig_with_opts +tcp nodata.example.net @10.53.0.1 a >dig.out.ns1.test${n} || ret=1 42 grep "status: NOERROR" dig.out.ns1.test${n} >/dev/null || ret=1 51 # 'resolver-query-timeout' is set to 5 seconds in ns1, so dig with a lower 56 dig_with_opts +tcp +tries=1 +timeout=3 noresponse.example.net @10.53.0.1 a >dig.out.ns1.test${n} && ret=1 57 grep -F "no servers could be reached" dig.out.ns1.test${n} >/dev/null || ret=1 58 grep -F "EDE: 22 (No Reachable Authority)" dig.out.ns1.test${n} >/dev/null && ret=1 69 dig_with_opts +tcp +tries=1 +timeout=7 noresponse.example.net @10.53.0.1 a >dig.out.ns1.test${n} || ret= [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/tsig/ |
| tests.sh | 35 $DIG $DIGOPTS example.nil. -y "md5:$md5" @10.53.0.1 soa >dig.out.md5.old || ret=1 36 grep -i "md5.*TSIG.*NOERROR" dig.out.md5.old >/dev/null || ret=1 44 $DIG $DIGOPTS example.nil. -y "hmac-md5:md5:$md5" @10.53.0.1 soa >dig.out.md5.new || ret=1 45 grep -i "md5.*TSIG.*NOERROR" dig.out.md5.new >/dev/null || ret=1 56 $DIG $DIGOPTS example.nil. -y "hmac-sha1:sha1:$sha1" @10.53.0.1 soa >dig.out.sha1 || ret=1 57 grep -i "sha1.*TSIG.*NOERROR" dig.out.sha1 >/dev/null || ret=1 65 $DIG $DIGOPTS example.nil. -y "hmac-sha224:sha224:$sha224" @10.53.0.1 soa >dig.out.sha224 || ret= [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/redirect/ |
| tests.sh | 21 rm -f dig.out.* 46 $DIG $DIGOPTS nonexist. @10.53.0.2 -b 10.53.0.2 a >dig.out.ns2.test$n || ret=1 47 grep "status: NOERROR" dig.out.ns2.test$n >/dev/null || ret=1 48 grep "100.100.100.1" dig.out.ns2.test$n >/dev/null || ret=1 58 $DIG $DIGOPTS nonexist. @10.53.0.2 -b 10.53.0.2 a >dig.out.ns2.test$n || ret=1 69 $DIG $DIGOPTS nonexist. @10.53.0.2 -b 10.53.0.2 aaaa >dig.out.ns2.test$n || ret=1 70 grep "status: NOERROR" dig.out.ns2.test$n >/dev/null || ret= [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/dns64/ |
| tests.sh | 21 rm -f dig.out.* 47 $DIG $DIGOPTS aaaa-only.example. @10.53.0.2 -b 10.53.0.2 aaaa >dig.out.ns2.test$n || ret=1 48 grep "status: NOERROR" dig.out.ns2.test$n >/dev/null || ret=1 49 grep "2001::2" dig.out.ns2.test$n >/dev/null || ret=1 56 $DIG $DIGOPTS excluded-only.example. @10.53.0.2 -b 10.53.0.2 aaaa >dig.out.ns2.test$n || ret=1 57 grep "status: NOERROR" dig.out.ns2.test$n >/dev/null || ret=1 58 grep "ANSWER: 0," dig.out.ns2.test$n >/dev/null || ret=1 65 $DIG $DIGOPTS excluded-bad-a.example. @10.53.0.2 -b 10.53.0.2 aaaa >dig.out.ns2.test$n || ret= [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/keepalive/ |
| tests_keepalive.py | 31 dig = isctest.run.EnvCmd("DIG", f"-p {str(named_port)}") 33 isctest.log.info("check that dig handles TCP keepalive in query") 34 assert "; TCP-KEEPALIVE" in dig("+qr +keepalive foo.example. @10.53.0.2").out 36 isctest.log.info("check that dig added TCP keepalive was received") 40 assert "; TCP-KEEPALIVE" in dig("+tcp +keepalive foo.example. @10.53.0.2").out 43 assert "; TCP-KEEPALIVE" not in dig("+keepalive foo.example. @10.53.0.2").out 48 in dig("+tcp +keepalive foo.example. @10.53.0.3").out 54 in dig("+tcp +keepalive foo.example. @10.53.0.2").out 65 in dig("+tcp +keepalive foo.example. @10.53.0.2").ou [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/legacy/ |
| tests.sh | 24 $DIG $DIGOPTS +tcp +tries=3 +time=5 @10.53.0.1 ${1} SOA >dig.out.test$n || _ret=1 25 grep "status: NOERROR" dig.out.test$n >/dev/null || _ret=1 32 # code of dig does not influence the result (the exit code for a SERVFAIL 37 $DIG $DIGOPTS +tcp +time=5 @10.53.0.1 ${1} TXT >dig.out.test$n || true 38 grep -F "status: SERVFAIL" dig.out.test$n >/dev/null && _servfail=1 39 grep -F "timed out" dig.out.test$n >/dev/null && _timeout=1 53 $DIG $DIGOPTS +edns @10.53.0.8 ednsformerr soa >dig.out.1.test$n || ret= [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/wildcard/ |
| tests.sh | 21 rm -f dig.out.* 28 $DIG $DIGOPTS a b.wild.nsec +norec @10.53.0.1 >dig.out.ns1.test$n || ret=1 29 grep -i 'a\.wild\.nsec\..*NSEC.*nsec\..*NSEC' dig.out.ns1.test$n >/dev/null || ret=1 36 $DIG $DIGOPTS a b.wild.nsec @10.53.0.2 >dig.out.ns2.test$n || ret=1 37 grep -i 'a\.wild\.nsec\..*NSEC.*nsec\..*NSEC' dig.out.ns2.test$n >/dev/null || ret=1 38 grep -i 'flags:.* ad[ ;]' dig.out.ns2.test$n >/dev/null && ret=1 45 $DIG $DIGOPTS a b.wild.nsec @10.53.0.3 >dig.out.ns3.test$n || ret= [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/serve_stale/ |
| tests.sh | 19 DIG="$DIG +time=12 +tries=1" 41 $DIG -p ${PORT} @10.53.0.7 aliasnx.source.stale A >dig.out.test$n || ret=1 42 grep "status: NXDOMAIN" dig.out.test$n >/dev/null || ret=1 43 grep "ANSWER: 1," dig.out.test$n >/dev/null || ret=1 52 $DIG -p ${PORT} @10.53.0.2 txt disable >dig.out.test$n || ret=1 53 grep "ANSWER: 1," dig.out.test$n >/dev/null || ret=1 54 grep "TXT.\"0\"" dig.out.test$n >/dev/null || ret= [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/doth/ |
| tests.sh | 52 "$DIG" +tls $common_dig_options -p "${TLSPORT}" "$@" 57 "$DIG" +https $common_dig_options -p "${HTTPSPORT}" "$@" 62 "$DIG" +http-plain $common_dig_options -p "${HTTPPORT}" "$@" 67 "$DIG" $common_dig_options -p "${PORT}" "$@" 75 # Let's bind to .10 to make it possible to easily distinguish dig from NSs in packet traces 76 dig_with_tls_opts -b 10.53.0.10 "@10.53.0.$srv_number" "${zone_name}." AXFR >"dig.out.ns$srv_number.${zone_name}.test$n" || return 1 77 grep "^;" "dig.out.ns$srv_number.${zone_name}.test$n" >/dev/null && return 1 85 echo_i "testing XoT server functionality (using dig) ($n)" 87 dig_with_tls_opts example. -b 10.53.0.10 @10.53.0.1 axfr >dig.out.ns1.test$n || ret=1 88 grep "^;" dig.out.ns1.test$n | cat_ [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/autosign/ |
| tests.sh | 31 $DIG $DIGOPTS +nodnssec +short @$2 -t ${4:-type65534} $1 | cut -f3 -d' ' \ 153 $DIG $DIGOPTS . @10.53.0.1 dnskey >dig.out.ns1.test$n.dnskey || ret=1 154 grep "ANSWER: 11," dig.out.ns1.test$n.dnskey >/dev/null || ret=1 156 $DIG $DIGOPTS $z @10.53.0.1 nsec >dig.out.ns1.test$n.nsec || ret=1 157 grep "NS SOA" dig.out.ns1.test$n.nsec >/dev/null || ret=1 160 $DIG $DIGOPTS $z @10.53.0.2 nsec >dig.out.ns2.test$n.$z || ret=1 161 grep "NS SOA" dig.out.ns2.test$n.$z >/dev/null || ret= [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/acl/ |
| tests.sh | 27 $DIG $DIGOPTS tsigzone. \ 28 @10.53.0.2 -b 10.53.0.1 axfr -y "${DEFAULT_HMAC}:one:1234abcd8765" >dig.out.${t} 29 grep "^;" dig.out.${t} >/dev/null 2>&1 || { 36 $DIG $DIGOPTS tsigzone. \ 37 @10.53.0.2 -b 10.53.0.1 axfr -y "${DEFAULT_HMAC}:two:1234abcd8765" >dig.out.${t} 38 grep "^;" dig.out.${t} >/dev/null 2>&1 && { 49 $DIG $DIGOPTS tsigzone. \ 50 @10.53.0.2 -b 10.53.0.1 axfr -y "${DEFAULT_HMAC}:one:1234abcd8765" >dig.out.${t} 51 grep "^;" dig.out.${t} >/dev/null 2>&1 || { 58 $DIG $DIGOPTS tsigzone. [all...] |
| /src/external/bsd/iscsi/dist/src/lib/ |
| strtoll.c | 49 char *dig; local 52 for (ret = 0, cp = ptr ; *cp && (dig = strchr(digits, *cp)) != NULL && (d = (int)(dig - digits)) < base ; cp++) {
|
| /src/external/mpl/bind/dist/bin/tests/system/integrity/ |
| tests.sh | 25 $DIG $DIGOPTS @10.53.0.1 mx mx-cname-fail >dig.out.test$n || ret=1 26 grep "status: SERVFAIL," dig.out.test$n >/dev/null || ret=1 34 $DIG $DIGOPTS @10.53.0.1 mx mx-cname-warn >dig.out.test$n || ret=1 35 grep "status: NOERROR," dig.out.test$n >/dev/null || ret=1 43 $DIG $DIGOPTS @10.53.0.1 mx mx-cname-ignore >dig.out.test$n || ret=1 44 grep "status: NOERROR," dig.out.test$n >/dev/null || ret=1 52 $DIG $DIGOPTS @10.53.0.1 mx no-mx-cname-fail >dig.out.test$n || ret= [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/case/ |
| tests.sh | 21 $DIG $DIGOPTS "@$1" "$2" SOA >"$4" 33 $DIG $DIGOPTS soa example. @10.53.0.2 >dig.ns2.test$n || true 34 grep SOA dig.ns2.test$n >/dev/null && break 38 $DIG $DIGOPTS soa dynamic. @10.53.0.2 >dig.ns2.test$n || true 39 grep SOA dig.ns2.test$n >/dev/null && break 46 $DIG $DIGOPTS mx example. @10.53.0.1 >dig.ns1.test$n || ret=1 47 grep "0.mail.eXaMpLe" dig.ns1.test$n >/dev/null || ret= [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/staticstub/ |
| tests.sh | 45 $DIG $DIGOPTS +tcp data.example. @10.53.0.2 axfr >dig.out.ns2.test$n || ret=1 46 grep "; Transfer failed." dig.out.ns2.test$n >/dev/null || ret=1 53 $DIG $DIGOPTS +tcp +norec data.example. @10.53.0.2 txt >dig.out.ns2.test$n \ 55 grep "REFUSED" dig.out.ns2.test$n >/dev/null || ret=1 62 $DIG $DIGOPTS +tcp +norec data.example.org. @10.53.0.2 txt >dig.out.ns2.test$n \ 64 grep "REFUSED" dig.out.ns2.test$n >/dev/null || ret=1 71 $DIG $DIGOPTS +tcp +norec data.example. @10.53.0.2 txt -b 10.53.0.7 [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/ixfr/ |
| tests.sh | 24 $DIG $DIGOPTS "@$1" "$2" SOA >"$4" 37 $DIG $DIGOPTS "@10.53.0.2" "${RESPONSES_KEY}.switch._control." TXT +time=5 +tries=1 +tcp >/dev/null 2>&1 63 retry_quiet 10 wait_for_serial 10.53.0.1 nil. 1 dig.out.test$n || ret=1 65 $DIG $DIGOPTS @10.53.0.1 nil. TXT | grep 'initial AXFR' >/dev/null || ret=1 84 $DIG $DIGOPTS @10.53.0.1 nil. TXT | grep 'successful IXFR' >/dev/null || ret=1 101 $DIG $DIGOPTS @10.53.0.1 nil. TXT | grep 'fallback AXFR' >/dev/null || ret=1 118 $DIG $DIGOPTS @10.53.0.1 nil. TXT | grep 'AXFR on too many records' >/dev/null || ret=1 146 $DIG $DIGOPTS +tries=1 +time=1 @10.53.0.1 test.nil. TXT >dig.out.test$n.1 \ 147 && grep -q -F "serial 4" dig.out.test$n. [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/mirror/ |
| tests.sh | 82 $DIG $DIGOPTS @10.53.0.3 +norec verify-unsigned SOA >dig.out.ns3.test$n 2>&1 || ret=1 83 grep "ANSWER: 0" dig.out.ns3.test$n >/dev/null || ret=1 84 grep "${ORIGINAL_SERIAL}.*; serial" dig.out.ns3.test$n >/dev/null && ret=1 95 $DIG $DIGOPTS @10.53.0.3 +norec verify-untrusted SOA >dig.out.ns3.test$n 2>&1 || ret=1 96 grep "ANSWER: 0" dig.out.ns3.test$n >/dev/null || ret=1 97 grep "${ORIGINAL_SERIAL}.*; serial" dig.out.ns3.test$n >/dev/null && ret=1 108 $DIG $DIGOPTS @10.53.0.3 +norec verify-csk SOA >dig.out.ns3.test$n 2>&1 || ret= [all...] |