Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
27
rated 0 times [  27] [ 0]  / answers: 1 / hits: 46889  / 2 Years ago, wed, october 12, 2022, 2:04:12

When I run ntpdate on its own, I get the following output:




8 Jun 15:47:46 ntpdate[31251]: no servers can be used, exiting




If I run it with the -q ntp.ubuntu.com switch, it seems to query just fine.



I have been hunting through many files and the most relevant one I have found is /etc/default/ntpdate, however, even with NTPDATE_USE_CONF set to no, I just can't understand/see how this error is occurring



Any ideas?



Update--



It appears that ntpdate-debianworks fine and is the actual command that makes use of /etc/default/ntpdate, but this doesn't answer the main question and I still can't find it...


More From » server

 Answers
0

After mucking around for most of the day, I have come to the following conclusion:



ntpdate-debian is the version to use if you want to use a config script, and in that case, you would edit the /etc/default/ntpdate file.



ntpdate cannot be used without arguments nor does it have a config file. If you want to use this to update, you have to state the ntp server in an argument, such as ntpdate ntp.ubuntu.com.
 


[#37767] Wednesday, October 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ateact

Total Points: 176
Total Questions: 130
Total Answers: 122

Location: Egypt
Member since Sun, Apr 23, 2023
1 Year ago
;