2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-02 23:55:27 +00:00

[master] doc clarification about dig & resolv.conf

This commit is contained in:
Evan Hunt
2013-01-10 11:48:46 -08:00
parent 4801931443
commit 3b9d9ad58b

View File

@@ -117,9 +117,10 @@
<para> <para>
Unless it is told to query a specific name server, Unless it is told to query a specific name server,
<command>dig</command> will try each of the servers listed <command>dig</command> will try each of the servers listed in
in <filename>/etc/resolv.conf</filename>. If no usable server addreses
<filename>/etc/resolv.conf</filename>. are found, <command>dig</command> will send the query to the local
host.
</para> </para>
<para> <para>
@@ -158,20 +159,25 @@
<term><constant>server</constant></term> <term><constant>server</constant></term>
<listitem> <listitem>
<para> <para>
is the name or IP address of the name server to query. This can is the name or IP address of the name server to query. This
be an IPv4 can be an IPv4 address in dotted-decimal notation or an IPv6
address in dotted-decimal notation or an IPv6
address in colon-delimited notation. When the supplied address in colon-delimited notation. When the supplied
<parameter>server</parameter> argument is a <parameter>server</parameter> argument is a hostname,
hostname, <command>dig</command> resolves that name before querying
<command>dig</command> resolves that name before that name server.
querying that name </para>
server. If no <parameter>server</parameter> <para>
argument is provided, If no <parameter>server</parameter> argument is
<command>dig</command> consults <filename>/etc/resolv.conf</filename> provided, <command>dig</command> consults
and queries the name servers listed there. The reply from the <filename>/etc/resolv.conf</filename>; if an
name address is found there, it queries the name server at
server that responds is displayed. that address. If either of the <option>-4</option> or
<option>-6</option> options are in use, then
only addresses for the corresponding transport
will be tried. If no usable addresses are found,
<command>dig</command> will send the query to the
local host. The reply from the name server that
responds is displayed.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>