File: dns-any.d

package info (click to toggle)
netcat 1.10-41.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,740 kB
  • ctags: 2,172
  • sloc: ansic: 1,830; sh: 796; makefile: 128
file content (36 lines) | stat: -rw-r--r-- 450 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# dns "any for ." query, to udp 53
# if tcp: precede with 2 bytes of len:
# 0
# 17
# you should get at least *one* record back out

# HEADER:
0	# query id = 2
2

1	# flags/opcodes = query, dorecurse
0

0	# qdcount, i.e. nqueries: 1
1

0	# ancount: answers, 0
0

0	# nscount: 0
0

0	# addl records: 0
0

# end of fixed header

0	# name-len: 0 for ".", lenbyte plus name-bytes otherwise

0	# type: any, 255
0xff

0	# class: IN
1

# i think that's it..