From 652a713b864fd47dfe091ff11c5d01763ce88806 Mon Sep 17 00:00:00 2001 From: ian Date: Thu, 2 Mar 2000 00:16:37 +0000 Subject: [PATCH] Test cases for long domain names. --- regress/case-longdomsrch0.err | 0 regress/case-longdomsrch0.out | 4 ++ regress/case-longdomsrch0.sys | 15 +++++++ regress/case-longdomsrch1.err | 0 regress/case-longdomsrch1.out | 4 ++ regress/case-longdomsrch1.sys | 47 ++++++++++++++++++++++ regress/case-longdomsrch1b.err | 0 regress/case-longdomsrch1b.out | 4 ++ regress/case-longdomsrch1b.sys | 46 ++++++++++++++++++++++ regress/case-longdomsrch2.err | 0 regress/case-longdomsrch2.out | 4 ++ regress/case-longdomsrch2.sys | 72 ++++++++++++++++++++++++++++++++++ regress/init-ndots100.text | 4 ++ 13 files changed, 200 insertions(+) create mode 100644 regress/case-longdomsrch0.err create mode 100644 regress/case-longdomsrch0.out create mode 100644 regress/case-longdomsrch0.sys create mode 100644 regress/case-longdomsrch1.err create mode 100644 regress/case-longdomsrch1.out create mode 100644 regress/case-longdomsrch1.sys create mode 100644 regress/case-longdomsrch1b.err create mode 100644 regress/case-longdomsrch1b.out create mode 100644 regress/case-longdomsrch1b.sys create mode 100644 regress/case-longdomsrch2.err create mode 100644 regress/case-longdomsrch2.out create mode 100644 regress/case-longdomsrch2.sys create mode 100644 regress/init-ndots100.text diff --git a/regress/case-longdomsrch0.err b/regress/case-longdomsrch0.err new file mode 100644 index 0000000..e69de29 diff --git a/regress/case-longdomsrch0.out b/regress/case-longdomsrch0.out new file mode 100644 index 0000000..14a33a3 --- /dev/null +++ b/regress/case-longdomsrch0.out @@ -0,0 +1,4 @@ +adns debug: using nameserver 172.18.45.6 +10rndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk flags 1 type 1 A(-) submitted +10rndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk flags 1 type A(-): No such domain; nrrs=0; cname=$; owner=$; ttl=604800 +rc=0 diff --git a/regress/case-longdomsrch0.sys b/regress/case-longdomsrch0.sys new file mode 100644 index 0000000..b023124 --- /dev/null +++ b/regress/case-longdomsrch0.sys @@ -0,0 +1,15 @@ +ndots100 +:1 1/10rndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk + start 951956073.321566 + socket type=SOCK_DGRAM + socket=4 + +0.000131 + fcntl fd=4 cmd=F_GETFL + fcntl=~O_NONBLOCK&... + +0.000056 + fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... + fcntl=OK + +0.000034 + close fd=4 + close=OK + +0.000340 diff --git a/regress/case-longdomsrch1.err b/regress/case-longdomsrch1.err new file mode 100644 index 0000000..e69de29 diff --git a/regress/case-longdomsrch1.out b/regress/case-longdomsrch1.out new file mode 100644 index 0000000..a1fa6b4 --- /dev/null +++ b/regress/case-longdomsrch1.out @@ -0,0 +1,4 @@ +adns debug: using nameserver 172.18.45.6 +0rndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk flags 1 type 1 A(-) submitted +0rndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk flags 1 type A(-): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 +rc=0 diff --git a/regress/case-longdomsrch1.sys b/regress/case-longdomsrch1.sys new file mode 100644 index 0000000..8b61888 --- /dev/null +++ b/regress/case-longdomsrch1.sys @@ -0,0 +1,47 @@ +ndots100 +:1 1/0rndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk + start 951956087.269350 + socket type=SOCK_DGRAM + socket=4 + +0.000132 + fcntl fd=4 cmd=F_GETFL + fcntl=~O_NONBLOCK&... + +0.000060 + fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... + fcntl=OK + +0.000038 + sendto fd=4 addr=172.18.45.6:53 + 31210100 00010000 00000000 2230726e 64726f62 776c7878 78787878 78787878 + 6c6c6c61 6e747973 696c696f 676f673f 6c6c616e 66616972 70776c6c 6777796e + 67796c6c 676f6765 72796368 7779726e 64726f62 776c7878 78787878 78787878 + 6c6c6c61 6e747973 696c696f 676f673f 6c6c616e 66616972 70776c6c 6777796e + 67796c6c 676f6765 72796368 7779726e 64726f62 776c7878 78787878 78787878 + 6c6c6c61 6e747973 696c696f 676f673f 6c6c616e 66616972 70776c6c 6777796e + 67796c6c 676f6765 72796368 7779726e 64726f62 776c7878 78787878 78787878 + 6c6c6c61 6e747973 696c696f 676f670a 72656c61 74697669 74790867 7265656e + 656e6403 6f726702 756b0000 010001. + sendto=271 + +0.001749 + select max=5 rfds=[4] wfds=[] efds=[] to=1.998251 + select=1 rfds=[4] wfds=[] efds=[] + +0.000215 + recvfrom fd=4 buflen=512 *addrlen=16 + recvfrom=OK addr=172.18.45.6:53 + 31218583 00010000 00010000 2230726e 64726f62 776c7878 78787878 78787878 + 6c6c6c61 6e747973 696c696f 676f673f 6c6c616e 66616972 70776c6c 6777796e + 67796c6c 676f6765 72796368 7779726e 64726f62 776c7878 78787878 78787878 + 6c6c6c61 6e747973 696c696f 676f673f 6c6c616e 66616972 70776c6c 6777796e + 67796c6c 676f6765 72796368 7779726e 64726f62 776c7878 78787878 78787878 + 6c6c6c61 6e747973 696c696f 676f673f 6c6c616e 66616972 70776c6c 6777796e + 67796c6c 676f6765 72796368 7779726e 64726f62 776c7878 78787878 78787878 + 6c6c6c61 6e747973 696c696f 676f670a 72656c61 74697669 74790867 7265656e + 656e6403 6f726702 756b0000 0100010a 72656c61 74697669 74790867 7265656e + 656e6403 6f726702 756b0000 06000100 01518000 27036e73 30c10f0a 686f7374 + 6d617374 6572c10f 0000002d 00001c20 00000e10 00093a80 00015180. + +0.001176 + recvfrom fd=4 buflen=512 *addrlen=16 + recvfrom=EAGAIN + +0.000173 + close fd=4 + close=OK + +0.000152 diff --git a/regress/case-longdomsrch1b.err b/regress/case-longdomsrch1b.err new file mode 100644 index 0000000..e69de29 diff --git a/regress/case-longdomsrch1b.out b/regress/case-longdomsrch1b.out new file mode 100644 index 0000000..af09658 --- /dev/null +++ b/regress/case-longdomsrch1b.out @@ -0,0 +1,4 @@ +adns debug: using nameserver 172.18.45.6 +1xxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk flags 1 type 1 A(-) submitted +1xxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk flags 1 type A(-): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 +rc=0 diff --git a/regress/case-longdomsrch1b.sys b/regress/case-longdomsrch1b.sys new file mode 100644 index 0000000..6277dbd --- /dev/null +++ b/regress/case-longdomsrch1b.sys @@ -0,0 +1,46 @@ +ndots100 +:1 1/1xxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk + start 951956136.566877 + socket type=SOCK_DGRAM + socket=4 + +0.000137 + fcntl fd=4 cmd=F_GETFL + fcntl=~O_NONBLOCK&... + +0.000060 + fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... + fcntl=OK + +0.000038 + sendto fd=4 addr=172.18.45.6:53 + 31210100 00010000 00000000 13317878 786c6c6c 616e7479 73696c69 6f676f67 + 3f6c6c61 6e666169 7270776c 6c677779 6e67796c 6c676f67 65727963 68777972 + 6e64726f 62776c78 78787878 78787878 786c6c6c 616e7479 73696c69 6f676f67 + 3f6c6c61 6e666169 7270776c 6c677779 6e67796c 6c676f67 65727963 68777972 + 6e64726f 62776c78 78787878 78787878 786c6c6c 616e7479 73696c69 6f676f67 + 3f6c6c61 6e666169 7270776c 6c677779 6e67796c 6c676f67 65727963 68777972 + 6e64726f 62776c78 78787878 78787878 786c6c6c 616e7479 73696c69 6f676f67 + 0a72656c 61746976 69747908 67726565 6e656e64 036f7267 02756b00 00010001. + sendto=256 + +0.004128 + select max=5 rfds=[4] wfds=[] efds=[] to=1.995872 + select=1 rfds=[4] wfds=[] efds=[] + +0.000232 + recvfrom fd=4 buflen=512 *addrlen=16 + recvfrom=OK addr=172.18.45.6:53 + 31218583 00010000 00010000 13317878 786c6c6c 616e7479 73696c69 6f676f67 + 3f6c6c61 6e666169 7270776c 6c677779 6e67796c 6c676f67 65727963 68777972 + 6e64726f 62776c78 78787878 78787878 786c6c6c 616e7479 73696c69 6f676f67 + 3f6c6c61 6e666169 7270776c 6c677779 6e67796c 6c676f67 65727963 68777972 + 6e64726f 62776c78 78787878 78787878 786c6c6c 616e7479 73696c69 6f676f67 + 3f6c6c61 6e666169 7270776c 6c677779 6e67796c 6c676f67 65727963 68777972 + 6e64726f 62776c78 78787878 78787878 786c6c6c 616e7479 73696c69 6f676f67 + 0a72656c 61746976 69747908 67726565 6e656e64 036f7267 02756b00 00010001 + 0a72656c 61746976 69747908 67726565 6e656e64 036f7267 02756b00 00060001 + 00015180 0027036e 7330c100 0a686f73 746d6173 746572c1 00000000 2d00001c + 2000000e 1000093a 80000151 80. + +0.001145 + recvfrom fd=4 buflen=512 *addrlen=16 + recvfrom=EAGAIN + +0.000155 + close fd=4 + close=OK + +0.000161 diff --git a/regress/case-longdomsrch2.err b/regress/case-longdomsrch2.err new file mode 100644 index 0000000..e69de29 diff --git a/regress/case-longdomsrch2.out b/regress/case-longdomsrch2.out new file mode 100644 index 0000000..c4a3a23 --- /dev/null +++ b/regress/case-longdomsrch2.out @@ -0,0 +1,4 @@ +adns debug: using nameserver 172.18.45.6 +xxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk flags 1 type 1 A(-) submitted +xxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk flags 1 type A(-): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 +rc=0 diff --git a/regress/case-longdomsrch2.sys b/regress/case-longdomsrch2.sys new file mode 100644 index 0000000..4df61ad --- /dev/null +++ b/regress/case-longdomsrch2.sys @@ -0,0 +1,72 @@ +ndots100 +:1 1/xxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk + start 951956143.624786 + socket type=SOCK_DGRAM + socket=4 + +0.000137 + fcntl fd=4 cmd=F_GETFL + fcntl=~O_NONBLOCK&... + +0.000058 + fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... + fcntl=OK + +0.000035 + sendto fd=4 addr=172.18.45.6:53 + 31200100 00010000 00000000 12787878 6c6c6c61 6e747973 696c696f 676f673f + 6c6c616e 66616972 70776c6c 6777796e 67796c6c 676f6765 72796368 7779726e + 64726f62 776c7878 78787878 78787878 6c6c6c61 6e747973 696c696f 676f673f + 6c6c616e 66616972 70776c6c 6777796e 67796c6c 676f6765 72796368 7779726e + 64726f62 776c7878 78787878 78787878 6c6c6c61 6e747973 696c696f 676f673f + 6c6c616e 66616972 70776c6c 6777796e 67796c6c 676f6765 72796368 7779726e + 64726f62 776c7878 78787878 78787878 6c6c6c61 6e747973 696c696f 676f670a + 72656c61 74697669 74790867 7265656e 656e6403 6f726702 756b0867 7265656e + 656e6403 6f726702 756b0000 010001. + sendto=271 + +0.004067 + select max=5 rfds=[4] wfds=[] efds=[] to=1.995933 + select=1 rfds=[4] wfds=[] efds=[] + +0.000223 + recvfrom fd=4 buflen=512 *addrlen=16 + recvfrom=OK addr=172.18.45.6:53 + 31208583 00010000 00010000 12787878 6c6c6c61 6e747973 696c696f 676f673f + 6c6c616e 66616972 70776c6c 6777796e 67796c6c 676f6765 72796368 7779726e + 64726f62 776c7878 78787878 78787878 6c6c6c61 6e747973 696c696f 676f673f + 6c6c616e 66616972 70776c6c 6777796e 67796c6c 676f6765 72796368 7779726e + 64726f62 776c7878 78787878 78787878 6c6c6c61 6e747973 696c696f 676f673f + 6c6c616e 66616972 70776c6c 6777796e 67796c6c 676f6765 72796368 7779726e + 64726f62 776c7878 78787878 78787878 6c6c6c61 6e747973 696c696f 676f670a + 72656c61 74697669 74790867 7265656e 656e6403 6f726702 756b0867 7265656e + 656e6403 6f726702 756b0000 01000108 67726565 6e656e64 036f7267 02756b00 + 00060001 00015180 002d026e 73066368 6961726b c10f0a68 6f73746d 61737465 + 72c10f77 35e86000 00708000 001c2000 093a8000 015180. + +0.001177 + sendto fd=4 addr=172.18.45.6:53 + 31210100 00010000 00000000 12787878 6c6c6c61 6e747973 696c696f 676f673f + 6c6c616e 66616972 70776c6c 6777796e 67796c6c 676f6765 72796368 7779726e + 64726f62 776c7878 78787878 78787878 6c6c6c61 6e747973 696c696f 676f673f + 6c6c616e 66616972 70776c6c 6777796e 67796c6c 676f6765 72796368 7779726e + 64726f62 776c7878 78787878 78787878 6c6c6c61 6e747973 696c696f 676f673f + 6c6c616e 66616972 70776c6c 6777796e 67796c6c 676f6765 72796368 7779726e + 64726f62 776c7878 78787878 78787878 6c6c6c61 6e747973 696c696f 676f670a + 72656c61 74697669 74790867 7265656e 656e6403 6f726702 756b0000 010001. + sendto=255 + +0.002348 + recvfrom fd=4 buflen=512 *addrlen=16 + recvfrom=OK addr=172.18.45.6:53 + 31218583 00010000 00010000 12787878 6c6c6c61 6e747973 696c696f 676f673f + 6c6c616e 66616972 70776c6c 6777796e 67796c6c 676f6765 72796368 7779726e + 64726f62 776c7878 78787878 78787878 6c6c6c61 6e747973 696c696f 676f673f + 6c6c616e 66616972 70776c6c 6777796e 67796c6c 676f6765 72796368 7779726e + 64726f62 776c7878 78787878 78787878 6c6c6c61 6e747973 696c696f 676f673f + 6c6c616e 66616972 70776c6c 6777796e 67796c6c 676f6765 72796368 7779726e + 64726f62 776c7878 78787878 78787878 6c6c6c61 6e747973 696c696f 676f670a + 72656c61 74697669 74790867 7265656e 656e6403 6f726702 756b0000 0100010a + 72656c61 74697669 74790867 7265656e 656e6403 6f726702 756b0000 06000100 + 01518000 27036e73 30c0ff0a 686f7374 6d617374 6572c0ff 0000002d 00001c20 + 00000e10 00093a80 00015180. + +0.001060 + recvfrom fd=4 buflen=512 *addrlen=16 + recvfrom=EAGAIN + +0.000105 + close fd=4 + close=OK + +0.000176 diff --git a/regress/init-ndots100.text b/regress/init-ndots100.text new file mode 100644 index 0000000..e241120 --- /dev/null +++ b/regress/init-ndots100.text @@ -0,0 +1,4 @@ +nameserver 172.18.45.6 +sortlist 127.0.0.1/32 172.18.45.0/28 172.18.45.0/24 +search davenant.greenend.org.uk greenend.org.uk +options ndots:100 -- 2.30.2