SETTING DNS SERVER

SETTING DNS SERVER

DNS SERVER

===========

Konfigurasi DNS Server

Fedora Core 5

File-file yang di konfigurasi :

——————————-

/etc/named.conf

/var/named/chroot/var/named/

/etc/resolv.conf

/etc/host.conf

.:: Konfigurasi /etc/named.conf

——————————-

//

// named.conf for Red Hat caching-nameserver

//

options {

directory “/var/named”;

dump-file “/var/named/data/cache_dump.db”;

statistics-file “/var/named/data/named_stats.txt”;

/*

* If there is a firewall between you and nameservers you want

* to talk to, you might need to uncomment the query-source

* directive below. Previous versions of BIND always asked

* questions using port 53, but BIND 8.1 uses an unprivileged

* port by default.

*/

// query-source address * port 53;

};

//

// a caching only nameserver config

//

controls {

inet 127.0.0.1 allow { localhost; } keys { rndckey; };

};

zone “.” IN {

type hint;

file “named.ca”;

};

zone “localdomain” IN {

type master;

file “localdomain.zone”;

allow-update { none; };

};

zone “localhost” IN {

type master;

file “localhost.zone”;

allow-update { none; };

};

zone “0.0.127.in-addr.arpa” IN {

type master;

file “named.local”;

allow-update { none; };

};

zone “0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa” IN {

type master;

file “named.ip6.local”;

allow-update { none; };

};

54,0-1 54%

zone “255.in-addr.arpa” IN {

type master;

file “named.broadcast”;

allow-update { none; };

};

zone “0.in-addr.arpa” IN {

type master;

file “named.zero”;

allow-update { none; };

};

#alamat domain

zone “jhonlinon.web.id” IN {

type master;

file “named.jhonlinon”;

};

#alamat ip

zone “1.168..in-addr.arpa” IN {

type master;

file “named.0.1”;

};

include “/etc/rndc.key”;

.::Konfigurasi File Zone

————————

Untuk Distro Fedora Filenya terletak di /var/named/chroot/var/named/. Buat kedua file di dalam folder tersebut yaitu file domain dan ip.

misalnya :

=>named.jhonlinon [Filenya Buat Sendiri Terserah]

Isinya :

$TTL 86400

@ IN SOA http://www.jhonlinon.web.id. root.jhonlinon.web.id. (

1997022700 ; Serial

28800 ; Refresh

14400 ; Retry

3600000 ; Expire

86400 ) ; Minimum

@ IN NS http://www.jhonlinon.web.id.

@ IN MX 10 mail.jhonlinon.web.id.

www IN A 192.168.0.1

=>named.0.1 [Buat Sendiri Terserah]

Isinya :

$TTL 86400

@ IN SOA http://www.jhonlinon.web.id. root.jhonlinon.web.id. (

1997022700 ; Serial

28800 ; Refresh

14400 ; Retry

3600000 ; Expire

86400 ) ; Minimum

@ IN NS http://www.jhonlinon.web.id.

1 IN PTR http://www.jhonlinon.web.id.

~

~

.::Konfigurasi /etc/resolv.conf

——————————-

search jhonlinon.web.id

nameserver 192.168.0.1

.::Kongurasi /etc/host.conf

—————————

order bind, hosts

.::Untuk Mengaktifkannya jalankan :

——————————–

Kalau di Fedora sebelum mejalankan service dns harus menjalankan dulu perintah :

ln -n /var/named/chroot/var/named/named.jhonlinon ke /var/named/

ln -n /var/named/chroot/var/named/named.0.1 ke /var/named/

Lalu jalankan

service named start

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: