Browse Source

reorganzing

v1.0
dwes7 7 years ago
parent
commit
11484f70ba
  1. 3
      .gitmodules
  2. 1
      native-dns-packet
  3. BIN
      test/fixtures/8.8.8.8.in-addr.arpa.ptr.bin
  4. 23
      test/fixtures/8.8.8.8.in-addr.arpa.ptr.js
  5. BIN
      test/fixtures/_443._tcp.fedoraproject.org.bin
  6. 28
      test/fixtures/_443._tcp.fedoraproject.org.js
  7. BIN
      test/fixtures/_xmpp-server._tcp.gmail.com.srv.bin
  8. 58
      test/fixtures/_xmpp-server._tcp.gmail.com.srv.js
  9. BIN
      test/fixtures/aol.com.txt.bin
  10. 28
      test/fixtures/aol.com.txt.js
  11. BIN
      test/fixtures/b.8.4.0.6.9.e.f.f.f.1.9.c.3.0.f.0.0.0.0.0.0.0.0.3.0.c.3.0.0.6.2.ip6.arpa.ptr.bin
  12. 26
      test/fixtures/b.8.4.0.6.9.e.f.f.f.1.9.c.3.0.f.0.0.0.0.0.0.0.0.3.0.c.3.0.0.6.2.ip6.arpa.ptr.js
  13. BIN
      test/fixtures/irc6.geo.oftc.net.aaaa.bin
  14. 33
      test/fixtures/irc6.geo.oftc.net.aaaa.js
  15. BIN
      test/fixtures/linode.com.ns.bin
  16. 43
      test/fixtures/linode.com.ns.js
  17. BIN
      test/fixtures/microsoft.com.mx.bin
  18. 25
      test/fixtures/microsoft.com.mx.js
  19. BIN
      test/fixtures/www.google.com.a.bin
  20. 44
      test/fixtures/www.google.com.a.js
  21. BIN
      test/fixtures/www.linode.com.a.bin
  22. 33
      test/fixtures/www.linode.com.a.js
  23. BIN
      test/fixtures/www.nodejs.org.cname.bin
  24. 23
      test/fixtures/www.nodejs.org.cname.js
  25. BIN
      test/fixtures/www.yahoo.com.a.bin
  26. 44
      test/fixtures/www.yahoo.com.a.js
  27. 0
      tests/.gitkeep
  28. 1
      tests/fixtures

3
.gitmodules

@ -1,3 +0,0 @@
[submodule "native-dns-packet"]
path = native-dns-packet
url = git@github.com:tjfontaine/native-dns-packet.git

1
native-dns-packet

@ -1 +0,0 @@
Subproject commit 296bfe5337b57e93a605838a4da48924e8d46e4b

BIN
test/fixtures/8.8.8.8.in-addr.arpa.ptr.bin

Binary file not shown.

23
test/fixtures/8.8.8.8.in-addr.arpa.ptr.js

@ -0,0 +1,23 @@
{ header:
{ id: 39980,
qr: 1,
opcode: 0,
aa: 0,
tc: 0,
rd: 1,
ra: 1,
res1: 0,
res2: 0,
res3: 0,
rcode: 0 },
question: [ { name: '8.8.8.8.IN-ADDR.ARPA', type: 12, class: 1 } ],
answer:
[ { name: '8.8.8.8.IN-ADDR.ARPA',
type: 12,
class: 1,
ttl: 21598,
data: 'google-public-dns-a.google.com' } ],
authority: [],
additional: [],
edns_options: [],
payload: undefined }

BIN
test/fixtures/_443._tcp.fedoraproject.org.bin

Binary file not shown.

28
test/fixtures/_443._tcp.fedoraproject.org.js

