From 3b9d9ad58b2d85a10960819f5c7a4606b33e9ab2 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Thu, 10 Jan 2013 11:48:46 -0800 Subject: [PATCH] [master] doc clarification about dig & resolv.conf --- bin/dig/dig.docbook | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/bin/dig/dig.docbook b/bin/dig/dig.docbook index 01336a1f14..50fa5725a5 100644 --- a/bin/dig/dig.docbook +++ b/bin/dig/dig.docbook @@ -117,9 +117,10 @@ Unless it is told to query a specific name server, - dig will try each of the servers listed - in - /etc/resolv.conf. + dig will try each of the servers listed in + /etc/resolv.conf. If no usable server addreses + are found, dig will send the query to the local + host. @@ -158,20 +159,25 @@ server - is the name or IP address of the name server to query. This can - be an IPv4 - address in dotted-decimal notation or an IPv6 + is the name or IP address of the name server to query. This + can be an IPv4 address in dotted-decimal notation or an IPv6 address in colon-delimited notation. When the supplied - server argument is a - hostname, - dig resolves that name before - querying that name - server. If no server - argument is provided, - dig consults /etc/resolv.conf - and queries the name servers listed there. The reply from the - name - server that responds is displayed. + server argument is a hostname, + dig resolves that name before querying + that name server. + + + If no server argument is + provided, dig consults + /etc/resolv.conf; if an + address is found there, it queries the name server at + that address. If either of the or + options are in use, then + only addresses for the corresponding transport + will be tried. If no usable addresses are found, + dig will send the query to the + local host. The reply from the name server that + responds is displayed.