-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdns
80 lines (65 loc) · 3.34 KB
/
dns
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Common information about BIND DNS
An 'RRset is short for Resource Record Set, which is all the records of a given type for a given domain. EG, a complete RRset for www.dnssec-tools.org for the A set of data would contain all of the A (IPv4) records for www.dnssec-tools.org
CODE Response code - this four bit field is undefined in requests
and set in responses. The values and meanings of this field
within responses are as follows:
Mneumonic Value Description
------------------------------------------------------------
NOERROR 0 No error condition.
FORMERR 1 The name server was unable to interpret
the request due to a format error.
SERVFAIL 2 The name server encountered an internal
failure while processing this request,
for example an operating system error
or a forwarding timeout.
NXDOMAIN 3 Some name that ought to exist,
does not exist.
NOTIMP 4 The name server does not support
the specified Opcode.
REFUSED 5 The name server refuses to perform the
specified operation for policy or
security reasons.
YXDOMAIN 6 Some name that ought not to exist,
does exist.
YXRRSET 7 Some RRset that ought not to exist,
does exist.
NXRRSET 8 Some RRset that ought to exist,
does not exist.
NOTAUTH 9 The server is not authoritative for
the zone named in the Zone Section.
NOTZONE 10 A name used in the Prerequisite or
Update Section is not within the
zone denoted by the Zone Section.
# DNS in VEGA
Kiev - Optima 213.227.192.130 195.248.191.72
Kiev - Farlep 213.130.24.4 213.130.24.8
Kiev - IP-Telecom 212.9.224.1 212.9.224.2
Kiev - Intercom 83.218.227.65 83.218.227.129
Odessa:
213.130.0.1, 213.130.4.1
NK:
213.130.12.2; 213.130.4.1
KH:
PPPoE #213.227.254.66; 213.130.4.1;213.227.254.254
DHCP 195.248.191.67; 195.248.191.72
######
example.com. IN SOA ns.example.com. hostmaster.example.com. (
2003080800 ; sn = serial number
172800 ; ref = refresh = 2d
900 ; ret = update retry = 15m
1209600 ; ex = expiry = 2w
3600 ; nx = nxdomain ttl = 1h
# Check TTL for zone
## Find authoritative NS
dig soa google.com
***
google.com. 60 IN SOA ns2.google.com. dns-admin.google.com. 144296469 900 900 1800 60
***
## Check TTL from authoritive server
dig @ns2.google.com. google.com
***
google.com. 300 IN A 216.58.209.174
***
# 300 is TTL value
# All zone request
dig AXFR zone.to.transfer