Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've noticed that some embedded devices (such as OpenWRT, which runs on Busybox) use rdate to set the system time, instead of NTP. Rdate is an older time protocol, and I'm having trouble finding any working rdate servers in the United States.

Is it possible to for rdate to sync the time with NTP time servers?

share|improve this question
    
+1, Good luck. "older protocol" is being pretty nice as the protocol was formalized 27 years ago, and was used before that. Perhaps finding a Daytime protocol server, they might run both protocols (Daytime was a very similar service, but human readable instead of a binary number of seconds). –  Chris S Jul 1 '10 at 15:22
    
It's true that rdate/time is an obsoleted protocol, but this how OpenWrt sets the time by default, due to space considerations. –  Stefan Lasiewski Jun 29 '11 at 22:18
add comment

4 Answers

up vote 2 down vote accepted

You can supply an rdate source from Unix (Linux) using either inetd or xinetd. The server is built in to both these servers.

Where possible, use ntp as noted above. Your ISP's DNS servers are likely to provide NTP services. These are likely closer on the net than any other servers. As suggested above, you should consider setting up an NTP server on your network.

OpenWRT has an ntp package, and can be uses as your NTP server.

share|improve this answer
    
+1 : I didn't see the ntpclient package for OpenWRT at first. Thanks for mentioning it. I now use NTP. –  Stefan Lasiewski Aug 6 '10 at 22:59
    
There is no NTP client. NTP works as both a client and server. Depending on your configuration, the server may not provide information to any clients, but it is still there. –  BillThor Aug 7 '10 at 16:16
add comment

The rdate you have is a busybox applet that only speaks rdate, so no, it's not possible.

Your other option is to install an ntp client or an sntp (simple ntp) client, or to upgrade busybox to a version that has the ntpd applet. I don't know what packages are available to you, but ntp and msntp (both daemons) and ntpdate, bsd rdate (both one shot, the latter does speak sntp) are the options I see on debian.

share|improve this answer
add comment

Have you considered setting up your own server? Just setup a NTP on a publically accessible box, point it at a few good ntp servers. Setup the standard time service on your server. On a linux box you would need to install inetd if you don't have it, and then uncomment the time service in the /etc/inetd.conf. On a windows box you need to add the 'Simple TCP/IP services' feature.

Keep in mind that rdate is not really that good of a time service. Installing an sntp/ntp client will probably be a better choice if you need reliable time.

share|improve this answer
add comment

Most of these public servers still accept TIME requests, the protocol used by rdate.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.