Skip to Content
Mac OS X in a Nutshell
book

Mac OS X in a Nutshell

by Jason McIntosh, Chuck Toporek, Chris Stone
January 2003
Intermediate to advanced
832 pages
32h 40m
English
O'Reilly Media, Inc.
Content preview from Mac OS X in a Nutshell

Name

host

Synopsis

host [options] host [server]
host [options] domain [server]

Prints information about specified hosts or zones in DNS. Hosts may be IP addresses or hostnames; host converts IP addresses to hostnames by default and appends the local domain to hosts without a trailing dot. Default servers are determined in /etc/resolv.conf. For more information about hosts and zones, try Chapters 1 and 2 of DNS and BIND (O’Reilly & Associates, Inc., 2001).

Options

-a

all, same as -t ANY.

-c class

Search for specified resource record class (in[ternet], cs[net], ch[aos], hs/hesiod, or any). Default is in. The chaos and csnet classes, although defined in RFC1035, are rejected as invalid classes by the host command.

-d

Debugging mode. -dd is a more verbose version.

-l domain

List all machines in domain.

-r

No recursion. Do not ask contacted server to query other servers, but require only the information that it has cached.

-s

Chase signatures back to parent key (DNSSEC).

-t type

Look for type entries in the resource record. Acceptable values for type are: a, ns, md, mf, cnames, soa, mb, mg, mr, null, wks, ptr, hinfo, minfo, mx, any, and * (careful, the shell loves those asterisks; be sure to escape them).

-v

Verbose. Include all fields from the resource record, even time-to-live and class, as well as “additional information” and “authoritative nameservers” (provided by the remote nameserver).

-w

Wait forever for a response from a queried server.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mac OS X Internals: A Systems Approach

Mac OS X Internals: A Systems Approach

Amit Singh
C++ In a Nutshell

C++ In a Nutshell

Ray Lischner
Linux Shell Scripting Cookbook - Third Edition

Linux Shell Scripting Cookbook - Third Edition

Clif Flynt, Sarath Lakshman, Shantanu Tushar
Optimized C++

Optimized C++

Kurt Guntheroth

Publisher Resources

ISBN: 0596003706Supplemental ContentCatalog PageErrata