Skip to content
jc-rs
GitHub

host

--hostv1.0.0

Converts `host` command output to JSON

commandslurpable
$ host | jc-rs --host

A real pair

From the reference corpus (generic/host-google.json). The left pane is the input the fixture ships; the right pane is the corpus's expected JSON. CI compares jc-rs with it field by field under the published differential. Hover a value to see where it came from.

hostgeneric
google.com has address 142.250.179.206
google.com has IPv6 address 2a00:1450:400e:811::200e
google.com mail is handled by 10 smtp.google.com.
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "hostname": "google.com",
    "address": [
      "142.250.179.206"
    ],
    "v6-address": [
      "2a00:1450:400e:811::200e"
    ],
    "mail": [
      "smtp.google.com."
    ]
  }
]

Fixture coverage

2/2oracle-valid pairs match under the published structural JSON comparison

Magic syntax

jc-rs hostjc-rs runs the command itself and parses what it prints. Recognised for: `host`

Source: crates/jc-rs-parsers/src/network/host.rs. jc-rs targets the schemas defined by the original Python tool. Fixture coverage above is the measured evidence for this parser; test the inputs your pipeline depends on. Compare