chiark / gitweb /
regress: Test MX whose addr has one tempfailing AF
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 18 Feb 2015 23:42:21 +0000 (23:42 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 21 Feb 2015 11:49:03 +0000 (11:49 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
regress/case-huasenchem.err [new file with mode: 0644]
regress/case-huasenchem.in [new file with mode: 0755]
regress/case-huasenchem.out [new file with mode: 0644]
regress/case-huasenchem.sys [new file with mode: 0644]

diff --git a/regress/case-huasenchem.err b/regress/case-huasenchem.err
new file mode 100644 (file)
index 0000000..2886e3c
--- /dev/null
@@ -0,0 +1 @@
+adns debug: using nameserver 172.18.45.6
diff --git a/regress/case-huasenchem.in b/regress/case-huasenchem.in
new file mode 100755 (executable)
index 0000000..51fc369
--- /dev/null
@@ -0,0 +1,16 @@
+--type a
+huasenchem.com
+--type aaaa
+huasenchem.com
+--type ns
+huasenchem.com
+--type mx
+huasenchem.com
+--type ptr
+huasenchem.com
+--type cname
+huasenchem.com
+--type soa
+huasenchem.com
+--type txt
+huasenchem.com
diff --git a/regress/case-huasenchem.out b/regress/case-huasenchem.out
new file mode 100644 (file)
index 0000000..b54bda7
--- /dev/null
@@ -0,0 +1,13 @@
+4 0 misquery 200 querydomainwrong huasenchem.com $ "Domain invalid for particular DNS query type"
+6 1 ok 0 ok huasenchem.com $ "OK"
+huasenchem.com SOA ns1.51dns.com dnsadmin@51dns.com 1421895306 28800 3600 604800 86400
+0 1 ok 0 ok huasenchem.com $ "OK"
+huasenchem.com A 104.216.47.20
+1 0 tempfail 60 rcodeservfail huasenchem.com $ "Nameserver reports failure"
+3 0 tempfail 60 rcodeservfail huasenchem.com $ "Nameserver reports failure"
+5 0 tempfail 60 rcodeservfail huasenchem.com $ "Nameserver reports failure"
+7 0 tempfail 60 rcodeservfail huasenchem.com $ "Nameserver reports failure"
+2 2 ok 0 ok huasenchem.com $ "OK"
+huasenchem.com NS ns2.51dns.com tempfail 60 rcodeservfail "Nameserver reports failure" ?
+huasenchem.com NS ns1.51dns.com tempfail 60 rcodeservfail "Nameserver reports failure" ?
+rc=0
diff --git a/regress/case-huasenchem.sys b/regress/case-huasenchem.sys
new file mode 100644 (file)
index 0000000..3fec521
--- /dev/null
@@ -0,0 +1,402 @@
+././adnshost default
+-f -a
+ start 1424302889.352838
+ socket domain=AF_INET type=SOCK_DGRAM
+ socket=6
+ +0.000136
+ fcntl fd=6 cmd=F_GETFL
+ fcntl=~O_NONBLOCK&...
+ +0.000048
+ fcntl fd=6 cmd=F_SETFL O_NONBLOCK|...
+ fcntl=OK
+ +0.000041
+ select max=7 rfds=[0,6] wfds=[] efds=[] to=null
+ select=1 rfds=[0] wfds=[] efds=[]
+ +0.000089
+ read fd=0 buflen=40
+ read=OK
+     2d2d7479 70652061 0a687561 73656e63 68656d2e 636f6d0a 2d2d7479 70652061
+     6161610a 68756173.
+ +0.000097
+ sendto fd=6 addr=172.18.45.6:53
+     311f0100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00010001.
+ sendto=32
+ +0.000213
+ read fd=0 buflen=36
+ read=OK
+     656e6368 656d2e63 6f6d0a2d 2d747970 65206e73 0a687561 73656e63 68656d2e
+     636f6d0a.
+ +0.000121
+ sendto fd=6 addr=172.18.45.6:53
+     31200100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 001c0001.
+ sendto=32
+ +0.000144
+ sendto fd=6 addr=172.18.45.6:53
+     31210100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00020001.
+ sendto=32
+ +0.000156
+ select max=7 rfds=[0,6] wfds=[] efds=[] to=1.999366
+ select=1 rfds=[0] wfds=[] efds=[]
+ +0.000099
+ read fd=0 buflen=40
+ read=OK
+     2d2d7479 7065206d 780a6875 6173656e 6368656d 2e636f6d 0a2d2d74 79706520
+     7074720a 68756173.
+ +0.000120
+ sendto fd=6 addr=172.18.45.6:53
+     31220100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 000f0001.
+ sendto=32
+ +0.000172
+ read fd=0 buflen=36
+ read=OK
+     656e6368 656d2e63 6f6d0a2d 2d747970 6520636e 616d650a 68756173 656e6368
+     656d2e63.
+ +0.000117
+ read fd=0 buflen=28
+ read=OK
+     6f6d0a2d 2d747970 6520736f 610a6875 6173656e 6368656d 2e636f6d.
+ +0.000174
+ sendto fd=6 addr=172.18.45.6:53
+     31240100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00050001.
+ sendto=32
+ +0.000132
+ read fd=0 buflen=26
+ read=OK
+     0a2d2d74 79706520 7478740a 68756173 656e6368 656d2e63 6f6d.
+ +0.000103
+ sendto fd=6 addr=172.18.45.6:53
+     31250100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00060001.
+ sendto=32
+ +0.000161
+ read fd=0 buflen=26
+ read=OK
+     0a.
+ +0.000068
+ sendto fd=6 addr=172.18.45.6:53
+     31260100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00100001.
+ sendto=32
+ +0.000167
+ select max=7 rfds=[0,6] wfds=[] efds=[] to=1.998053
+ select=1 rfds=[0] wfds=[] efds=[]
+ +0.000334
+ read fd=0 buflen=40
+ read=OK
+     .
+ +0.000058
+ select max=7 rfds=[6] wfds=[] efds=[] to=1.997661
+ select=1 rfds=[6] wfds=[] efds=[]
+ +1.092312
+ recvfrom fd=6 buflen=512
+ recvfrom=OK addr=172.18.45.6:53
+     31258180 00010001 0002000c 0a687561 73656e63 68656d03 636f6d00 00060001
+     c00c0006 00010000 170b002b 036e7331 05353164 6e73c017 08646e73 61646d69
+     6ec03054 c0668a00 00708000 000e1000 093a8000 015180c0 0c000200 01000017
+     0a000603 6e7332c0 30c00c00 02000100 00170a00 02c02cc0 2c000100 01000002
+     4600043d 833b40c0 2c000100 01000002 46000479 0c6812c0 2c000100 01000002
+     46000479 0c6813c0 2c000100 01000002 4600047d 4dc702c0 2c000100 01000002
+     4600047d 4dc703c0 2c000100 01000002 46000424 f97a80c0 63000100 01000002
+     47000479 0c6817c0 63000100 01000002 4700047d 4dc708c0 63000100 01000002
+     4700047d 4dc709c0 63000100 01000002 47000424 f97a81c0 63000100 01000002
+     4700043d 833b41c0 63000100 01000002 47000479 0c6816.
+ +0.000785
+ recvfrom fd=6 buflen=512
+ recvfrom=EAGAIN
+ +0.000138
+ select max=7 rfds=[6] wfds=[] efds=[] to=0.904426
+ select=0 rfds=[] wfds=[] efds=[]
+ +1.-94422
+ sendto fd=6 addr=172.18.45.6:53
+     311f0100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00010001.
+ sendto=32
+ +0.000231
+ sendto fd=6 addr=172.18.45.6:53
+     31200100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 001c0001.
+ sendto=32
+ +0.000146
+ sendto fd=6 addr=172.18.45.6:53
+     31210100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00020001.
+ sendto=32
+ +0.000138
+ sendto fd=6 addr=172.18.45.6:53
+     31220100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 000f0001.
+ sendto=32
+ +0.000136
+ select max=7 rfds=[6] wfds=[] efds=[] to=0.000000
+ select=0 rfds=[] wfds=[] efds=[]
+ +0.000087
+ sendto fd=6 addr=172.18.45.6:53
+     31240100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00050001.
+ sendto=32
+ +0.000206
+ sendto fd=6 addr=172.18.45.6:53
+     31260100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00100001.
+ sendto=32
+ +0.000137
+ select max=7 rfds=[6] wfds=[] efds=[] to=1.998919
+ select=1 rfds=[6] wfds=[] efds=[]
+ +0.011110
+ recvfrom fd=6 buflen=512
+ recvfrom=OK addr=172.18.45.6:53
+     311f8180 00010001 0002000c 0a687561 73656e63 68656d03 636f6d00 00010001
+     c00c0001 00010000 02480004 68d82f14 c00c0002 00010000 1709000c 036e7332
+     05353164 6e73c017 c00c0002 00010000 17090006 036e7331 c040c054 00010001
+     00000245 000424f9 7a80c054 00010001 00000245 00043d83 3b40c054 00010001
+     00000245 0004790c 6812c054 00010001 00000245 0004790c 6813c054 00010001
+     00000245 00047d4d c702c054 00010001 00000245 00047d4d c703c03c 00010001
+     00000246 0004790c 6816c03c 00010001 00000246 0004790c 6817c03c 00010001
+     00000246 00047d4d c708c03c 00010001 00000246 00047d4d c709c03c 00010001
+     00000246 000424f9 7a81c03c 00010001 00000246 00043d83 3b41.
+ +0.000580
+ recvfrom fd=6 buflen=512
+ recvfrom=EAGAIN
+ +0.000123
+ select max=7 rfds=[6] wfds=[] efds=[] to=1.987106
+ select=1 rfds=[6] wfds=[] efds=[]
+ +0.022653
+ recvfrom fd=6 buflen=512
+ recvfrom=OK addr=172.18.45.6:53
+     31218180 00010002 0000000c 0a687561 73656e63 68656d03 636f6d00 00020001
+     c00c0002 00010000 1709000c 036e7332 05353164 6e73c017 c00c0002 00010000
+     17090006 036e7331 c030c044 00010001 00000245 00047d4d c703c044 00010001
+     00000245 000424f9 7a80c044 00010001 00000245 00043d83 3b40c044 00010001
+     00000245 0004790c 6812c044 00010001 00000245 0004790c 6813c044 00010001
+     00000245 00047d4d c702c02c 00010001 00000246 00043d83 3b41c02c 00010001
+     00000246 0004790c 6816c02c 00010001 00000246 0004790c 6817c02c 00010001
+     00000246 00047d4d c708c02c 00010001 00000246 00047d4d c709c02c 00010001
+     00000246 000424f9 7a81.
+ +0.000519
+ sendto fd=6 addr=172.18.45.6:53
+     31280100 00010000 00000000 036e7332 05353164 6e730363 6f6d0000 1c0001.
+ sendto=31
+ +0.000278
+ sendto fd=6 addr=172.18.45.6:53
+     312a0100 00010000 00000000 036e7331 05353164 6e730363 6f6d0000 1c0001.
+ sendto=31
+ +0.000214
+ recvfrom fd=6 buflen=512
+ recvfrom=EAGAIN
+ +0.000066
+ select max=7 rfds=[6] wfds=[] efds=[] to=1.963376
+ select=0 rfds=[] wfds=[] efds=[]
+ +2.-34493
+ sendto fd=6 addr=172.18.45.6:53
+     31200100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 001c0001.
+ sendto=32
+ +0.000230
+ sendto fd=6 addr=172.18.45.6:53
+     31220100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 000f0001.
+ sendto=32
+ +0.000146
+ sendto fd=6 addr=172.18.45.6:53
+     31240100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00050001.
+ sendto=32
+ +0.000138
+ sendto fd=6 addr=172.18.45.6:53
+     31260100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00100001.
+ sendto=32
+ +0.000137
+ select max=7 rfds=[6] wfds=[] efds=[] to=0.032765
+ select=0 rfds=[] wfds=[] efds=[]
+ +0.032991
+ sendto fd=6 addr=172.18.45.6:53
+     31280100 00010000 00000000 036e7332 05353164 6e730363 6f6d0000 1c0001.
+ sendto=31
+ +0.000219
+ sendto fd=6 addr=172.18.45.6:53
+     312a0100 00010000 00000000 036e7331 05353164 6e730363 6f6d0000 1c0001.
+ sendto=31
+ +0.000145
+ select max=7 rfds=[6] wfds=[] efds=[] to=1.965994
+ select=0 rfds=[] wfds=[] efds=[]
+ +2.-31871
+ sendto fd=6 addr=172.18.45.6:53
+     31200100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 001c0001.
+ sendto=32
+ +0.000242
+ sendto fd=6 addr=172.18.45.6:53
+     31220100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 000f0001.
+ sendto=32
+ +0.000148
+ sendto fd=6 addr=172.18.45.6:53
+     31240100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00050001.
+ sendto=32
+ +0.000138
+ sendto fd=6 addr=172.18.45.6:53
+     31260100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00100001.
+ sendto=32
+ +0.000136
+ select max=7 rfds=[6] wfds=[] efds=[] to=0.030843
+ select=0 rfds=[] wfds=[] efds=[]
+ +0.031073
+ sendto fd=6 addr=172.18.45.6:53
+     31280100 00010000 00000000 036e7332 05353164 6e730363 6f6d0000 1c0001.
+ sendto=31
+ +0.000220
+ sendto fd=6 addr=172.18.45.6:53
+     312a0100 00010000 00000000 036e7331 05353164 6e730363 6f6d0000 1c0001.
+ sendto=31
+ +0.000245
+ select max=7 rfds=[6] wfds=[] efds=[] to=1.967798
+ select=0 rfds=[] wfds=[] efds=[]
+ +2.-30061
+ sendto fd=6 addr=172.18.45.6:53
+     31200100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 001c0001.
+ sendto=32
+ +0.000229
+ sendto fd=6 addr=172.18.45.6:53
+     31220100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 000f0001.
+ sendto=32
+ +0.000197
+ sendto fd=6 addr=172.18.45.6:53
+     31240100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00050001.
+ sendto=32
+ +0.000199
+ sendto fd=6 addr=172.18.45.6:53
+     31260100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00100001.
+ sendto=32
+ +0.000191
+ select max=7 rfds=[6] wfds=[] efds=[] to=0.028780
+ select=0 rfds=[] wfds=[] efds=[]
+ +0.029037
+ sendto fd=6 addr=172.18.45.6:53
+     31280100 00010000 00000000 036e7332 05353164 6e730363 6f6d0000 1c0001.
+ sendto=31
+ +0.000219
+ sendto fd=6 addr=172.18.45.6:53
+     312a0100 00010000 00000000 036e7331 05353164 6e730363 6f6d0000 1c0001.
+ sendto=31
+ +0.000192
+ select max=7 rfds=[6] wfds=[] efds=[] to=1.969736
+ select=0 rfds=[] wfds=[] efds=[]
+ +2.-28091
+ sendto fd=6 addr=172.18.45.6:53
+     31200100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 001c0001.
+ sendto=32
+ +0.000227
+ sendto fd=6 addr=172.18.45.6:53
+     31220100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 000f0001.
+ sendto=32
+ +0.000194
+ sendto fd=6 addr=172.18.45.6:53
+     31240100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00050001.
+ sendto=32
+ +0.000199
+ sendto fd=6 addr=172.18.45.6:53
+     31260100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00100001.
+ sendto=32
+ +0.000186
+ select max=7 rfds=[6] wfds=[] efds=[] to=0.026874
+ select=0 rfds=[] wfds=[] efds=[]
+ +0.027142
+ sendto fd=6 addr=172.18.45.6:53
+     31280100 00010000 00000000 036e7332 05353164 6e730363 6f6d0000 1c0001.
+ sendto=31
+ +0.000217
+ sendto fd=6 addr=172.18.45.6:53
+     312a0100 00010000 00000000 036e7331 05353164 6e730363 6f6d0000 1c0001.
+ sendto=31
+ +0.000194
+ select max=7 rfds=[6] wfds=[] efds=[] to=1.971641
+ select=0 rfds=[] wfds=[] efds=[]
+ +2.-26204
+ sendto fd=6 addr=172.18.45.6:53
+     31200100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 001c0001.
+ sendto=32
+ +0.000239
+ sendto fd=6 addr=172.18.45.6:53
+     31220100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 000f0001.
+ sendto=32
+ +0.000196
+ sendto fd=6 addr=172.18.45.6:53
+     31240100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00050001.
+ sendto=32
+ +0.000198
+ sendto fd=6 addr=172.18.45.6:53
+     31260100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00100001.
+ sendto=32
+ +0.000187
+ select max=7 rfds=[6] wfds=[] efds=[] to=0.024973
+ select=0 rfds=[] wfds=[] efds=[]
+ +0.025246
+ sendto fd=6 addr=172.18.45.6:53
+     31280100 00010000 00000000 036e7332 05353164 6e730363 6f6d0000 1c0001.
+ sendto=31
+ +0.000222
+ sendto fd=6 addr=172.18.45.6:53
+     312a0100 00010000 00000000 036e7331 05353164 6e730363 6f6d0000 1c0001.
+ sendto=31
+ +0.000199
+ select max=7 rfds=[6] wfds=[] efds=[] to=1.973513
+ select=1 rfds=[6] wfds=[] efds=[]
+ +1.323653
+ recvfrom fd=6 buflen=512
+ recvfrom=OK addr=172.18.45.6:53
+     31208182 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 001c0001.
+ +0.000199
+ recvfrom fd=6 buflen=512
+ recvfrom=OK addr=172.18.45.6:53
+     31228182 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 000f0001.
+ +0.000143
+ recvfrom fd=6 buflen=512
+ recvfrom=EAGAIN
+ +0.000072
+ select max=7 rfds=[6] wfds=[] efds=[] to=0.649446
+ select=0 rfds=[] wfds=[] efds=[]
+ +1.-349627
+ sendto fd=6 addr=172.18.45.6:53
+     31240100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00050001.
+ sendto=32
+ +0.000225
+ sendto fd=6 addr=172.18.45.6:53
+     31260100 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00100001.
+ sendto=32
+ +0.000145
+ select max=7 rfds=[6] wfds=[] efds=[] to=0.024769
+ select=0 rfds=[] wfds=[] efds=[]
+ +0.025017
+ sendto fd=6 addr=172.18.45.6:53
+     31280100 00010000 00000000 036e7332 05353164 6e730363 6f6d0000 1c0001.
+ sendto=31
+ +0.000219
+ sendto fd=6 addr=172.18.45.6:53
+     312a0100 00010000 00000000 036e7331 05353164 6e730363 6f6d0000 1c0001.
+ sendto=31
+ +0.000231
+ select max=7 rfds=[6] wfds=[] efds=[] to=1.974163
+ select=1 rfds=[6] wfds=[] efds=[]
+ +1.-68982
+ recvfrom fd=6 buflen=512
+ recvfrom=OK addr=172.18.45.6:53
+     312a8182 00010000 00000000 036e7331 05353164 6e730363 6f6d0000 1c0001.
+ +0.000201
+ recvfrom fd=6 buflen=512
+ recvfrom=EAGAIN
+ +0.000076
+ select max=7 rfds=[6] wfds=[] efds=[] to=1.042868
+ select=1 rfds=[6] wfds=[] efds=[]
+ +0.396000
+ recvfrom fd=6 buflen=512
+ recvfrom=OK addr=172.18.45.6:53
+     31248182 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00050001.
+ +0.000190
+ recvfrom fd=6 buflen=512
+ recvfrom=OK addr=172.18.45.6:53
+     31268182 00010000 00000000 0a687561 73656e63 68656d03 636f6d00 00100001.
+ +0.000146
+ recvfrom fd=6 buflen=512
+ recvfrom=EAGAIN
+ +0.000074
+ select max=7 rfds=[6] wfds=[] efds=[] to=0.671845
+ select=1 rfds=[6] wfds=[] efds=[]
+ +0.004259
+ recvfrom fd=6 buflen=512
+ recvfrom=OK addr=172.18.45.6:53
+     31288182 00010000 00000000 036e7332 05353164 6e730363 6f6d0000 1c0001.
+ +0.000221
+ recvfrom fd=6 buflen=512
+ recvfrom=EAGAIN
+ +0.000156
+ close fd=6
+ close=OK
+ +0.000001
+ exit 5