Monitor and Display DNS Server Traffic

By | August 27, 2008

Terkadang kita perlu juga memonitor trafik BIND dns server. Apalagi setelah ada bug terbaru dari bind bisa repot tuh kalau tahu-tahu dns hang 🙁
Baru coba di Freebsd ada tools namanya dnstop. tools ini bisa digunakan monitoring dns trafik secara command line, yah lumayan.

Untuk install cara paling gampang lewat port aja :

# cd /usr/ports/dns/dnstop/
# make install clean

Kemudian untuk memulai monitor DNS server statistik secara real time, dengan perintah :

# dnstop {interface-name}
# dnstop em0
# dnstop fxp0

Untuk menghentikan dengan tekan tombol CTRL + X. Untuk mereset counters hit tekan tombol CTRL+R.
beberapa fungsi tombol yang bisa digunakan sewaktu dnstop running :

* s : display the source address table
* d : display the destination address table
* t : display the breakdown of query types seen
* o : display the breakdown of opcodes seen

He.. he.. lumayan lah bisa lihat statistik trafik dns 🙂