From: Ondřej Surý Date: Tue, 6 Nov 2018 04:45:13 +0000 (+0700) Subject: Change the dig documentation X-Git-Tag: v9.13.4~53^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7697923eab96870f9dc173e6f34344f726ae112b;p=thirdparty%2Fbind9.git Change the dig documentation --- diff --git a/bin/dig/dig.c b/bin/dig/dig.c index 0649c089fe8..47d18ae331b 100644 --- a/bin/dig/dig.c +++ b/bin/dig/dig.c @@ -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" diff --git a/bin/dig/dig.docbook b/bin/dig/dig.docbook index 05fccbe4dce..aa1bd3a38cb 100644 --- a/bin/dig/dig.docbook +++ b/bin/dig/dig.docbook @@ -777,7 +777,13 @@ 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. + + + 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. @@ -788,7 +794,13 @@ 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. + + + 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.