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

dnsquery

Synopsis

dnsquery [options] host
                  

Queries Internet domain name servers. A simpler alternative to nslookup, dnsquery displays information about host as returned by the default or a specified name server.

Options

-n nameserver

Query server namerserver instead of the default name server specified in /etc/resolve.conf.

-t type

Change type of information returned from a query to one of the following:

A

Host’s Internet address

AFSDB

DCE or AFS server

ANY

Any available information (default)

CNAME

Canonical name for an alias

HINFO

Host CPU and operating system type

MG

Mail group member

MINFO

Mailbox or mail list information

MX

Mail exchanger

NS

Nameserver for the named zone

PTR

Hostname or pointer to other information

RP

Responsible person

SOA

Domain start-of-authority

WKS

Supported well-known services

-c class

Set query class to IN (Internet), CHAOS, HESIOD, or ANY. Default is IN.

-r number

Set number of retries to number.

-p period

Set seconds to wait before retries to period.

-d

Turn on debugging mode.

-s, -v

Connect with the name server using a TCP stream rather than a UDP datagram, the default.

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