@ -0,0 +1,28 @@
{ header:
{ id: 62108,
qr: 1,
opcode: 0,
aa: 0,
tc: 0,
rd: 1,
ra: 1,
res1: 0,
res2: 1,
res3: 0,
rcode: 0 },
question: [ { name: '_443._tcp.fedoraproject.org', type: 52, class: 1 } ],
answer:
[ { name: '_443._tcp.fedoraproject.org',
type: 52,
class: 1,
ttl: 268,
usage: 0,
selector: 0,
matchingtype: 1,
buff: new Buffer([0xd4, 0xc4, 0xc9, 0x98, 0x19, 0xf3, 0xa5, 0xf2, 0xc6, 0x26, 0x1c, 0x94, 0x44, 0xc6, 0x2a, 0x8b, 0x26, 0x3b, 0x39, 0xbc, 0x6a, 0xcc, 0xe3, 0x5c, 0xdc, 0xab, 0xe2, 0x72, 0xd5, 0x03, 0x7f, 0xb2]) } ],
authority: [],
additional: [],
edns_options: [],
payload: 4096,
edns_version: 0,
do: 0}

BIN
test/fixtures/_xmpp-server._tcp.gmail.com.srv.bin

Binary file not shown.

58
test/fixtures/_xmpp-server._tcp.gmail.com.srv.js

@ -0,0 +1,58 @@
{ header:
{ id: 42682,
qr: 1,
opcode: 0,
aa: 0,
tc: 0,
rd: 1,
ra: 1,
res1: 0,
res2: 0,
res3: 0,
rcode: 0 },
question: [ { name: '_xmpp-server._tcp.gmail.com', type: 33, class: 1 } ],
answer:
[ { name: '_xmpp-server._tcp.gmail.com',
type: 33,
class: 1,
ttl: 900,
priority: 5,
weight: 0,
port: 5269,
target: 'xmpp-server.l.google.com' },
{ name: '_xmpp-server._tcp.gmail.com',
type: 33,
class: 1,
ttl: 900,
priority: 20,
weight: 0,
port: 5269,
target: 'alt3.xmpp-server.l.google.com' },
{ name: '_xmpp-server._tcp.gmail.com',
type: 33,
class: 1,
ttl: 900,
priority: 20,
weight: 0,
port: 5269,
target: 'alt4.xmpp-server.l.google.com' },
{ name: '_xmpp-server._tcp.gmail.com',
type: 33,
class: 1,
ttl: 900,
priority: 20,
weight: 0,
port: 5269,
target: 'alt2.xmpp-server.l.google.com' },
{ name: '_xmpp-server._tcp.gmail.com',
type: 33,
class: 1,
ttl: 900,
priority: 20,
weight: 0,
port: 5269,
target: 'alt1.xmpp-server.l.google.com' } ],
authority: [],
additional: [],
edns_options: [],
payload: undefined }

BIN
test/fixtures/aol.com.txt.bin

Binary file not shown.

28
test/fixtures/aol.com.txt.js

@ -0,0 +1,28 @@
{ header:
{ id: 9551,
qr: 1,
opcode: 0,
aa: 0,
tc: 0,
rd: 1,
ra: 1,
res1: 0,
res2: 0,
res3: 0,
rcode: 0 },
question: [ { name: 'aol.com', type: 16, class: 1 } ],
answer:
[ { name: 'aol.com',
type: 16,
class: 1,
ttl: 1926,
data: ['spf2.0/pra ptr:mx.aol.com ?all'] },
{ name: 'aol.com',
type: 16,
class: 1,
ttl: 1926,
data: ['v=spf1 ptr:mx.aol.com ?all'] } ],
authority: [],
additional: [],
edns_options: [],
payload: undefined }

BIN
test/fixtures/b.8.4.0.6.9.e.f.f.f.1.9.c.3.0.f.0.0.0.0.0.0.0.0.3.0.c.3.0.0.6.2.ip6.arpa.ptr.bin

Binary file not shown.

26
test/fixtures/b.8.4.0.6.9.e.f.f.f.1.9.c.3.0.f.0.0.0.0.0.0.0.0.3.0.c.3.0.0.6.2.ip6.arpa.ptr.js

