summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_host
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2018-12-24 04:40:22 +0100
committerAxel Beckert <abe@deuxchevaux.org>2018-12-24 04:40:22 +0100
commitbf8b7f713a5b04a191f4596fb86bbbfca0a855ce (patch)
treeb647a8dc990c8c845b8a8eca7bf92fbbf17e1fb5 /Completion/Unix/Command/_host
parent06946d431a4426c6e5dffec1d7edb17c1dbd467c (diff)
parent9dbde9e9c7d22ee0d301e4a2fecf97906d1ddce9 (diff)
downloadzsh-bf8b7f713a5b04a191f4596fb86bbbfca0a855ce.tar.gz
zsh-bf8b7f713a5b04a191f4596fb86bbbfca0a855ce.zip
New upstream release candidate 5.6.2-test-2
Merge branch 'upstream' at 'zsh-5.6.2-test-2' into branch debian
Diffstat (limited to 'Completion/Unix/Command/_host')
-rw-r--r--Completion/Unix/Command/_host23
1 files changed, 23 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_host b/Completion/Unix/Command/_host
new file mode 100644
index 000000000..e1174d46c
--- /dev/null
+++ b/Completion/Unix/Command/_host
@@ -0,0 +1,23 @@
+#compdef host
+
+# Note: This command is closely related to (and shares some options with) dig
+_arguments -s -S -A '-*' : \
+ '(: * -)-V[display version information]' \
+ '(-6)-4[use IPv4 only]' \
+ '(-4)-6[use IPv6 only]' \
+ '(-v -t)-a[query for all record types or (with -l) list all zone records]' \
+ '(-d -v)'{-d,-v}'[increase output verbosity]' \
+ '-c+[specify query class]:query class:compadd -M "m\:{a-z}={A-Z}" - CH CS HS IN' \
+ '-C[check SOA consistency]' \
+ '-l[list zone records]' \
+ '-N+[specify number of dots required to consider host name absolute]:number of dots' \
+ '-r[query non-recursively (clear RD bit)]' \
+ '-R+[specify number of retries for UDP queries]:number of retries [1]' \
+ '-s[do not try next name server after SERVFAIL]' \
+ '-t+[specify query type]: :_dns_types' \
+ '-T[query via TCP]' \
+ '*-m+[specify memory-usage debug flag]:debug flag:(record usage trace)' \
+ '(-W)-w[disable query timeout (wait forever)]' \
+ '(-w)-W+[specify query timeout]:query timeout (seconds) [5 (UDP), 10 (TCP)]' \
+ '1: :_hosts' \
+ '2::DNS server:_hosts'