Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ntpq and ntpdc no longer connect to my local ntpd server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jagdpanther
l33t
l33t


Joined: 22 Nov 2003
Posts: 727

PostPosted: Tue Nov 27, 2012 5:14 pm    Post subject: ntpq and ntpdc no longer connect to my local ntpd server Reply with quote

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
View user's profile Send private message
jagdpanther
l33t
l33t


Joined: 22 Nov 2003
Posts: 727

PostPosted: Tue Nov 27, 2012 10:48 pm    Post subject: solved Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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