Langsung ke konten utama

Postingan

Membangun DNS Server menggunakan Bind dengan menambahkan fitur filtering domain Depkominfo.

Beberapa tahun belakan ini, pemerintah melalui Depkominfo cukup galak meminta operator untuk memberantas pornografi. Salah satunya adalah dengan memblok semua situs porno yang ada di dunia internet. Cara ini diakui kominfo cukup efektif, walaupun sebenarnya masih banyak situs - situs porno tersebut yang masih dapat diakses. Saat ini operator telekomunikasi dan ISP mengambil referensi domain yang diblok dari situs yang diberikan oleh depkominfo sendiri, yaitu di Trust Positif Kominfo . Terakhir, jumlah site yang berhasil diblok , jika berdasarkan file yang diambil di trust positif tersebut adalah sekitar 756050 site, jadi belum ada 1 juta. Untuk melakukan bloking terhadap domain tersebut, dibutuhkan aplikasi server. Yang bisa melakukan blok berdasarkan domain adalah DNS. Selama ini saya biasa menggunakan bind sebagai aplikasi dns server. Namun aplikasi tersebut belum mampu melakukan teknik blocking yang baik. Ide bloking menggunakan bind yang saya gunakan adalah melakukan manipulas...

Procedure di Mysql

Hari Rabu kemarin, saya dapat tugas dari bos. Dimintai tolong untuk insert record dalam jumlah yang cukup besar. Untungnya, record yang disuruh insert ini sifatnya incremental dan ada juga yang sama isinya. Sudah cukup lama juga ga berinteraksi dengan database, apalagi saya juga biasanya menggunakan database mysql. setelah buka-buka primbon manualnya mysql dan setelah googling sana sini, akhirnya ide untuk memasukka recordnya pun terwujud. Pada tutorial ini, yang digunakan adalah model looping. Metoda looping yang digunakan adalah menggunakan while, dan repeat. untuk yang pertama, saya menggunakan while, dan untuk task yang kedua menggunakan repeat. Sengaja saya coba 2 cara ini, sekalian belajar procedure mysql, dan juga sekalian melatih scripting yang sudah mulai lupa-lupa ingat :) Menggunakan while. Pada task ini, idenya adalah, saya ingin menambahkan suatu nomer msisdn berdasarkan range. range nya diketahui yaitu dari 628xxy000000 - 628xxy999999. kalau dumasukkan satu demi ...

Bind DNS Graph in Cacti

In My Previous tutorial, Menampilkan hasil DNS query pada cacti I tried to graph my bind dns server in cacti. At the moment, I usedBind version 4.3. By the time, ISC (Consorcium that create bind) always update this software. Usually, they update because of found bug, improve perfomance, hardware support, and other. Until now, Bind version is 10. but currently, I still use bind 9.8. it seems that, after bind 9.4, ISC change mayor update in thebind version. because of this, my tutorial for bind 9.3.4 did not compatible anymore for latest bind. I have tried to search in internet,googling, find the forum, but still not successfull.  And fortunately, 5 days ago, I tried to access cacti forum. found the new way to graph new bind version in cacti. for the forum, you can see at this link : http://forums.cacti.net/viewtopic.php?f=12&t=45926&start=0 Because of my couriousity, I tried to make graph my bind. Oh ya, I run my dns server in Linux (RHEL 5.5) I think ou can run...

extend disk via command :

Extend disk via command : I  assume the disk is recognize in my linux box is  : /dev/dsc1 and here are the steps 1. format disk #fdisk /dev/sdc #Command (m for help): n #Command (m for help): w 2. extend volume group disk using lvm vgextend VolGroup00 /dev/sdc1 3. extend disk to volume group lvextend -L +199G /dev/VolGroup00/LogVol00 4. make change permanent resize2fs /dev/VolGroup00/LogVol00 last, check using df utility : # df -h Filesystem                                               Size  Used Avail Use% Mounted on /dev/mapper/VolGroup01-LogVol00      5.8G  3.0G  2.5G  56%         / /dev/mapper/VolGroup01-LogVol01      961M   18M  895M   2%      /home /dev/mapper/VolGroup00-LogVol00...

always show icmpSend: send: (96) Destination address required

this is another history that i use squid. after install squid on my solaris box. i'm facing another problem. my cache.log always show warning like this, 2010/12/28 18:22:01| icmpSend: send: (96) Destination address required 2010/12/28 18:22:02| icmpSend: send: (96) Destination address required 2010/12/28 18:22:02| icmpSend: send: (96) Destination address required 2010/12/28 18:22:02| icmpSend: send: (96) Destination address required 2010/12/28 18:22:03| icmpSend: send: (96) Destination address required oh no, with this, i can not see more information in log. I have to find why this happen, and how to make this solve. after asking to friend and also googling it, I found the problem. problem come from file that call pinger. this is one of squid program that you can find in libexec directory. by default, this program is in read and executable permission. so, it need to be change into 4555 permission. here is the step go to libexec on your squid directory, and make sure ...

Problem running out of filedescriptors

This time, I would like tell how we handled running out of filedescriptors on squid. as we know, squid is a proxy server. as a proxy server, squid will try to cache all web that access by client. for the server which handle so much client, there will be problem with file descriptor. as far as i know, by default, today operating system could handled 1024 file descriptor, and squid follow by default that rule. you can see how much your operating system handled maximum file open by using ulimit command ulimit -Hn 65536 right now, I use solaris 10. for x86 operating system. If I run ulimit command, it will show 65536. that's mean, my server can handled maximum 65536. but yesterday, i got my squid log warning like this WARNING! Your cache is running out of filedescriptors well searching on google, I found that i have to recompiled my squid. preety weird you know, since I 'm not compile squid from the source. I use webstack squid. so, I tried to add single script on squid....

cara membuat paket rpm di redhat/fedora/centos secara offline

ini langkah-langkahnya ... untuk yang ingin install paket nya secara offline 1. buat direktory sendiri # mkdir /usr/local/paket # cd /usr/local/paket 2. download dulu paket rpm nya (ambil dari kambing.vlsm.org) # wget -r [url]http://kambing.vlsm.org/centos/5.4/[/url] 3. setelah download selesai, buat file baru di /etc/yum.repos.d/ contohtnya spt ini more /etc/yum.repos.d/update.repo [master] enabled = 1 name = master centos baseurl = file:///usr/local/paket/master [update] enabled = 1 name = update si centos baseurl = file:///usr/local/paket/centos/kambing.vlsm.org/centos/5.4/centosplus/ i386/ gpgcheck = 0 [update1] name=update2 enabled=1 baseurl=file:///usr/local/paket/centos/kambing.vlsm.org/centos/5.4/extras/i386/ [update2] name=update3 enabled=1 5. setelah selesai, jalankan command yum check-update done