id = "dog" name = "dog" description = "A command-line DNS client." homepage = "https://github.com/ogham/dog" executables = ["dog"] [commands] format = 1 label = "DNS lookup" description = "Query DNS records for a name. Uses the dog flag syntax (--query, --type, --nameserver)." quality = "ai-draft" base = "fig:dog" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/dog.ts" license = "MIT" [[commands.field]] id = "name" label = "Host name" type = "string" option = ["--query", "-q"] sources = ["fig"] [[commands.field]] id = "type" label = "Record type" type = "string" option = ["--type", "-t"] suggestions = [{ value = "A", label = "A" }, { value = "AAAA", label = "AAAA" }, { value = "MX", label = "MX" }, { value = "NS", label = "NS" }, { value = "TXT", label = "TXT" }, { value = "CNAME", label = "CNAME" }, { value = "SOA", label = "SOA" }] sources = ["fig"] [[commands.field]] id = "nameserver" label = "Nameserver" type = "string" option = ["--nameserver", "-n"] sources = ["fig"] [[commands.field]] id = "tcp" label = "Use TCP" type = "boolean" option = ["--tcp", "-T"] sources = ["fig"] [[commands.field]] id = "tls" label = "DNS-over-TLS" type = "boolean" option = ["--tls", "-S"] sources = ["fig"] [[commands.field]] id = "https" label = "DNS-over-HTTPS" type = "boolean" option = ["--https", "-H"] sources = ["fig"] [[commands.field]] id = "short" label = "Short output" type = "boolean" option = ["--short", "-1"] sources = ["fig"] [[commands.field]] id = "json" label = "JSON output" type = "boolean" option = ["--json", "-J"] sources = ["fig"] [[commands.field]] id = "time" label = "Print response time" type = "boolean" option = ["--time"] sources = ["fig"] [[commands.task]] id = "lookup" label = "Look up a record" fields = ["name", "type", "nameserver"] required = ["name"] [[commands.task]] id = "short" label = "Short answer" set = { short = [true] } fields = ["name", "type", "short"] required = ["name"] [[commands.group]] id = "basic" label = "Basic" fields = ["name", "type", "nameserver", "short", "json"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["tcp", "tls", "https", "time"]