View previous topic :: View next topic |
Author |
Message |
jagdpanther l33t
Joined: 22 Nov 2003 Posts: 729
|
Posted: Tue Nov 27, 2012 5:14 pm Post subject: ntpq and ntpdc no longer connect to my local ntpd server |
|
|
It has been several months since I used them but ntpq and ntpdc no longer work.
Code: | $ ntpdc -p
localhost: timed out, nothing received
***Request timed out |
Code: | $ ntpq -p
localhost: timed out, nothing received
***Request timed out |
However my ntpd service is running:
$ ps ax | grep ntpd
10900 ? Ss 0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -u ntp:ntp
and ntpdate localhost works:
$ /usr/sbin/ntpdate -d localhost
...
27 Nov 09:09:10 ntpdate[14106]: adjust time server 127.0.0.1 offset -0.000038 sec
Code: | ntpq -d -d -d -d -d -d -p
Opening host localhost
Sending 12 octets
Packet data:
16 01 00 01 00 00 00 00
00 00 00 00
Sending 12 octets
Packet data:
16 01 00 01 00 00 00 00
00 00 00 00
localhost: timed out, nothing received
***Request timed out |
Any ideas? |
|
Back to top |
|
|
jagdpanther l33t
Joined: 22 Nov 2003 Posts: 729
|
Posted: Tue Nov 27, 2012 10:48 pm Post subject: solved |
|
|
I don't know what caused it, perhaps an update to ntp, but it appears that both ntpq and ntpdc use ipv6 by default. So, if I start ntpq or ntpdc as shown below, they work.
ntpq -4
ntpdc -4 |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|