<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SurlyJake &#187; ntpd</title>
	<atom:link href="http://www.surlyjake.com/tag/ntpd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.surlyjake.com</link>
	<description></description>
	<lastBuildDate>Fri, 30 Dec 2011 15:28:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>ntpq timed out on freeBSD</title>
		<link>http://www.surlyjake.com/2010/09/ntpq-timed-out-on-freebsd/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ntpq-timed-out-on-freebsd</link>
		<comments>http://www.surlyjake.com/2010/09/ntpq-timed-out-on-freebsd/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 18:42:38 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[FreeBSD8]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[ntpd]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=662</guid>
		<description><![CDATA[I was running ntpd locally on a server and wanted to check in on ntpd&#8217;s status. ntpq -p was not producing any output even though ntpd was running. # ntpq -p localhost: timed out, nothing received ***Request timed out This is because I had the option &#8220;restrict default ignore&#8221; set in /etc/ntp.conf. ntpq. This makes [...]]]></description>
			<content:encoded><![CDATA[<p>I was running <a href="http://www.surlyjake.com/tag/ntpd/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ntpd">ntpd</a> locally on a server and wanted to check in on <a href="http://www.surlyjake.com/tag/ntpd/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ntpd">ntpd</a>&#8217;s status. ntpq -p was not producing any output even though <a href="http://www.surlyjake.com/tag/ntpd/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ntpd">ntpd</a> was running.</p>
<pre><code># ntpq -p
localhost: timed out, nothing received
***Request timed out</code></pre>
<p>This is because I had the option &#8220;restrict default ignore&#8221; set in /etc/<a href="http://www.surlyjake.com/tag/ntp/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ntp">ntp</a>.conf. ntpq. This makes ntpd ignore EVERYTHING, even queries to the loopback interface. Ntpq queries ntpd over the loopback interface at 127.0.0.1. To allow these local queries, add:</p>
<pre><code> restrict 127.0.0.1</code></pre>
<p>to /etc/ntp.conf, then also add restrict lines for your other upstream ntp servers.</p>
<p>restart ntpd:</p>
<pre><code>/etc/rc.d/ntpd restart</code></pre>
<p>Now ntpq -p will show you status of it&#8217;s peers</p>
<pre><code># ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 dns3.untangle.c .INIT.          16 u    -   64    0    0.000    0.000   0.000
 mirror          .INIT.          16 u    -   64    0    0.000    0.000   0.000
 153.16.4.133    .INIT.          16 u    -   64    0    0.000    0.000   0.000</code></pre>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2010/09/ntpq-timed-out-on-freebsd/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2010/09/ntpq-timed-out-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD time updates with ntpdate and ntpd</title>
		<link>http://www.surlyjake.com/2008/11/freebsd-time-updates-with-ntpdate-and-ntpd/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=freebsd-time-updates-with-ntpdate-and-ntpd</link>
		<comments>http://www.surlyjake.com/2008/11/freebsd-time-updates-with-ntpdate-and-ntpd/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 05:53:33 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[FreeBSD7]]></category>
		<category><![CDATA[ntpd]]></category>
		<category><![CDATA[ntpdate]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=107</guid>
		<description><![CDATA[So FreeBSD&#8217;s time is out of wack. Two options: 1. ntpdate. This is manual. To run a time sync manually, just run ntpdate -b pool.ntp.org You can replace pool.ntp.org with whatever you want. To tell it to run whenever the system is booted, add this to /etc/rc.conf: ntpdate_enable="YES" ntpdate_hosts="[your ntp server]" This works, but if [...]]]></description>
			<content:encoded><![CDATA[<p>So <a href="http://www.surlyjake.com/tag/freebsd/" class="st_tag internal_tag" rel="tag" title="Posts tagged with FreeBSD">FreeBSD</a>&#8217;s <a href="http://www.surlyjake.com/tag/time/" class="st_tag internal_tag" rel="tag" title="Posts tagged with time">time</a> is out of wack. Two options:</p>
<p>1. <a href="http://www.surlyjake.com/tag/ntpdate/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ntpdate">ntpdate</a>. This is manual. To run a time sync manually, just run</p>
<pre><code>ntpdate -b pool.<a href="http://www.surlyjake.com/tag/ntp/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ntp">ntp</a>.org
</code></pre>
<p>You can replace pool.ntp.org with whatever you want. To tell it to run whenever the system is booted, add this to /etc/rc.conf:</p>
<pre><code>ntpdate_enable="YES"
ntpdate_hosts="[your ntp server]"</code></pre>
<p>This works, but if you don&#8217;t reboot often, could be unreliable.</p>
<p>2. ntdp. <a href="http://www.surlyjake.com/tag/ntpd/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ntpd">ntpd</a> just runs all the time and keeps you nsync with internet time servers. You would want to use this for servers that you don&#8217;t reboot all the time. for this:</p>
<p>create an /etc/ntpd.conf file:</p>
<pre><code>server pool.ntp.org
driftfile /etc/ntp.drift
logfile /var/log/ntpd.log</code></pre>
<p>you can start ntpd manually:</p>
<pre><code>ntpd
</code></pre>
<p>and/or add a startup entry for it in /etc/rc.conf:</p>
<pre><code>ntpd_enable="YES"</code></pre>
<p>I recommend setting up both of these on servers. Ntpdate will snap your system to a good point before you begin synchronizing with ntpd. ntpd by itself will take a lot longer to get you synced up.</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2008/11/freebsd-time-updates-with-ntpdate-and-ntpd/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2008/11/freebsd-time-updates-with-ntpdate-and-ntpd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Staying on time in Debian</title>
		<link>http://www.surlyjake.com/2008/09/staying-on-time-in-debian/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=staying-on-time-in-debian</link>
		<comments>http://www.surlyjake.com/2008/09/staying-on-time-in-debian/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 17:41:54 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Etch]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[ntpd]]></category>
		<category><![CDATA[ntupdate]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=38</guid>
		<description><![CDATA[To stay on time, you should really use ntpd. It is a daemon that runs all the time and makes tiny changes to the system clock. All you need to do is install ntp: aptitude install ntp after it&#8217;s installed, I encourage you to go over to http://www.pool.ntp.org/zone/@ and pick a pool in your continental [...]]]></description>
			<content:encoded><![CDATA[<p>To stay on <a href="http://www.surlyjake.com/tag/time/" class="st_tag internal_tag" rel="tag" title="Posts tagged with time">time</a>, you should really use <a href="http://www.surlyjake.com/tag/ntpd/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ntpd">ntpd</a>. It is a daemon that runs all the time and makes tiny changes to the system clock. All you need to do is install <a href="http://www.surlyjake.com/tag/ntp/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ntp">ntp</a>:</p>
<pre><code>aptitude install ntp
</code></pre>
<p>after it&#8217;s installed, I encourage you to go over to <a href="http://www.pool.ntp.org/zone/@">http://www.pool.ntp.org/zone/@</a> and pick a pool in your continental zone. Debian has some defaults, and they are fine, i just like using the ntp pool. If you want to change where you are syncing to, open up /etc/ntp.conf and change the &#8220;server&#8221; lines.</p>
<pre><code>nano /etc/ntp.conf
</code></pre>
<p>to manually sync Debian&#8217;s time, just install &#8220;<a href="http://www.surlyjake.com/tag/ntpdate/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ntpdate">ntpdate</a>&#8221;</p>
<pre><code>apt-get install ntpdate
</code></pre>
<p>run this:</p>
<pre><code><a href="http://www.surlyjake.com/tag/ntupdate/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ntupdate">ntupdate</a>-debian [a ntp server]
</code></pre>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2008/09/staying-on-time-in-debian/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2008/09/staying-on-time-in-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

