Home | History | Annotate | Download | only in nslookup

Lines Matching refs:nslookup

28 $NSLOOKUP -port=${PORT} -domain=$d -type=soa example 10.53.0.1 2>nslookup.err${n} >nslookup.out${n} || ret=1
29 lines=$(wc -l <nslookup.err${n})
31 grep "origin = ns1.example" nslookup.out${n} >/dev/null || ret=1
38 $NSLOOKUP -port=${PORT} a-only.example.net 10.53.0.1 2>nslookup.err${n} >nslookup.out${n} || ret=1
39 lines=$(wc -l <nslookup.err${n})
41 lines=$(grep -c "Server:" nslookup.out${n})
43 lines=$(grep -c a-only.example.net nslookup.out${n})
45 grep "1.2.3.4" nslookup.out${n} >/dev/null || ret=1
52 $NSLOOKUP -port=${PORT} aaaa-only.example.net 10.53.0.1 2>nslookup.err${n} >nslookup.out${n} || ret=1
53 lines=$(wc -l <nslookup.err${n})
55 lines=$(grep -c "Server:" nslookup.out${n})
57 lines=$(grep -c aaaa-only.example.net nslookup.out${n})
59 grep "2001::ffff" nslookup.out${n} >/dev/null || ret=1
66 $NSLOOKUP -port=${PORT} dual.example.net 10.53.0.1 2>nslookup.err${n} >nslookup.out${n} || ret=1
67 lines=$(wc -l <nslookup.err${n})
69 lines=$(grep -c "Server:" nslookup.out${n})
71 lines=$(grep -c dual.example.net nslookup.out${n})
73 grep "1.2.3.4" nslookup.out${n} >/dev/null || ret=1
74 grep "2001::ffff" nslookup.out${n} >/dev/null || ret=1
81 $NSLOOKUP -port=${PORT} cname-a-only.example.net 10.53.0.1 2>nslookup.err${n} >nslookup.out${n} || ret=1
82 lines=$(wc -l <nslookup.err${n})
84 lines=$(grep -c "Server:" nslookup.out${n})
86 lines=$(grep -c "canonical name" nslookup.out${n})
88 lines=$(grep a-only.example.net nslookup.out${n} | grep -cEv "(canonical name|^;;)")
90 grep "1.2.3.4" nslookup.out${n} >/dev/null || ret=1
97 $NSLOOKUP -port=${PORT} cname-aaaa-only.example.net 10.53.0.1 2>nslookup.err${n} >nslookup.out${n} || ret=1
98 lines=$(wc -l <nslookup.err${n})
100 lines=$(grep -c "Server:" nslookup.out${n})
102 lines=$(grep -c "canonical name" nslookup.out${n})
104 lines=$(grep aaaa-only.example.net nslookup.out${n} | grep -cEv "(canonical name|^;;)")
106 grep "2001::ffff" nslookup.out${n} >/dev/null || ret=1
113 $NSLOOKUP -port=${PORT} cname-dual.example.net 10.53.0.1 2>nslookup.err${n} >nslookup.out${n} || ret=1
114 lines=$(wc -l <nslookup.err${n})
116 lines=$(grep -c "Server:" nslookup.out${n})
118 lines=$(grep -c "canonical name" nslookup.out${n})
120 lines=$(grep dual.example.net nslookup.out${n} | grep -cEv "(canonical name|^;;)")
122 grep "1.2.3.4" nslookup.out${n} >/dev/null || ret=1
123 grep "2001::ffff" nslookup.out${n} >/dev/null || ret=1
130 $NSLOOKUP -port=${PORT} -type=ANY example.net 10.53.0.1 2>nslookup.err${n} >nslookup.out${n} || ret=1
131 lines=$(grep -c 'Address:.10\.53\.0\.1#'"${PORT}" nslookup.out${n})
133 lines=$(grep -c 'origin = ns1\.example\.net' nslookup.out${n})
135 lines=$(grep -c 'mail addr = hostmaster\.example\.net' nslookup.out${n})
137 lines=$(grep -c 'nameserver = ns1\.example\.net.' nslookup.out${n})