GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  KHOST (1)

NAME

khost - Simple DNS lookup utility \$1 \n[an-margin] level \n[rst2man-indent-level] level margin: \n[rst2man-indent\n[rst2man-indent-level]] - \n[rst2man-indent0] \n[rst2man-indent1] \n[rst2man-indent2]

CONTENTS

Synopsis
Description
     Parameters
     Options
Notes
Examples
Files
See Also
Author
Copyright

SYNOPSIS

khost [options] name [server]

DESCRIPTION

This utility sends a DNS query for the name to the server and prints a reply in more user-readable form. For more advanced DNS queries use kdig instead.

    Parameters

name Is a domain name that is to be looked up. If the name is IPv4 or IPv6 address the PTR query type is used.
server Is a name or an address of the nameserver to send a query to. The address can be specified using [address]:port notation. If no server is specified, the servers from /etc/resolv.conf are used.

If no arguments are provided, khost prints a short help.

    Options

-4 Use the IPv4 protocol only.
-6 Use the IPv6 protocol only.
-a Send ANY query with verbose mode.
-d Enable debug messages.
-h, --help Print the program help.
-r Disable recursion.
-T Use the TCP protocol.
-v Enable verbose output.
-V, --version
  Print the program version.
-w Wait forever for the reply.
-c class Set the query class (e.g. CH, CLASS4). The default class is IN.
-t type Set the query type (e.g. NS, IXFR=12345, TYPE65535). The default is to send 3 queries (A, AAAA and MX).
-R retries
  The number (>=0) of UDP retries to query a nameserver. The default is 1.
-W wait The time to wait for a reply in seconds. This timeout applies to each query try. The default is 2 seconds.

NOTES

Missing features with regard to ISC dig: Options -C, -i, -l, -m, -N and -s.

Differences with regard to ISC host: Option -d is not equivalent to -v, but enables debug messages.

The number of retries can be set to zero.

Verbose mode has slightly different format (same as kdig).

EXAMPLES

1. Get the A, AAAA and MX records for example.com:


$ khost example.com


2. Get the reverse record for address 192.0.2.1:


$ khost 192.0.2.1


3. Perform a verbose zone transfer for zone example.com:


$ khost -t AXFR -v example.com


FILES

/etc/resolv.conf

SEE ALSO

kdig(1), knsupdate(1).

AUTHOR

CZ.NIC Labs <http://www.knot-dns.cz>

COPYRIGHT

Copyright 2010–2016, CZ.NIC, z.s.p.o.
Search for    or go to Top of page |  Section 1 |  Main Index


2.1.1 KHOST (1) 2016-02-10

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.