<br><br><div><span class="gmail_quote">On 20/05/07, <b class="gmail_sendername">Terry Polzin</b> <<a href="mailto:foxec208@wowway.com">foxec208@wowway.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Saturday May 19 2007, Lux Zhang wrote:<br>> Hi<br>> I tried to used ntpd to sync time, but always got a failure error:<br>><br>> [root@home]# /sbin/service ntpd restart<br>> Shutting down ntpd:                                        [  OK  ]
<br>> ntpd: Synchronizing with time server:                      [FAILED]<br>> Starting ntpd:                                             [  OK  ]<br>><br>> how to fix this?<br>><br>><br>> the conf file reads as
<br>><br>> # Permit time synchronization with our time source, but do not<br>> # permit the source to query or modify the service on this system.<br>> restrict default kod nomodify notrap nopeer noquery<br>>
<br>> # Permit all access over the loopback interface.  This could<br>> # be tightened as well, but to do so would effect some of<br>> # the administrative functions.<br>> restrict <a href="http://127.0.0.1">127.0.0.1
</a><br>><br>> # Hosts on local network are less restricted.<br>> #restrict <a href="http://192.168.1.0">192.168.1.0</a> mask <a href="http://255.255.255.0">255.255.255.0</a> nomodify notrap<br>><br>> # Use public servers from the 
<a href="http://pool.ntp.org">pool.ntp.org</a> project.<br>> # Please consider joining the pool (<a href="http://www.pool.ntp.org/join.html">http://www.pool.ntp.org/join.html</a>).<br>> server <a href="http://0.pool.ntp.org">
0.pool.ntp.org</a><br>> server <a href="http://1.pool.ntp.org">1.pool.ntp.org</a><br>> server <a href="http://2.pool.ntp.org">2.pool.ntp.org</a><br>> server <a href="http://asia.pool.ntp.org">asia.pool.ntp.org</a>
<br>> server <a href="http://0.fedora.pool.ntp.org">0.fedora.pool.ntp.org</a><br>> server <a href="http://1.fedora.pool.ntp.org">1.fedora.pool.ntp.org</a><br>> server <a href="http://2.fedora.pool.ntp.org">2.fedora.pool.ntp.org
</a><br>><br>> #broadcast <a href="http://192.168.1.255">192.168.1.255</a> key 42         # broadcast server<br>> #broadcastclient                        # broadcast client<br>> #broadcast <a href="http://224.0.1.1">
224.0.1.1</a> key 42             # multicast server<br>> #multicastclient <a href="http://224.0.1.1">224.0.1.1</a>              # multicast client<br>> #manycastserver <a href="http://239.255.254.254">239.255.254.254
</a>         # manycast server<br>> #manycastclient <a href="http://239.255.254.254">239.255.254.254</a> key 42  # manycast client<br>><br>> # Undisciplined Local Clock. This is a fake driver intended for backup<br>
> # and when no outside source of synchronized time is available.<br>> fudge   <a href="http://127.127.1.0">127.127.1.0</a> stratum 10<br>><br>> # Drift file.  Put this in a directory which the daemon can write to.
<br>> # No symbolic links allowed, either, since the daemon updates the file<br>> # by creating a temporary in the same directory and then rename()'ing<br>> # it to the file.<br>> driftfile /var/lib/ntp/drift
<br>><br>> # Key file containing the keys and key identifiers used when operating<br>> # with symmetric key cryptography.<br>> keys /etc/ntp/keys<br>><br>> # Specify the key identifiers which are trusted.
<br>> #trustedkey 4 8 42<br>><br>> # Specify the key identifier to use with the ntpdc utility.<br>> #requestkey 8<br>><br>> # Specify the key identifier to use with the ntpq utility.<br>> #controlkey 8
<br>> server <a href="http://127.127.1.0">127.127.1.0</a><br>> restrict <a href="http://0.pool.ntp.org">0.pool.ntp.org</a> mask <a href="http://255.255.255.255">255.255.255.255</a> nomodify notrap noquery<br>> restrict 
<a href="http://1.pool.ntp.org">1.pool.ntp.org</a> mask <a href="http://255.255.255.255">255.255.255.255</a> nomodify notrap noquery<br>> restrict <a href="http://2.pool.ntp.org">2.pool.ntp.org</a> mask <a href="http://255.255.255.255">
255.255.255.255</a> nomodify notrap noquery<br>> restrict <a href="http://asia.pool.ntp.org">asia.pool.ntp.org</a> mask <a href="http://255.255.255.255">255.255.255.255</a> nomodify notrap noquery<br>Have you got a network connection?
<br>Any additional info in /var/log/messages?</blockquote><div><br>I found out the ntpd servers are not found. using<br>[root@]# /usr/sbin/ntpdate -q <a href="http://0.fedora.pool.ntp.org">0.fedora.pool.ntp.org</a><br>server 
<a href="http://1.0.0.0">1.0.0.0</a>, stratum 0, offset 0.000000, delay 0.00000<br>20 May 11:38:18 ntpdate[4922]: no server suitable for synchronization found<br><br>It may be due to either the server is not up or my ISP can't look up the ip of the server
<br><br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">
fedora-list@redhat.com</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br><br></blockquote></div><br>