server statement not checking for valid IP to be resolvable
Dear Support Team,
More or less by a mistake by me ( I had the wrong copy&paste string in the buffer ) I figured out the server name is not checked if this is a valid domain name or not. It just takes the strings and says "Config Succeeded". See below.
"justaword" is at it says not a hostname or domain name and cannot be resolved.
Not to say it always stays in the "INIT" state.
And finally it's not possible to remove this configured mistake with the "unpeer" statement.
Kind regards
Hans
# ntpq
ntpq> config server justaword noselect
Config Succeeded
ntpq> peer
remote refid st t when poll reach delay offset jitter
=======================================================================================================
*bwntpz.bluewin.ch 195.186.11.230 2 u 107 128 377 22.0292 1.5517 0.1301
-stratum2-1.ntp.techfak.net 129.70.130.70 2 u 119 128 377 23.2987 1.3738 0.0885
justaword .INIT. 16 u - 1024 0 0.0000 0.0000 0.0019
ntpq> config unpeer justaword
Config Succeeded
ntpq> pee
remote refid st t when poll reach delay offset jitter
=======================================================================================================
*bwntpz.bluewin.ch 195.186.11.230 2 u 1 128 377 22.1368 1.6119 0.1274
-stratum2-1.ntp.techfak.net 129.70.130.71 2 u 16 128 377 23.4692 1.3992 0.0657
justaword .INIT. 16 u - 1024 0 0.0000 0.0000 0.0019
ntpq> ver
ntpsec-0.9.7+1041 2017-07-12T15:13:44-0500
ntpq>