]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Change the dig documentation
authorOndřej Surý <ondrej@sury.org>
Tue, 6 Nov 2018 04:45:13 +0000 (11:45 +0700)
committerOndřej Surý <ondrej@sury.org>
Tue, 6 Nov 2018 05:48:08 +0000 (12:48 +0700)
bin/dig/dig.c
bin/dig/dig.docbook

index 0649c089fe81980eb42c689d4cb6de30b103f0cf..47d18ae331bfba60081ae3b8507e27d7be7e5cc7 100644 (file)
@@ -192,8 +192,10 @@ help(void) {
 "                 +[no]fail           (Don't try next server on SERVFAIL)\n"
 "                 +[no]header-only    (Send query without a question section)\n"
 "                 +[no]identify       (ID responders in short answers)\n"
-"                 +[no]idnin          (Parse IDN names)\n"
-"                 +[no]idnout         (Convert IDN response)\n"
+#ifdef HAVE_LIBIDN2
+"                 +[no]idnin          (Parse IDN names [default=on on tty])\n"
+"                 +[no]idnout         (Convert IDN response [default=on on tty])\n"
+#endif
 "                 +[no]ignore         (Don't revert to TCP for TC responses.)\n"
 "                 +[no]keepalive      (Request EDNS TCP keepalive)\n"
 "                 +[no]keepopen       (Keep the TCP socket open between queries)\n"
index 05fccbe4dcee6ea69851d6358cbac1df16e57aa2..aa1bd3a38cbc1a2f007fa11467564f625d9b5a4e 100644 (file)
            <para>
              Process [do not process] IDN domain names on input.
              This requires IDN SUPPORT to have been enabled at
-             compile time.  The default is to process IDN input.
+             compile time.
+           </para>
+           <para>
+             The default is to process IDN input when standard output
+             is a tty.  The IDN processing on input is disabled when
+             dig output is redirected to files, pipes, and other
+             non-tty file descriptors.
            </para>
          </listitem>
        </varlistentry>
            <para>
              Convert [do not convert] puny code on output.
              This requires IDN SUPPORT to have been enabled at
-             compile time.  The default is to convert output.
+             compile time.
+           </para>
+           <para>
+             The default is to process puny code on output when
+             standard output is a tty.  The puny code processing on
+             output is disabled when dig output is redirected to
+             files, pipes, and other non-tty file descriptors.
            </para>
          </listitem>
        </varlistentry>