table of contents
HOST(1) | BIND9 | HOST(1) |
NAME¶
host - DNS lookup utility
SYNOPSIS¶
host [-aCdlnrsTUwv] [-c class] [-N ndots] [-p port] [-R number] [-t type] [-W wait] [-m flag] [[-4] | [-6]] [-v] [-V] {name} [server]
DESCRIPTION¶
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.
OPTIONS¶
-4
-6
-a
-c class
-C
-d
-i
-l
Together, the -l -a options print all records in the zone.
-N ndots
-p port
-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, -U
-m flag
-v
-V
-w
-W wait
By default, host will wait for 5 seconds for UDP responses and 10 seconds for TCP connections. These defaults can be overridden by the timeout option in /etc/resolv.conf.
See also the -w option.
IDN SUPPORT¶
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, define the IDN_DISABLE environment variable. The IDN support is disabled if the variable is set when host runs.
FILES¶
/etc/resolv.conf
SEE ALSO¶
AUTHOR¶
Internet Systems Consortium, Inc.
COPYRIGHT¶
Copyright © 2000-2002, 2004, 2005, 2007-2009, 2014-2021 Internet Systems Consortium, Inc. ("ISC")
2009-01-20 | ISC |