You are on page 1of 3

[Install NTP & ntpdate]

jihad:~# apt-get install ntp ntpdate

[Konfigurasi NTP]
jihad:~# nano /etc/ntp.conf

# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will
# pick a different set every time it starts up. Please consider joining the
# pool: <http://www.pool.ntp.org/join.html>
#server 0.debian.pool.ntp.org iburst dynamic
#server 1.debian.pool.ntp.org iburst dynamic
#server 2.debian.pool.ntp.org iburst dynamic
#server 3.debian.pool.ntp.org iburst dynamic
server 127.127.1.0
fudge 127.127.1.0 stratum 10
#......
#......
#restrict 192.168.123.0 mask 255.255.255.0 notrust
restrict 192.168.101.0 mask 255.255.255.0 nomodify notrap
jihad:~# /etc/init.d/ntp restart

Jihad_Irhaby

Page 1

[Membuat Subdomain untuk NTP]


jihad:~# nano /var/cache/bind/db.irhaby
;
; BIND data file for local loopback interface
;
$TTL 604800
@
IN SOA irhaby.org. root.irhaby.org. (
2
; Serial
604800
; Refresh
86400
; Retry
2419200
; Expire
604800 )
; Negative Cache TTL
;
@
IN NS irhaby.org.
@
IN A
202.222.100.12
IN MX 1
mail.irhaby.org
www IN A
202.222.100.12
mail IN A
202.222.100.12
smail IN A
202.222.100.12
ftp
IN A
202.222.100.12
video IN A
202.222.100.12
radio IN A
202.222.100.12
wiki
IN A
202.222.100.12
ntp
IN A
202.222.100.12

[Test]
jihad:~# ntpq p

remote
refid st t when poll reach
delay
offset
jitter
==============================================================================
*LOCAL(0)
.LOCL.
10 l 60 64 177
0.000
0.000
0.002
-----> Jika pada bagian jitter tidak menunjukkan 0.000, maka konfigurasi kita telah benar.
jihad:~# ntpdate -u 127.0.0.1
18 Jul 21:35:41 ntpdate[3834]: adjust time server 127.0.0.1 offset -0.000054 sec
-----> Jika muncul 18 Jul 21:37:01 ntpdate[3866]: no server suitable for synchronization
found, maka tunggu 5-10 menit.

Jihad_Irhaby

Page 2

Jihad_Irhaby

Page 3

You might also like