diff --git a/chrony.texi b/chrony.texi index 38df68a..396d419 100644 --- a/chrony.texi +++ b/chrony.texi @@ -1093,6 +1093,10 @@ supported only on Linux. @item -m This option will lock chronyd into RAM so that it will never be paged out. This mode is only supported on Linux. +@item -4 +With this option hostnames will be resolved only to IPv4 addresses. +@item -6 +With this option hostnames will be resolved only to IPv6 addresses. @end table On systems that support an @file{/etc/rc.local} file for starting @@ -2472,6 +2476,10 @@ This option allows the user to specify the UDP port number which the target @code{chronyd} is using for its command & monitoring connections. This defaults to the compiled-in default; there would rarely be a need to change this. +@item -4 +With this option hostnames will be resolved only to IPv4 addresses. +@item -6 +With this option hostnames will be resolved only to IPv6 addresses. @end table @c }}} @c {{{ SS:Security with chronyc diff --git a/chronyc.1 b/chronyc.1 index 53e8d69..1edcdb0 100644 --- a/chronyc.1 +++ b/chronyc.1 @@ -31,13 +31,20 @@ specify port-number .TP \fB\-n\fR display raw IP addresses (don't attempt to look up hostnames) -.TP \fIcommand\fR +.TP +\fB\-4\fR +resolve hostnames only to IPv4 addresses +.TP +\fB\-6\fR +resolve hostnames only to IPv6 addresses +.TP +\fIcommand\fR specify command. If no command is given, chronyc will read commands interactively. .SH VERSION -1.17 +1.24 .SH BUGS To report bugs, please contact the author and/or visit \fIhttp://chrony.tuxfamily.org diff --git a/chronyd.8 b/chronyd.8 index e4b94fa..6e49759 100644 --- a/chronyd.8 +++ b/chronyd.8 @@ -94,6 +94,12 @@ user. So far, it works only on Linux when compiled with capabilities support. .TP .B \-v This option displays \fBchronyd\fR's version number to the terminal and exits +.TP +.B \-4 +Resolve hostnames only to IPv4 addresses. +.TP +.B \-6 +Resolve hostnames only to IPv6 addresses. .SH FILES \fI/etc/chrony.conf\fR