HOST(1) | BIND9 | HOST(1) |
host - DNS lookup utility
host [-aCdlnrsTwv] [-c class] [-N ndots] [-R number] [-t type] [-W wait] [-m flag] [-4] [-6] [-v] [-V] {name} [server]
host is a simple utility for performing DNS lookups. It is normally used to convert names to IP addresses and vice versa. When no arguments or options are given, host prints a short summary of its command line arguments and options.
name is the domain name that is to be looked up. It can also be a dotted-decimal IPv4 address or a colon-delimited IPv6 address, in which case host will by default perform a reverse lookup for that address. server is an optional argument which is either the name or IP address of the name server that host should query instead of the server or servers listed in /etc/resolv.conf.
-4
-6
-a
-c class
-C
-d
-i
-l
Together, the -l -a options print all records in the zone.
-N ndots
-r
-R number
-s
-t type
When no query type is specified, host automatically selects an appropriate query type. By default, it looks for A, AAAA, and MX records. If the -C option is given, queries will be made for SOA records. If name is a dotted-decimal IPv4 address or colon-delimited IPv6 address, host will query for PTR records.
If a query type of IXFR is chosen the starting serial number can be specified by appending an equal followed by the starting serial number (like -t IXFR=12345678).
-T
-m flag
-v
-V
-w
-W wait
By default, host will wait for 5 seconds for UDP responses and 10 seconds for TCP connections.
See also the -w option.
The host command does not use the host name and address resolution or the DNS query routing mechanisms used by other processes running on macOS. The results of name or address queries printed by host may differ from those found by other processes that use the macOS native name and address resolution mechanisms. The results of DNS queries may also differ from queries that use the macOS DNS routing library.
If host has been built with IDN (internationalized domain name) support, it can accept and display non-ASCII domain names. host appropriately converts character encoding of domain name before sending a request to DNS server or displaying a reply from the server. If you'd like to turn off the IDN support for some reason, defines the IDN_DISABLE environment variable. The IDN support is disabled if the variable is set when host runs.
/etc/resolv.conf
dig(1), named(8).
Internet Systems Consortium, Inc.
Copyright © 2004, 2005, 2007-2009, 2014-2016 Internet
Systems Consortium, Inc. ("ISC")
Copyright © 2000-2002 Internet Software Consortium.
2018-05-25 | ISC |