Talk less do more

Semakin banyak anda belajar, maka anda akan merasa semakin bodoh !!!

Install DNS Server

<!– @page { size: 21cm 29.7cm; margin: 2cm } P { margin-bottom: 0.21cm } –>


  • Install bind9 dengan perintah

imron@debian:/# apt-get install bind9

masukkan cd sesuai yang diminta

  • Masuk pada direktori /etc/bind9,

  • Setelah itu, kita copy file db.127, file db.local, dan file named.conf Dengan cara sebagai berikut :

imron@debian:/# cp db.127 db.192

imron@debian:/# cp db.local db.imron17

imron@debian:/# cp named.conf named.conf.backup

  • Edit file pico db.192 seperti konfigurasi dibawah ini:

;

; BIND reverse data file for local loopback interface

;

$TTL 604800

@ IN SOA imron17.com. root. imron17.com. (

1 ; Serial

604800 ; Refresh

86400 ; Retry

2419200 ; Expire

604800 ) ; Negative Cache TTL

;

@ IN NS imron17.com.

1.17.168 IN PTR imron17.com.

www IN PTR imron17.com.

  • Edit file pico named.conf seperti konfigurasi dibawah ini yang bercetak tebal :

// This is the primary configuration file for the BIND DNS server named.

//

// Please read /usr/share/doc/bind9/README.Debian.gz for information on the

// structure of BIND configuration files in Debian, *BEFORE* you customize

// this configuration file.

//

// If you are just adding zones, please do that in /etc/bind/named.conf.local

include “/etc/bind/named.conf.options”;

// prime the server with knowledge of the root servers

zone “.” {

type hint;

file “/etc/bind/db.root”;

};

// be authoritative for the localhost forward and reverse zones, and for

// broadcast zones as per RFC 1912

zone ” imron17.com ” {

type master;

file “/etc/bind/db. imron17”;

};

zone “192.in-addr.arpa” {

type master;

file “/etc/bind/db.192”;

};

zone “0.in-addr.arpa” {

type master;

file “/etc/bind/db.0”;

};

  • Edit file pico db. imron17 seperti konfigurasi dibawah ini :

;

; BIND data file for local loopback interface

;

$TTL 604800

@ IN SOA imron17.com. root. imron17.com. (

1 ; Serial

604800 ; Refresh

86400 ; Retry

2419200 ; Expire

604800 ) ; Negative Cache TTL

;

@ IN NS imron17.com.

@ IN A 192.168.17.1

www IN A 192.168.17.1

  • Restart bind9,

imron@debian:/# /etc/init.d/bind9 restart

Ping www.imron17.com apabila reply, DNS sudah berhasil

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Masukkan alamat email Anda untuk mengikuti blog ini dan menerima pemberitahuan tentang tulisan baru melalui email anda.

Join 19 other followers

%d bloggers like this: