usage.txt 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. \4mUsage:\0m
  2. \1mdog\0m \1;33m[OPTIONS]\0m [--] \32m<arguments>\0m
  3. \4mExamples:\0m
  4. \1mdog\0m \32mexample.net\0m Query a domain using default settings
  5. \1mdog\0m \32mexample.net MX\0m ...looking up MX records instead
  6. \1mdog\0m \32mexample.net MX @1.1.1.1\0m ...using a specific nameserver instead
  7. \1mdog\0m \32mexample.net MX @1.1.1.1\0m \1;33m-T\0m ...using TCP rather than UDP
  8. \1mdog\0m \1;33m-q\0m \33mexample.net\0m \1;33m-t\0m \33mMX\0m \1;33m-n\0m \33m1.1.1.1\0m \1;33m-T\0m As above, but using explicit arguments
  9. \4mQuery options:\0m
  10. \32m<arguments>\0m Human-readable host names, nameservers, types, or classes
  11. \1;33m-q\0m, \1;33m--query\0m=\33mHOST\0m Host name or IP address to query
  12. \1;33m-t\0m, \1;33m--type\0m=\33mTYPE\0m Type of the DNS record being queried (A, MX, NS...)
  13. \1;33m-n\0m, \1;33m--nameserver\0m=\33mADDR\0m Address of the nameserver to send packets to
  14. \1;33m--class\0m=\33mCLASS\0m Network class of the DNS record being queried (IN, CH, HS)
  15. \4mSending options:\0m
  16. \1;33m--edns\0m=\33mSETTING\0m Whether to OPT in to EDNS (disable, hide, show)
  17. \1;33m--txid\0m=\33mNUMBER\0m Set the transaction ID to a specific value
  18. \1;33m-Z\0m=\33mTWEAKS\0m Uncommon protocol tweaks
  19. \4mProtocol options:\0m
  20. \1;33m-U\0m, \1;33m--udp\0m Use the DNS protocol over UDP
  21. \1;33m-T\0m, \1;33m--tcp\0m Use the DNS protocol over TCP
  22. \1;33m-S\0m, \1;33m--tls\0m Use the DNS-over-TLS protocol
  23. \1;33m-H\0m, \1;33m--https\0m Use the DNS-over-HTTPS protocol
  24. \4mOutput options:\0m
  25. \1;33m-1\0m, \1;33m--short\0m Short mode: display nothing but the first result
  26. \1;33m-J\0m, \1;33m--json\0m Display the output as JSON
  27. \1;33m--color\0m, \1;33m--colour\0m=\33mWHEN\0m When to colourise the output (always, automatic, never)
  28. \1;33m--seconds\0m Do not format durations, display them as seconds
  29. \1;33m--time\0m Print how long the response took to arrive
  30. \4mMeta options:\0m
  31. \1;33m-?\0m, \1;33m--help\0m Print list of command-line options
  32. \1;33m-v\0m, \1;33m--version\0m Print version information