dig.html revision b6a370c37fd21719c81065f0ec028254ba10c835
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater - Copyright (C) 2000, 2001 Internet Software Consortium.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - Permission to use, copy, modify, and distribute this software for any
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater - purpose with or without fee is hereby granted, provided that the above
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - copyright notice and this permission notice appear in all copies.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark AndrewsNAME="GENERATOR"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONTENT="Modular DocBook HTML Stylesheet Version 1.61
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="REFENTRY"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinBGCOLOR="#FFFFFF"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTEXT="#000000"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinLINK="#0000FF"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinVLINK="#840084"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinALINK="#0000FF"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="REFNAMEDIV"
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater>dig -- DNS lookup utility</DIV
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="REFSYNOPSISDIV"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein>Synopsis</H2
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic UpdaterCLASS="COMMAND"
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater> [@server] [<TT
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic UpdaterCLASS="REPLACEABLE"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="OPTION"
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsCLASS="REPLACEABLE"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="REPLACEABLE"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="OPTION"
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic UpdaterCLASS="REPLACEABLE"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="OPTION"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="REPLACEABLE"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="OPTION"
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic UpdaterCLASS="REPLACEABLE"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="OPTION"
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic UpdaterCLASS="REPLACEABLE"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="OPTION"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="REPLACEABLE"
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews>] [name] [type] [class] [queryopt...]</P
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="COMMAND"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="OPTION"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="COMMAND"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein> [global-queryopt...] [query...]</P
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="REFSECT1"
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updater>DESCRIPTION</H2
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic UpdaterCLASS="COMMAND"
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updater> (domain information groper) is a flexible tool
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinfor interrogating DNS name servers. It performs DNS lookups and
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updaterdisplays the answers that are returned from the name server(s) that
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updaterwere queried. Most DNS administrators use <B
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic UpdaterCLASS="COMMAND"
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updatertroubleshoot DNS problems because of its flexibility, ease of use and
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinclarity of output. Other lookup tools tend to have less functionality
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="COMMAND"
a1ad6695ed6f988406cf155aa26376f84f73bcb9Automatic UpdaterCLASS="COMMAND"
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater> is normally used with command-line
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinarguments, it also has a batch mode of operation for reading lookup
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinrequests from a file. A brief summary of its command-line arguments
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updaterand options is printed when the <TT
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="OPTION"
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater> option is given.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinUnlike earlier versions, the BIND9 implementation of
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="COMMAND"
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater> allows multiple lookups to be issued from the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeincommand line.</P
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater>Unless it is told to query a specific name server,
7208386cd37a2092c70eddf80cf29519b16c4c80Mark AndrewsCLASS="COMMAND"
507151045be68c671ffd4e2f37e17cdfa0376fc4Automatic Updater> will try each of the servers listed in
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="FILENAME"
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater>When no command line arguments or options are given, will perform an
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNS query for "." (the root).</P
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="REFSECT1"
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater>SIMPLE USAGE</H2
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater>A typical invocation of <B
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic UpdaterCLASS="COMMAND"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein> looks like:
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic UpdaterCLASS="PROGRAMLISTING"
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews> dig @server name type </PRE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="VARIABLELIST"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCLASS="CONSTANT"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews>is the name or IP address of the name server to query. This can be an IPv4
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrewsaddress in dotted-decimal notation or an IPv6
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsaddress in colon-delimited notation. When the supplied
922312472e2e05ebc64993d465999c5351b83036Automatic UpdaterCLASS="PARAMETER"
28b3569d6248168e6c00caab951521cc8141a49dAutomatic Updater> argument is a hostname,
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsCLASS="COMMAND"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews> resolves that name before querying that name
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updaterserver. If no <TT
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic UpdaterCLASS="PARAMETER"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews> argument is provided,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCLASS="COMMAND"
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews> consults <TT
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCLASS="FILENAME"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsand queries the name servers listed there. The reply from the name
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsserver that responds is displayed.</P
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsCLASS="CONSTANT"
9b469e3c59015b1a4899c9d8395168126fe094fdAutomatic Updater>is the name of the resource record that is to be looked up.</P
9b469e3c59015b1a4899c9d8395168126fe094fdAutomatic UpdaterCLASS="CONSTANT"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein>indicates what type of query is required —
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinANY, A, MX, SIG, etc.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="PARAMETER"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein> can be any valid query type. If no
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="PARAMETER"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein> argument is supplied,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="COMMAND"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein> will perform a lookup for an A record.</P
looked up using the IP6.ARPA domain and binary labels as defined in
RFC2874. To use the older RFC1886 method using the IP6.INT domain and