Where does ntpdate get its settings from and what is the "no servers can be used" error about?

Posted by wilhil on Ask Ubuntu See other posts from Ask Ubuntu or by wilhil
Published on 2012-06-08T14:50:48Z Indexed on 2012/06/08 16:49 UTC
Read the original article Hit count: 222

Filed under:
|
|
|
|

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-- been looking non stop...

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

© Ask Ubuntu or respective owner

Related posts about server

Related posts about command-line