forked from dotphiles/dotphiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.dig
57 lines (56 loc) · 1.36 KB
/
conf.dig
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
#
# dotphiles : https://github.com/dotphiles/dotphiles
#
# Setup grc for `dig`
#
# Authors:
# Ben O'Hara <[email protected]>
#
# domain
regexp=[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,6}?\.
#([a-zA-Z]+\.)+(com|org|net|edu)
colours=magenta
=======
# dns result
regexp=(\d+\s){0,1}IN\s(AAAA|A|AFSDB|APL|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|HIP|IPSECKEY|KEY|KX|LOC|MX|NAPTR|NS|NSEC|NSEC3|NSEC3PARAM|PTR|RRSIG|RP|SIG|SOA|SPF|SRV|SSHFP|TA|TKEY|TSIG|TXT)
colours=green
=======
# ip number
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=magenta
=======
# ipv6 number
regexp=(([0-9a-fA-F]{1,4})?\:\:?[0-9a-fA-F]{1,4})+
colours=magenta
=======
# date/time
regexp=(Mon|Tue|Wed|Thu|Fri|Sat|Sun)\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s([\d]{2})\s([\d]{2}:[\d]{2}:[\d]{2})\s([\d]{4})
colours=blue
=======
# time
regexp=\d+\smsec
colours=green
======
# (,)
regexp=\(|\)
colours=yellow
=======
# ;;
regexp=^[;]+
colours=blue
=======
#: number
regexp=:\s(\d+)(,){0,1}
colours=green
=======
# Sections
regexp=ANSWER\sSECTION:|Query\stime:|SERVER:|WHEN:|QUESTION\sSECTION|OPT\sPSEUDOSECTION|->>HEADER<<-|MSG\sSIZE|<<>>\sDiG\s[\d\.]+\s<<>>|QUERY|NOERROR|ANSWER|AUTHORITY|ADDITIONAL|rcvd
colours=yellow
=======
# move stuff to background
regexp=(flags:\s([a-z\s]+);)|opcode:|,\sstatus:|,\sid:|Got\sanswer:|global\soptions:.*$
colours=bold blue
=======
# #number
regexp=#[0-9]+
colours=black