@ -0,0 +1,26 @@
{ header:
{ id: 37466,
qr: 1,
opcode: 0,
aa: 0,
tc: 0,
rd: 1,
ra: 1,
res1: 0,
res2: 0,
res3: 0,
rcode: 0 },
question:
[ { name: 'b.8.4.0.6.9.e.f.f.f.1.9.c.3.0.f.0.0.0.0.0.0.0.0.3.0.c.3.0.0.6.2.IP6.ARPA',
type: 12,
class: 1 } ],
answer:
[ { name: 'b.8.4.0.6.9.e.f.f.f.1.9.c.3.0.f.0.0.0.0.0.0.0.0.3.0.c.3.0.0.6.2.IP6.ARPA',
type: 12,
class: 1,
ttl: 21598,
data: 'alittletothewright.com' } ],
authority: [],
additional: [],
edns_options: [],
payload: undefined }

BIN
test/fixtures/irc6.geo.oftc.net.aaaa.bin

Binary file not shown.

33
test/fixtures/irc6.geo.oftc.net.aaaa.js

@ -0,0 +1,33 @@
{ header:
{ id: 11697,
qr: 1,
opcode: 0,
aa: 0,
tc: 0,
rd: 1,
ra: 1,
res1: 0,
res2: 0,
res3: 0,
rcode: 0 },
question: [ { name: 'irc6.geo.oftc.net', type: 28, class: 1 } ],
answer:
[ { name: 'irc6.geo.oftc.net',
type: 28,
class: 1,
ttl: 59,
address: '2607:f8f0:610:4000:211:11ff:fe1c:7bec' },
{ name: 'irc6.geo.oftc.net',
type: 28,
class: 1,
ttl: 59,
address: '2a01:238:42d7:aa00:6667:6697:9999:42' },
{ name: 'irc6.geo.oftc.net',
type: 28,
class: 1,
ttl: 59,
address: '2001:41b8:202:deb:4200:ff:fe00:6667' } ],
authority: [],
additional: [],
edns_options: [],
payload: undefined }

BIN
test/fixtures/linode.com.ns.bin

Binary file not shown.

43
test/fixtures/linode.com.ns.js

@ -0,0 +1,43 @@
{ header:
{ id: 8381,
qr: 1,
opcode: 0,
aa: 0,
tc: 0,
rd: 1,
ra: 1,
res1: 0,
res2: 0,
res3: 0,
rcode: 0 },
question: [ { name: 'linode.com', type: 2, class: 1 } ],
answer:
[ { name: 'linode.com',
type: 2,
class: 1,
ttl: 14769,
data: 'ns4.linode.com' },
{ name: 'linode.com',
type: 2,
class: 1,
ttl: 14769,
data: 'ns2.linode.com' },
{ name: 'linode.com',
type: 2,
class: 1,
ttl: 14769,
data: 'ns1.linode.com' },
{ name: 'linode.com',
type: 2,
class: 1,
ttl: 14769,
data: 'ns5.linode.com' },
{ name: 'linode.com',
type: 2,
class: 1,
ttl: 14769,
data: 'ns3.linode.com' } ],
authority: [],
additional: [],
edns_options: [],
payload: undefined }

BIN
test/fixtures/microsoft.com.mx.bin

Binary file not shown.

25
test/fixtures/microsoft.com.mx.js

@ -0,0 +1,25 @@
{ header:
{ id: 46385,
qr: 1,
opcode: 0,
aa: 0,
tc: 0,
rd: 1,
ra: 1,
res1: 0,
res2: 0,
res3: 0,
rcode: 0 },
question: [ { name: 'microsoft.com', type: 15, class: 1 } ],
answer:
[ { name: 'microsoft.com',
type: 15,
class: 1,
ttl: 197,
priority: 10,
exchange: 'microsoft-com.mail.protection.outlook.com' } ],
authority: [],
additional: [],
edns_options: [],
payload: undefined,
}

BIN
test/fixtures/www.google.com.a.bin

Binary file not shown.

44
test/fixtures/www.google.com.a.js

