mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
add when_epoch and when_epoch_utc fields
This commit is contained in:
@ -15,6 +15,7 @@ jc changelog
|
||||
change_time_epoch, change_time_epoch_utc, birth_time_epoch, birth_time_epoch_utc fields
|
||||
- Update timedatectl parser to add epoch_utc field
|
||||
- Update who parser to add epoch field
|
||||
- Update dig parser to add when_epoch and when_epoch_utc fields
|
||||
- Add -h option to display the help text. Piping errors no longer show the help text.
|
||||
- Add -v option to display version information.
|
||||
- Make all external python library dependencies optional: pygments, ruamel.yaml, xmltodict
|
||||
|
54
EXAMPLES.md
54
EXAMPLES.md
@ -548,7 +548,7 @@ dig cnn.com www.cnn.com @205.251.194.64 | jc --dig -p # or: jc -p dig
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id": 5509,
|
||||
"id": 52172,
|
||||
"opcode": "QUERY",
|
||||
"status": "NOERROR",
|
||||
"flags": [
|
||||
@ -570,38 +570,40 @@ dig cnn.com www.cnn.com @205.251.194.64 | jc --dig -p # or: jc -p dig
|
||||
"name": "cnn.com.",
|
||||
"class": "IN",
|
||||
"type": "A",
|
||||
"ttl": 60,
|
||||
"ttl": 27,
|
||||
"data": "151.101.65.67"
|
||||
},
|
||||
{
|
||||
"name": "cnn.com.",
|
||||
"class": "IN",
|
||||
"type": "A",
|
||||
"ttl": 27,
|
||||
"data": "151.101.129.67"
|
||||
},
|
||||
{
|
||||
"name": "cnn.com.",
|
||||
"class": "IN",
|
||||
"type": "A",
|
||||
"ttl": 60,
|
||||
"data": "151.101.193.67"
|
||||
},
|
||||
{
|
||||
"name": "cnn.com.",
|
||||
"class": "IN",
|
||||
"type": "A",
|
||||
"ttl": 60,
|
||||
"ttl": 27,
|
||||
"data": "151.101.1.67"
|
||||
},
|
||||
{
|
||||
"name": "cnn.com.",
|
||||
"class": "IN",
|
||||
"type": "A",
|
||||
"ttl": 60,
|
||||
"data": "151.101.65.67"
|
||||
"ttl": 27,
|
||||
"data": "151.101.193.67"
|
||||
}
|
||||
],
|
||||
"query_time": 28,
|
||||
"query_time": 38,
|
||||
"server": "2600",
|
||||
"when": "Tue Nov 12 07:13:03 PST 2019",
|
||||
"rcvd": 100
|
||||
"when": "Tue Mar 30 20:07:59 PDT 2021",
|
||||
"rcvd": 100,
|
||||
"when_epoch": 1617160079,
|
||||
"when_epoch_utc": null
|
||||
},
|
||||
{
|
||||
"id": 62696,
|
||||
"id": 36292,
|
||||
"opcode": "QUERY",
|
||||
"status": "NOERROR",
|
||||
"flags": [
|
||||
@ -657,10 +659,12 @@ dig cnn.com www.cnn.com @205.251.194.64 | jc --dig -p # or: jc -p dig
|
||||
"data": "ns-576.awsdns-08.net."
|
||||
}
|
||||
],
|
||||
"query_time": 29,
|
||||
"query_time": 27,
|
||||
"server": "205.251.194.64#53(205.251.194.64)",
|
||||
"when": "Tue Nov 12 07:13:03 PST 2019",
|
||||
"rcvd": 212
|
||||
"when": "Tue Mar 30 20:07:59 PDT 2021",
|
||||
"rcvd": 212,
|
||||
"when_epoch": 1617160079,
|
||||
"when_epoch_utc": null
|
||||
}
|
||||
]
|
||||
```
|
||||
@ -670,7 +674,7 @@ dig -x 1.1.1.1 | jc --dig -p # or: jc -p dig -x 1.1.1.1
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id": 50324,
|
||||
"id": 22191,
|
||||
"opcode": "QUERY",
|
||||
"status": "NOERROR",
|
||||
"flags": [
|
||||
@ -692,14 +696,16 @@ dig -x 1.1.1.1 | jc --dig -p # or: jc -p dig -x 1.1.1.1
|
||||
"name": "1.1.1.1.in-addr.arpa.",
|
||||
"class": "IN",
|
||||
"type": "PTR",
|
||||
"ttl": 1634,
|
||||
"ttl": 1800,
|
||||
"data": "one.one.one.one."
|
||||
}
|
||||
],
|
||||
"query_time": 36,
|
||||
"query_time": 44,
|
||||
"server": "2600",
|
||||
"when": "Tue Nov 12 07:13:49 PST 2019",
|
||||
"rcvd": 78
|
||||
"when": "Tue Mar 30 20:10:34 PDT 2021",
|
||||
"rcvd": 78,
|
||||
"when_epoch": 1617160234,
|
||||
"when_epoch_utc": null
|
||||
}
|
||||
]
|
||||
```
|
||||
|
14
README.md
14
README.md
@ -350,7 +350,7 @@ dig cnn.com @205.251.194.64 | jc --dig -p # or: jc -p dig cnn.com @205
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id": 5509,
|
||||
"id": 52172,
|
||||
"opcode": "QUERY",
|
||||
"status": "NOERROR",
|
||||
"flags": [
|
||||
@ -372,14 +372,16 @@ dig cnn.com @205.251.194.64 | jc --dig -p # or: jc -p dig cnn.com @205
|
||||
"name": "cnn.com.",
|
||||
"class": "IN",
|
||||
"type": "A",
|
||||
"ttl": 60,
|
||||
"data": "151.101.129.67"
|
||||
"ttl": 27,
|
||||
"data": "151.101.65.67"
|
||||
}
|
||||
],
|
||||
"query_time": 28,
|
||||
"query_time": 38,
|
||||
"server": "2600",
|
||||
"when": "Tue Nov 12 07:13:03 PST 2019",
|
||||
"rcvd": 100
|
||||
"when": "Tue Mar 30 20:07:59 PDT 2021",
|
||||
"rcvd": 100,
|
||||
"when_epoch": 1617160079,
|
||||
"when_epoch_utc": null
|
||||
}
|
||||
]
|
||||
```
|
||||
|
@ -2,6 +2,10 @@
|
||||
# jc.parsers.dig
|
||||
jc - JSON CLI output utility `dig` command output parser
|
||||
|
||||
The `when_epoch` calculated timestamp field is naive (i.e. based on the local time of the system the parser is run on)
|
||||
|
||||
The `when_epoch_utc` calculated timestamp field is timezone-aware and is only available if the timezone field is UTC.
|
||||
|
||||
Usage (cli):
|
||||
|
||||
$ dig example.com | jc --dig
|
||||
@ -24,7 +28,7 @@ Examples:
|
||||
$ dig cnn.com www.cnn.com @205.251.194.64 | jc --dig -p
|
||||
[
|
||||
{
|
||||
"id": 34128,
|
||||
"id": 52172,
|
||||
"opcode": "QUERY",
|
||||
"status": "NOERROR",
|
||||
"flags": [
|
||||
@ -46,38 +50,40 @@ Examples:
|
||||
"name": "cnn.com.",
|
||||
"class": "IN",
|
||||
"type": "A",
|
||||
"ttl": 60,
|
||||
"ttl": 27,
|
||||
"data": "151.101.65.67"
|
||||
},
|
||||
{
|
||||
"name": "cnn.com.",
|
||||
"class": "IN",
|
||||
"type": "A",
|
||||
"ttl": 60,
|
||||
"data": "151.101.193.67"
|
||||
"ttl": 27,
|
||||
"data": "151.101.129.67"
|
||||
},
|
||||
{
|
||||
"name": "cnn.com.",
|
||||
"class": "IN",
|
||||
"type": "A",
|
||||
"ttl": 60,
|
||||
"ttl": 27,
|
||||
"data": "151.101.1.67"
|
||||
},
|
||||
{
|
||||
"name": "cnn.com.",
|
||||
"class": "IN",
|
||||
"type": "A",
|
||||
"ttl": 60,
|
||||
"data": "151.101.129.67"
|
||||
"ttl": 27,
|
||||
"data": "151.101.193.67"
|
||||
}
|
||||
],
|
||||
"query_time": 37,
|
||||
"query_time": 38,
|
||||
"server": "2600",
|
||||
"when": "Tue Nov 12 07:14:42 PST 2019",
|
||||
"rcvd": 100
|
||||
"when": "Tue Mar 30 20:07:59 PDT 2021",
|
||||
"rcvd": 100,
|
||||
"when_epoch": 1617160079,
|
||||
"when_epoch_utc": null
|
||||
},
|
||||
{
|
||||
"id": 15273,
|
||||
"id": 36292,
|
||||
"opcode": "QUERY",
|
||||
"status": "NOERROR",
|
||||
"flags": [
|
||||
@ -133,10 +139,12 @@ Examples:
|
||||
"data": "ns-576.awsdns-08.net."
|
||||
}
|
||||
],
|
||||
"query_time": 23,
|
||||
"query_time": 27,
|
||||
"server": "205.251.194.64#53(205.251.194.64)",
|
||||
"when": "Tue Nov 12 07:14:42 PST 2019",
|
||||
"rcvd": 212
|
||||
"when": "Tue Mar 30 20:07:59 PDT 2021",
|
||||
"rcvd": 212,
|
||||
"when_epoch": 1617160079,
|
||||
"when_epoch_utc": null
|
||||
}
|
||||
]
|
||||
|
||||
@ -262,7 +270,7 @@ Examples:
|
||||
$ dig -x 1.1.1.1 | jc --dig -p
|
||||
[
|
||||
{
|
||||
"id": 34898,
|
||||
"id": 22191,
|
||||
"opcode": "QUERY",
|
||||
"status": "NOERROR",
|
||||
"flags": [
|
||||
@ -284,14 +292,16 @@ Examples:
|
||||
"name": "1.1.1.1.in-addr.arpa.",
|
||||
"class": "IN",
|
||||
"type": "PTR",
|
||||
"ttl": 952,
|
||||
"ttl": 1800,
|
||||
"data": "one.one.one.one."
|
||||
}
|
||||
],
|
||||
"query_time": 103,
|
||||
"query_time": 44,
|
||||
"server": "2600",
|
||||
"when": "Tue Nov 12 07:15:33 PST 2019",
|
||||
"rcvd": 78
|
||||
"when": "Tue Mar 30 20:10:34 PDT 2021",
|
||||
"rcvd": 78,
|
||||
"when_epoch": 1617160234,
|
||||
"when_epoch_utc": null
|
||||
}
|
||||
]
|
||||
|
||||
@ -400,6 +410,8 @@ Returns:
|
||||
"query_time": integer, # in msec
|
||||
"server": string,
|
||||
"when": string,
|
||||
"when_epoch": integer, # naive timestamp if when field is parsable, else null
|
||||
"when_epoch_utc": integer, # timezone aware timestamp availabe for UTC, else null
|
||||
"rcvd": integer
|
||||
"size": string
|
||||
}
|
||||
|
@ -1,5 +1,9 @@
|
||||
"""jc - JSON CLI output utility `dig` command output parser
|
||||
|
||||
The `when_epoch` calculated timestamp field is naive (i.e. based on the local time of the system the parser is run on)
|
||||
|
||||
The `when_epoch_utc` calculated timestamp field is timezone-aware and is only available if the timezone field is UTC.
|
||||
|
||||
Usage (cli):
|
||||
|
||||
$ dig example.com | jc --dig
|
||||
@ -22,7 +26,7 @@ Examples:
|
||||
$ dig cnn.com www.cnn.com @205.251.194.64 | jc --dig -p
|
||||
[
|
||||
{
|
||||
"id": 34128,
|
||||
"id": 52172,
|
||||
"opcode": "QUERY",
|
||||
"status": "NOERROR",
|
||||
"flags": [
|
||||
@ -44,38 +48,40 @@ Examples:
|
||||
"name": "cnn.com.",
|
||||
"class": "IN",
|
||||
"type": "A",
|
||||
"ttl": 60,
|
||||
"ttl": 27,
|
||||
"data": "151.101.65.67"
|
||||
},
|
||||
{
|
||||
"name": "cnn.com.",
|
||||
"class": "IN",
|
||||
"type": "A",
|
||||
"ttl": 60,
|
||||
"data": "151.101.193.67"
|
||||
"ttl": 27,
|
||||
"data": "151.101.129.67"
|
||||
},
|
||||
{
|
||||
"name": "cnn.com.",
|
||||
"class": "IN",
|
||||
"type": "A",
|
||||
"ttl": 60,
|
||||
"ttl": 27,
|
||||
"data": "151.101.1.67"
|
||||
},
|
||||
{
|
||||
"name": "cnn.com.",
|
||||
"class": "IN",
|
||||
"type": "A",
|
||||
"ttl": 60,
|
||||
"data": "151.101.129.67"
|
||||
"ttl": 27,
|
||||
"data": "151.101.193.67"
|
||||
}
|
||||
],
|
||||
"query_time": 37,
|
||||
"query_time": 38,
|
||||
"server": "2600",
|
||||
"when": "Tue Nov 12 07:14:42 PST 2019",
|
||||
"rcvd": 100
|
||||
"when": "Tue Mar 30 20:07:59 PDT 2021",
|
||||
"rcvd": 100,
|
||||
"when_epoch": 1617160079,
|
||||
"when_epoch_utc": null
|
||||
},
|
||||
{
|
||||
"id": 15273,
|
||||
"id": 36292,
|
||||
"opcode": "QUERY",
|
||||
"status": "NOERROR",
|
||||
"flags": [
|
||||
@ -131,10 +137,12 @@ Examples:
|
||||
"data": "ns-576.awsdns-08.net."
|
||||
}
|
||||
],
|
||||
"query_time": 23,
|
||||
"query_time": 27,
|
||||
"server": "205.251.194.64#53(205.251.194.64)",
|
||||
"when": "Tue Nov 12 07:14:42 PST 2019",
|
||||
"rcvd": 212
|
||||
"when": "Tue Mar 30 20:07:59 PDT 2021",
|
||||
"rcvd": 212,
|
||||
"when_epoch": 1617160079,
|
||||
"when_epoch_utc": null
|
||||
}
|
||||
]
|
||||
|
||||
@ -260,7 +268,7 @@ Examples:
|
||||
$ dig -x 1.1.1.1 | jc --dig -p
|
||||
[
|
||||
{
|
||||
"id": 34898,
|
||||
"id": 22191,
|
||||
"opcode": "QUERY",
|
||||
"status": "NOERROR",
|
||||
"flags": [
|
||||
@ -282,14 +290,16 @@ Examples:
|
||||
"name": "1.1.1.1.in-addr.arpa.",
|
||||
"class": "IN",
|
||||
"type": "PTR",
|
||||
"ttl": 952,
|
||||
"ttl": 1800,
|
||||
"data": "one.one.one.one."
|
||||
}
|
||||
],
|
||||
"query_time": 103,
|
||||
"query_time": 44,
|
||||
"server": "2600",
|
||||
"when": "Tue Nov 12 07:15:33 PST 2019",
|
||||
"rcvd": 78
|
||||
"when": "Tue Mar 30 20:10:34 PDT 2021",
|
||||
"rcvd": 78,
|
||||
"when_epoch": 1617160234,
|
||||
"when_epoch_utc": null
|
||||
}
|
||||
]
|
||||
|
||||
@ -333,7 +343,7 @@ import jc.utils
|
||||
|
||||
|
||||
class info():
|
||||
version = '1.5'
|
||||
version = '1.6'
|
||||
description = 'dig command parser'
|
||||
author = 'Kelly Brazil'
|
||||
author_email = 'kellyjonbrazil@gmail.com'
|
||||
@ -405,6 +415,8 @@ def process(proc_data):
|
||||
"query_time": integer, # in msec
|
||||
"server": string,
|
||||
"when": string,
|
||||
"when_epoch": integer, # naive timestamp if when field is parsable, else null
|
||||
"when_epoch_utc": integer, # timezone aware timestamp availabe for UTC, else null
|
||||
"rcvd": integer
|
||||
"size": string
|
||||
}
|
||||
@ -452,6 +464,10 @@ def process(proc_data):
|
||||
except (ValueError):
|
||||
entry['query_time'] = None
|
||||
|
||||
if 'when' in entry:
|
||||
entry['when_epoch'] = jc.utils.parse_datetime_to_timestamp(entry['when'])['timestamp_naive']
|
||||
entry['when_epoch_utc'] = jc.utils.parse_datetime_to_timestamp(entry['when'])['timestamp_utc']
|
||||
|
||||
return proc_data
|
||||
|
||||
|
||||
|
2
tests/fixtures/centos-7.7/dig-aaaa.json
vendored
2
tests/fixtures/centos-7.7/dig-aaaa.json
vendored
@ -1 +1 @@
|
||||
[{"id": 25779, "opcode": "QUERY", "status": "NOERROR", "flags": ["qr", "rd", "ra"], "query_num": 1, "answer_num": 1, "authority_num": 0, "additional_num": 1, "question": {"name": "www.google.com.", "class": "IN", "type": "AAAA"}, "answer": [{"name": "www.google.com.", "class": "IN", "type": "AAAA", "ttl": 5, "data": "2607:f8b0:4000:808::2004"}], "query_time": 28, "server": "192.168.71.2#53(192.168.71.2)", "when": "Wed Oct 30 05:12:53 PDT 2019", "rcvd": 71}]
|
||||
[{"id":25779,"opcode":"QUERY","status":"NOERROR","flags":["qr","rd","ra"],"query_num":1,"answer_num":1,"authority_num":0,"additional_num":1,"question":{"name":"www.google.com.","class":"IN","type":"AAAA"},"answer":[{"name":"www.google.com.","class":"IN","type":"AAAA","ttl":5,"data":"2607:f8b0:4000:808::2004"}],"query_time":28,"server":"192.168.71.2#53(192.168.71.2)","when":"Wed Oct 30 05:12:53 PDT 2019","rcvd":71,"when_epoch":1572437573,"when_epoch_utc":null}]
|
||||
|
2
tests/fixtures/centos-7.7/dig-axfr.json
vendored
2
tests/fixtures/centos-7.7/dig-axfr.json
vendored
File diff suppressed because one or more lines are too long
2
tests/fixtures/centos-7.7/dig-x.json
vendored
2
tests/fixtures/centos-7.7/dig-x.json
vendored
@ -1 +1 @@
|
||||
[{"id": 36298, "opcode": "QUERY", "status": "NOERROR", "flags": ["qr", "rd", "ra"], "query_num": 1, "answer_num": 1, "authority_num": 0, "additional_num": 1, "question": {"name": "1.1.1.1.in-addr.arpa.", "class": "IN", "type": "PTR"}, "answer": [{"name": "1.1.1.1.in-addr.arpa.", "class": "IN", "type": "PTR", "ttl": 5, "data": "one.one.one.one."}], "query_time": 32, "server": "192.168.71.2#53(192.168.71.2)", "when": "Wed Oct 30 05:13:36 PDT 2019", "rcvd": 78}]
|
||||
[{"id":36298,"opcode":"QUERY","status":"NOERROR","flags":["qr","rd","ra"],"query_num":1,"answer_num":1,"authority_num":0,"additional_num":1,"question":{"name":"1.1.1.1.in-addr.arpa.","class":"IN","type":"PTR"},"answer":[{"name":"1.1.1.1.in-addr.arpa.","class":"IN","type":"PTR","ttl":5,"data":"one.one.one.one."}],"query_time":32,"server":"192.168.71.2#53(192.168.71.2)","when":"Wed Oct 30 05:13:36 PDT 2019","rcvd":78,"when_epoch":1572437616,"when_epoch_utc":null}]
|
||||
|
2
tests/fixtures/centos-7.7/dig.json
vendored
2
tests/fixtures/centos-7.7/dig.json
vendored
@ -1 +1 @@
|
||||
[{"id": 44295, "opcode": "QUERY", "status": "NOERROR", "flags": ["qr", "rd", "ra"], "query_num": 1, "answer_num": 2, "authority_num": 0, "additional_num": 1, "question": {"name": "www.cnn.com.", "class": "IN", "type": "A"}, "answer": [{"name": "www.cnn.com.", "class": "IN", "type": "CNAME", "ttl": 5, "data": "turner-tls.map.fastly.net."}, {"name": "turner-tls.map.fastly.net.", "class": "IN", "type": "A", "ttl": 5, "data": "151.101.189.67"}], "query_time": 25, "server": "192.168.71.2#53(192.168.71.2)", "when": "Wed Oct 30 05:13:22 PDT 2019", "rcvd": 95}, {"id": 34074, "opcode": "QUERY", "status": "NOERROR", "flags": ["qr", "rd", "ra"], "query_num": 1, "answer_num": 1, "authority_num": 0, "additional_num": 1, "question": {"name": "www.google.com.", "class": "IN", "type": "A"}, "answer": [{"name": "www.google.com.", "class": "IN", "type": "A", "ttl": 5, "data": "216.58.194.100"}], "query_time": 25, "server": "192.168.71.2#53(192.168.71.2)", "when": "Wed Oct 30 05:13:22 PDT 2019", "rcvd": 59}]
|
||||
[{"id":44295,"opcode":"QUERY","status":"NOERROR","flags":["qr","rd","ra"],"query_num":1,"answer_num":2,"authority_num":0,"additional_num":1,"question":{"name":"www.cnn.com.","class":"IN","type":"A"},"answer":[{"name":"www.cnn.com.","class":"IN","type":"CNAME","ttl":5,"data":"turner-tls.map.fastly.net."},{"name":"turner-tls.map.fastly.net.","class":"IN","type":"A","ttl":5,"data":"151.101.189.67"}],"query_time":25,"server":"192.168.71.2#53(192.168.71.2)","when":"Wed Oct 30 05:13:22 PDT 2019","rcvd":95,"when_epoch":1572437602,"when_epoch_utc":null},{"id":34074,"opcode":"QUERY","status":"NOERROR","flags":["qr","rd","ra"],"query_num":1,"answer_num":1,"authority_num":0,"additional_num":1,"question":{"name":"www.google.com.","class":"IN","type":"A"},"answer":[{"name":"www.google.com.","class":"IN","type":"A","ttl":5,"data":"216.58.194.100"}],"query_time":25,"server":"192.168.71.2#53(192.168.71.2)","when":"Wed Oct 30 05:13:22 PDT 2019","rcvd":59,"when_epoch":1572437602,"when_epoch_utc":null}]
|
||||
|
@ -1 +1 @@
|
||||
[{"id": 26965, "opcode": "QUERY", "status": "NXDOMAIN", "flags": ["qr", "rd", "ra"], "query_num": 1, "answer_num": 0, "authority_num": 1, "additional_num": 1, "question": {"name": "x.y.z.w.bl.spamcop.net.", "class": "IN", "type": "TXT"}, "authority": [{"name": "bl.spamcop.net.", "class": "IN", "type": "SOA", "ttl": 0, "data": "bl.spamcop.net."}], "answer": [{"name": "x.y.z.w.bl.spamcop.net.", "class": "IN", "type": "TXT", "ttl": 2100, "data": "Blocked - see https://www.spamcop.net/bl.shtml?w.z.y.x"}], "query_time": 297, "server": "192.168.1.254#53(192.168.1.254)", "when": "Fri Feb 05 06:28:58 PST 2021", "rcvd": 104}]
|
||||
[{"id":26965,"opcode":"QUERY","status":"NXDOMAIN","flags":["qr","rd","ra"],"query_num":1,"answer_num":0,"authority_num":1,"additional_num":1,"question":{"name":"x.y.z.w.bl.spamcop.net.","class":"IN","type":"TXT"},"authority":[{"name":"bl.spamcop.net.","class":"IN","type":"SOA","ttl":0,"data":"bl.spamcop.net."}],"answer":[{"name":"x.y.z.w.bl.spamcop.net.","class":"IN","type":"TXT","ttl":2100,"data":"Blocked - see https://www.spamcop.net/bl.shtml?w.z.y.x"}],"query_time":297,"server":"192.168.1.254#53(192.168.1.254)","when":"Fri Feb 05 06:28:58 PST 2021","rcvd":104,"when_epoch":1612535338,"when_epoch_utc":null}]
|
||||
|
2
tests/fixtures/osx-10.11.6/dig-aaaa.json
vendored
2
tests/fixtures/osx-10.11.6/dig-aaaa.json
vendored
@ -1 +1 @@
|
||||
[{"id": 41369, "opcode": "QUERY", "status": "NOERROR", "flags": ["qr", "rd", "ra"], "query_num": 1, "answer_num": 1, "authority_num": 0, "additional_num": 1, "question": {"name": "www.google.com.", "class": "IN", "type": "AAAA"}, "answer": [{"name": "www.google.com.", "class": "IN", "type": "AAAA", "ttl": 197, "data": "2607:f8b0:4000:817::2004"}], "query_time": 30, "server": "2600", "when": "Wed Dec 11 16:57:37 PST 2019", "rcvd": 71}]
|
||||
[{"id":41369,"opcode":"QUERY","status":"NOERROR","flags":["qr","rd","ra"],"query_num":1,"answer_num":1,"authority_num":0,"additional_num":1,"question":{"name":"www.google.com.","class":"IN","type":"AAAA"},"answer":[{"name":"www.google.com.","class":"IN","type":"AAAA","ttl":197,"data":"2607:f8b0:4000:817::2004"}],"query_time":30,"server":"2600","when":"Wed Dec 11 16:57:37 PST 2019","rcvd":71,"when_epoch":1576112257,"when_epoch_utc":null}]
|
||||
|
2
tests/fixtures/osx-10.11.6/dig-x.json
vendored
2
tests/fixtures/osx-10.11.6/dig-x.json
vendored
@ -1 +1 @@
|
||||
[{"id": 15549, "opcode": "QUERY", "status": "NOERROR", "flags": ["qr", "rd", "ra"], "query_num": 1, "answer_num": 1, "authority_num": 0, "additional_num": 1, "question": {"name": "1.1.1.1.in-addr.arpa.", "class": "IN", "type": "PTR"}, "answer": [{"name": "1.1.1.1.in-addr.arpa.", "class": "IN", "type": "PTR", "ttl": 1800, "data": "one.one.one.one."}], "query_time": 34, "server": "2600", "when": "Wed Dec 11 16:57:37 PST 2019", "rcvd": 78}]
|
||||
[{"id":15549,"opcode":"QUERY","status":"NOERROR","flags":["qr","rd","ra"],"query_num":1,"answer_num":1,"authority_num":0,"additional_num":1,"question":{"name":"1.1.1.1.in-addr.arpa.","class":"IN","type":"PTR"},"answer":[{"name":"1.1.1.1.in-addr.arpa.","class":"IN","type":"PTR","ttl":1800,"data":"one.one.one.one."}],"query_time":34,"server":"2600","when":"Wed Dec 11 16:57:37 PST 2019","rcvd":78,"when_epoch":1576112257,"when_epoch_utc":null}]
|
||||
|
2
tests/fixtures/osx-10.11.6/dig.json
vendored
2
tests/fixtures/osx-10.11.6/dig.json
vendored
@ -1 +1 @@
|
||||
[{"id": 57483, "opcode": "QUERY", "status": "NOERROR", "flags": ["qr", "rd", "ra"], "query_num": 1, "answer_num": 5, "authority_num": 0, "additional_num": 1, "question": {"name": "www.cnn.com.", "class": "IN", "type": "A"}, "answer": [{"name": "www.cnn.com.", "class": "IN", "type": "CNAME", "ttl": 199, "data": "turner-tls.map.fastly.net."}, {"name": "turner-tls.map.fastly.net.", "class": "IN", "type": "A", "ttl": 13, "data": "151.101.193.67"}, {"name": "turner-tls.map.fastly.net.", "class": "IN", "type": "A", "ttl": 13, "data": "151.101.65.67"}, {"name": "turner-tls.map.fastly.net.", "class": "IN", "type": "A", "ttl": 13, "data": "151.101.1.67"}, {"name": "turner-tls.map.fastly.net.", "class": "IN", "type": "A", "ttl": 13, "data": "151.101.129.67"}], "query_time": 30, "server": "2600", "when": "Wed Dec 11 16:57:37 PST 2019", "rcvd": 143}, {"id": 53268, "opcode": "QUERY", "status": "NOERROR", "flags": ["qr", "rd", "ra"], "query_num": 1, "answer_num": 1, "authority_num": 0, "additional_num": 1, "question": {"name": "www.google.com.", "class": "IN", "type": "A"}, "answer": [{"name": "www.google.com.", "class": "IN", "type": "A", "ttl": 194, "data": "172.217.9.164"}], "query_time": 30, "server": "2600", "when": "Wed Dec 11 16:57:37 PST 2019", "rcvd": 59}]
|
||||
[{"id":57483,"opcode":"QUERY","status":"NOERROR","flags":["qr","rd","ra"],"query_num":1,"answer_num":5,"authority_num":0,"additional_num":1,"question":{"name":"www.cnn.com.","class":"IN","type":"A"},"answer":[{"name":"www.cnn.com.","class":"IN","type":"CNAME","ttl":199,"data":"turner-tls.map.fastly.net."},{"name":"turner-tls.map.fastly.net.","class":"IN","type":"A","ttl":13,"data":"151.101.193.67"},{"name":"turner-tls.map.fastly.net.","class":"IN","type":"A","ttl":13,"data":"151.101.65.67"},{"name":"turner-tls.map.fastly.net.","class":"IN","type":"A","ttl":13,"data":"151.101.1.67"},{"name":"turner-tls.map.fastly.net.","class":"IN","type":"A","ttl":13,"data":"151.101.129.67"}],"query_time":30,"server":"2600","when":"Wed Dec 11 16:57:37 PST 2019","rcvd":143,"when_epoch":1576112257,"when_epoch_utc":null},{"id":53268,"opcode":"QUERY","status":"NOERROR","flags":["qr","rd","ra"],"query_num":1,"answer_num":1,"authority_num":0,"additional_num":1,"question":{"name":"www.google.com.","class":"IN","type":"A"},"answer":[{"name":"www.google.com.","class":"IN","type":"A","ttl":194,"data":"172.217.9.164"}],"query_time":30,"server":"2600","when":"Wed Dec 11 16:57:37 PST 2019","rcvd":59,"when_epoch":1576112257,"when_epoch_utc":null}]
|
||||
|
2
tests/fixtures/osx-10.14.6/dig-aaaa.json
vendored
2
tests/fixtures/osx-10.14.6/dig-aaaa.json
vendored
@ -1 +1 @@
|
||||
[{"id": 61441, "opcode": "QUERY", "status": "NOERROR", "flags": ["qr", "rd", "ra"], "query_num": 1, "answer_num": 1, "authority_num": 0, "additional_num": 1, "question": {"name": "www.google.com.", "class": "IN", "type": "AAAA"}, "answer": [{"name": "www.google.com.", "class": "IN", "type": "AAAA", "ttl": 63, "data": "2607:f8b0:4000:817::2004"}], "query_time": 30, "server": "2600", "when": "Wed Dec 11 16:54:50 PST 2019", "rcvd": 71}]
|
||||
[{"id":61441,"opcode":"QUERY","status":"NOERROR","flags":["qr","rd","ra"],"query_num":1,"answer_num":1,"authority_num":0,"additional_num":1,"question":{"name":"www.google.com.","class":"IN","type":"AAAA"},"answer":[{"name":"www.google.com.","class":"IN","type":"AAAA","ttl":63,"data":"2607:f8b0:4000:817::2004"}],"query_time":30,"server":"2600","when":"Wed Dec 11 16:54:50 PST 2019","rcvd":71,"when_epoch":1576112090,"when_epoch_utc":null}]
|
||||
|
2
tests/fixtures/osx-10.14.6/dig-axfr.json
vendored
2
tests/fixtures/osx-10.14.6/dig-axfr.json
vendored
File diff suppressed because one or more lines are too long
2
tests/fixtures/osx-10.14.6/dig-x.json
vendored
2
tests/fixtures/osx-10.14.6/dig-x.json
vendored
@ -1 +1 @@
|
||||
[{"id": 27071, "opcode": "QUERY", "status": "NOERROR", "flags": ["qr", "rd", "ra"], "query_num": 1, "answer_num": 1, "authority_num": 0, "additional_num": 1, "question": {"name": "1.1.1.1.in-addr.arpa.", "class": "IN", "type": "PTR"}, "answer": [{"name": "1.1.1.1.in-addr.arpa.", "class": "IN", "type": "PTR", "ttl": 1800, "data": "one.one.one.one."}], "query_time": 39, "server": "2600", "when": "Wed Dec 11 16:54:51 PST 2019", "rcvd": 78}]
|
||||
[{"id":27071,"opcode":"QUERY","status":"NOERROR","flags":["qr","rd","ra"],"query_num":1,"answer_num":1,"authority_num":0,"additional_num":1,"question":{"name":"1.1.1.1.in-addr.arpa.","class":"IN","type":"PTR"},"answer":[{"name":"1.1.1.1.in-addr.arpa.","class":"IN","type":"PTR","ttl":1800,"data":"one.one.one.one."}],"query_time":39,"server":"2600","when":"Wed Dec 11 16:54:51 PST 2019","rcvd":78,"when_epoch":1576112091,"when_epoch_utc":null}]
|
||||
|
2
tests/fixtures/osx-10.14.6/dig.json
vendored
2
tests/fixtures/osx-10.14.6/dig.json
vendored
@ -1 +1 @@
|
||||
[{"id": 54065, "opcode": "QUERY", "status": "NOERROR", "flags": ["qr", "rd", "ra"], "query_num": 1, "answer_num": 5, "authority_num": 0, "additional_num": 1, "question": {"name": "www.cnn.com.", "class": "IN", "type": "A"}, "answer": [{"name": "www.cnn.com.", "class": "IN", "type": "CNAME", "ttl": 72, "data": "turner-tls.map.fastly.net."}, {"name": "turner-tls.map.fastly.net.", "class": "IN", "type": "A", "ttl": 1, "data": "151.101.65.67"}, {"name": "turner-tls.map.fastly.net.", "class": "IN", "type": "A", "ttl": 1, "data": "151.101.1.67"}, {"name": "turner-tls.map.fastly.net.", "class": "IN", "type": "A", "ttl": 1, "data": "151.101.193.67"}, {"name": "turner-tls.map.fastly.net.", "class": "IN", "type": "A", "ttl": 1, "data": "151.101.129.67"}], "query_time": 41, "server": "2600", "when": "Wed Dec 11 16:54:50 PST 2019", "rcvd": 143}, {"id": 64484, "opcode": "QUERY", "status": "NOERROR", "flags": ["qr", "rd", "ra"], "query_num": 1, "answer_num": 1, "authority_num": 0, "additional_num": 1, "question": {"name": "www.google.com.", "class": "IN", "type": "A"}, "answer": [{"name": "www.google.com.", "class": "IN", "type": "A", "ttl": 64, "data": "172.217.12.68"}], "query_time": 31, "server": "2600", "when": "Wed Dec 11 16:54:50 PST 2019", "rcvd": 59}]
|
||||
[{"id":54065,"opcode":"QUERY","status":"NOERROR","flags":["qr","rd","ra"],"query_num":1,"answer_num":5,"authority_num":0,"additional_num":1,"question":{"name":"www.cnn.com.","class":"IN","type":"A"},"answer":[{"name":"www.cnn.com.","class":"IN","type":"CNAME","ttl":72,"data":"turner-tls.map.fastly.net."},{"name":"turner-tls.map.fastly.net.","class":"IN","type":"A","ttl":1,"data":"151.101.65.67"},{"name":"turner-tls.map.fastly.net.","class":"IN","type":"A","ttl":1,"data":"151.101.1.67"},{"name":"turner-tls.map.fastly.net.","class":"IN","type":"A","ttl":1,"data":"151.101.193.67"},{"name":"turner-tls.map.fastly.net.","class":"IN","type":"A","ttl":1,"data":"151.101.129.67"}],"query_time":41,"server":"2600","when":"Wed Dec 11 16:54:50 PST 2019","rcvd":143,"when_epoch":1576112090,"when_epoch_utc":null},{"id":64484,"opcode":"QUERY","status":"NOERROR","flags":["qr","rd","ra"],"query_num":1,"answer_num":1,"authority_num":0,"additional_num":1,"question":{"name":"www.google.com.","class":"IN","type":"A"},"answer":[{"name":"www.google.com.","class":"IN","type":"A","ttl":64,"data":"172.217.12.68"}],"query_time":31,"server":"2600","when":"Wed Dec 11 16:54:50 PST 2019","rcvd":59,"when_epoch":1576112090,"when_epoch_utc":null}]
|
||||
|
2
tests/fixtures/ubuntu-18.04/dig-aaaa.json
vendored
2
tests/fixtures/ubuntu-18.04/dig-aaaa.json
vendored
@ -1 +1 @@
|
||||
[{"id": 45806, "opcode": "QUERY", "status": "NOERROR", "flags": ["qr", "rd", "ra"], "query_num": 1, "answer_num": 1, "authority_num": 0, "additional_num": 1, "question": {"name": "www.google.com.", "class": "IN", "type": "AAAA"}, "answer": [{"name": "www.google.com.", "class": "IN", "type": "AAAA", "ttl": 5, "data": "2607:f8b0:4000:812::2004"}], "query_time": 39, "server": "127.0.0.53#53(127.0.0.53)", "when": "Thu Oct 31 14:21:04 UTC 2019", "rcvd": 71}]
|
||||
[{"id":45806,"opcode":"QUERY","status":"NOERROR","flags":["qr","rd","ra"],"query_num":1,"answer_num":1,"authority_num":0,"additional_num":1,"question":{"name":"www.google.com.","class":"IN","type":"AAAA"},"answer":[{"name":"www.google.com.","class":"IN","type":"AAAA","ttl":5,"data":"2607:f8b0:4000:812::2004"}],"query_time":39,"server":"127.0.0.53#53(127.0.0.53)","when":"Thu Oct 31 14:21:04 UTC 2019","rcvd":71,"when_epoch":1572556864,"when_epoch_utc":1572531664}]
|
||||
|
2
tests/fixtures/ubuntu-18.04/dig-axfr.json
vendored
2
tests/fixtures/ubuntu-18.04/dig-axfr.json
vendored
File diff suppressed because one or more lines are too long
2
tests/fixtures/ubuntu-18.04/dig-x.json
vendored
2
tests/fixtures/ubuntu-18.04/dig-x.json
vendored
@ -1 +1 @@
|
||||
[{"id": 28514, "opcode": "QUERY", "status": "NOERROR", "flags": ["qr", "rd", "ra"], "query_num": 1, "answer_num": 1, "authority_num": 0, "additional_num": 1, "question": {"name": "1.1.1.1.in-addr.arpa.", "class": "IN", "type": "PTR"}, "answer": [{"name": "1.1.1.1.in-addr.arpa.", "class": "IN", "type": "PTR", "ttl": 5, "data": "one.one.one.one."}], "query_time": 37, "server": "127.0.0.53#53(127.0.0.53)", "when": "Thu Oct 31 14:21:05 UTC 2019", "rcvd": 78}]
|
||||
[{"id":28514,"opcode":"QUERY","status":"NOERROR","flags":["qr","rd","ra"],"query_num":1,"answer_num":1,"authority_num":0,"additional_num":1,"question":{"name":"1.1.1.1.in-addr.arpa.","class":"IN","type":"PTR"},"answer":[{"name":"1.1.1.1.in-addr.arpa.","class":"IN","type":"PTR","ttl":5,"data":"one.one.one.one."}],"query_time":37,"server":"127.0.0.53#53(127.0.0.53)","when":"Thu Oct 31 14:21:05 UTC 2019","rcvd":78,"when_epoch":1572556865,"when_epoch_utc":1572531665}]
|
||||
|
2
tests/fixtures/ubuntu-18.04/dig.json
vendored
2
tests/fixtures/ubuntu-18.04/dig.json
vendored
@ -1 +1 @@
|
||||
[{"id": 52284, "opcode": "QUERY", "status": "NOERROR", "flags": ["qr", "rd", "ra"], "query_num": 1, "answer_num": 5, "authority_num": 0, "additional_num": 1, "question": {"name": "www.cnn.com.", "class": "IN", "type": "A"}, "answer": [{"name": "www.cnn.com.", "class": "IN", "type": "CNAME", "ttl": 5, "data": "turner-tls.map.fastly.net."}, {"name": "turner-tls.map.fastly.net.", "class": "IN", "type": "A", "ttl": 4, "data": "151.101.65.67"}, {"name": "turner-tls.map.fastly.net.", "class": "IN", "type": "A", "ttl": 4, "data": "151.101.1.67"}, {"name": "turner-tls.map.fastly.net.", "class": "IN", "type": "A", "ttl": 4, "data": "151.101.193.67"}, {"name": "turner-tls.map.fastly.net.", "class": "IN", "type": "A", "ttl": 4, "data": "151.101.129.67"}], "query_time": 31, "server": "127.0.0.53#53(127.0.0.53)", "when": "Thu Oct 31 14:21:04 UTC 2019", "rcvd": 143}, {"id": 47686, "opcode": "QUERY", "status": "NOERROR", "flags": ["qr", "rd", "ra"], "query_num": 1, "answer_num": 1, "authority_num": 0, "additional_num": 1, "question": {"name": "www.google.com.", "class": "IN", "type": "A"}, "answer": [{"name": "www.google.com.", "class": "IN", "type": "A", "ttl": 5, "data": "172.217.1.228"}], "query_time": 32, "server": "127.0.0.53#53(127.0.0.53)", "when": "Thu Oct 31 14:21:04 UTC 2019", "rcvd": 59}]
|
||||
[{"id":52284,"opcode":"QUERY","status":"NOERROR","flags":["qr","rd","ra"],"query_num":1,"answer_num":5,"authority_num":0,"additional_num":1,"question":{"name":"www.cnn.com.","class":"IN","type":"A"},"answer":[{"name":"www.cnn.com.","class":"IN","type":"CNAME","ttl":5,"data":"turner-tls.map.fastly.net."},{"name":"turner-tls.map.fastly.net.","class":"IN","type":"A","ttl":4,"data":"151.101.65.67"},{"name":"turner-tls.map.fastly.net.","class":"IN","type":"A","ttl":4,"data":"151.101.1.67"},{"name":"turner-tls.map.fastly.net.","class":"IN","type":"A","ttl":4,"data":"151.101.193.67"},{"name":"turner-tls.map.fastly.net.","class":"IN","type":"A","ttl":4,"data":"151.101.129.67"}],"query_time":31,"server":"127.0.0.53#53(127.0.0.53)","when":"Thu Oct 31 14:21:04 UTC 2019","rcvd":143,"when_epoch":1572556864,"when_epoch_utc":1572531664},{"id":47686,"opcode":"QUERY","status":"NOERROR","flags":["qr","rd","ra"],"query_num":1,"answer_num":1,"authority_num":0,"additional_num":1,"question":{"name":"www.google.com.","class":"IN","type":"A"},"answer":[{"name":"www.google.com.","class":"IN","type":"A","ttl":5,"data":"172.217.1.228"}],"query_time":32,"server":"127.0.0.53#53(127.0.0.53)","when":"Thu Oct 31 14:21:04 UTC 2019","rcvd":59,"when_epoch":1572556864,"when_epoch_utc":1572531664}]
|
||||
|
Reference in New Issue
Block a user