@ -0,0 +1,44 @@
{ header:
{ id: 49060,
qr: 1,
opcode: 0,
aa: 0,
tc: 0,
rd: 1,
ra: 1,
res1: 0,
res2: 0,
res3: 0,
rcode: 0 },
question: [ { name: 'www.google.com', type: 1, class: 1 } ],
answer:
[ { name: 'www.google.com',
type: 1,
class: 1,
ttl: 29,
address: '74.125.239.112' },
{ name: 'www.google.com',
type: 1,
class: 1,
ttl: 29,
address: '74.125.239.116' },
{ name: 'www.google.com',
type: 1,
class: 1,
ttl: 29,
address: '74.125.239.113' },
{ name: 'www.google.com',
type: 1,
class: 1,
ttl: 29,
address: '74.125.239.115' },
{ name: 'www.google.com',
type: 1,
class: 1,
ttl: 29,
address: '74.125.239.114' } ],
authority: [],
additional: [],
edns_options: [],
payload: undefined,
}

BIN
test/fixtures/www.linode.com.a.bin

Binary file not shown.

33
test/fixtures/www.linode.com.a.js

@ -0,0 +1,33 @@
{ header:
{ id: 46894,
qr: 1,
opcode: 0,
aa: 0,
tc: 0,
rd: 1,
ra: 1,
res1: 0,
res2: 0,
res3: 0,
rcode: 0 },
question: [ { name: 'www.linode.com', type: 1, class: 1 } ],
answer:
[ { name: 'www.linode.com',
type: 1,
class: 1,
ttl: 291,
address: '72.14.191.202' },
{ name: 'www.linode.com',
type: 1,
class: 1,
ttl: 291,
address: '69.164.200.202' },
{ name: 'www.linode.com',
type: 1,
class: 1,
ttl: 291,
address: '72.14.180.202' } ],
authority: [],
additional: [],
edns_options: [],
payload: undefined }

BIN
test/fixtures/www.nodejs.org.cname.bin

Binary file not shown.

23
test/fixtures/www.nodejs.org.cname.js

@ -0,0 +1,23 @@
{ header:
{ id: 32764,
qr: 1,
opcode: 0,
aa: 0,
tc: 0,
rd: 1,
ra: 1,
res1: 0,
res2: 0,
res3: 0,
rcode: 0 },
question: [ { name: 'www.nodejs.org', type: 5, class: 1 } ],
answer:
[ { name: 'www.nodejs.org',
type: 5,
class: 1,
ttl: 3600,
data: 'nodejs.org' } ],
authority: [],
additional: [],
edns_options: [],
payload: undefined }

BIN
test/fixtures/www.yahoo.com.a.bin

Binary file not shown.

44
test/fixtures/www.yahoo.com.a.js

@ -0,0 +1,44 @@
{ header:
{ id: 23208,
qr: 1,
opcode: 0,
aa: 0,
tc: 0,
rd: 1,
ra: 1,
res1: 0,
res2: 0,
res3: 0,
rcode: 0 },
question: [ { name: 'www.yahoo.com', type: 1, class: 1 } ],
answer:
[ { name: 'www.yahoo.com',
type: 5,
class: 1,
ttl: 284,
data: 'fd-fp3.wg1.b.yahoo.com' },
{ name: 'fd-fp3.wg1.b.yahoo.com',
type: 5,
class: 1,
ttl: 285,
data: 'ds-fp3.wg1.b.yahoo.com' },
{ name: 'ds-fp3.wg1.b.yahoo.com',
type: 5,
class: 1,
ttl: 45,
data: 'ds-any-fp3-lfb.wa1.b.yahoo.com' },
{ name: 'ds-any-fp3-lfb.wa1.b.yahoo.com',
type: 5,
class: 1,
ttl: 285,
data: 'ds-any-fp3-real.wa1.b.yahoo.com' },
{ name: 'ds-any-fp3-real.wa1.b.yahoo.com',
type: 1,
class: 1,
ttl: 45,
address: '206.190.36.45' } ],
authority: [],
additional: [],
edns_options: [],
payload: undefined,
}

0
tests/.gitkeep

1
tests/fixtures

@ -1 +0,0 @@
../native-dns-packet/test/fixtures/
Loading…
Cancel
Save