21 November 2009

konfigurasi DNS Server pada RedHat

Kaloo kmaren-kemaren akku ngebahas konfigurasi DNS pada linux debian, nahhhh...
sekarang aku mau bagi-bagi ilmu tentang konfigurasi DNS pada RedHat nee.....

Tentu aja langkah pertama yang harus di lakukan adalah menginstal server Sistem Operasi RedHat servernya dulu donk, setelah kita selesai menginstal RedHat nya baru deh kita masuk ke konfigurasi, ikutin yah cara-caranya.......

-kita harus log in terlebih dahulu ke root yang telah kita biat pada saat instalasi
-setelah itu kita lihat terlebih dahulu ip address pakah telah muncul atau belum, dengan sintak : ifconfig.
-kemudian masuk ke direktori hosts
vi /etc/hosts
isikan sebagai berikut (contoh)
127.0.0.1 holly.localhost.local domain localhost
192.168.2.1 holly.holly.net. holly
terus save dengan menekan esc 2x dan :wq

-kemudian masuk ke named.conf
vi /etc/named.conf
edit menjadi seperti berikut (contoh)
zone "holly.net" IN {
type master;
file "holly.zone" ;
allow-ipdate { none; };
};

zone "1.168.192.in-addr.arpa" IN {
type master;
file "holly.local";
allow-update {none; }
};

kemudian save esc 2x :wq

kemudia masuk directory cd /var/named/
terus copy isi directory : cp localhost.zone holly.zone
cp localhost.zone holly.local
selanjutnya buka : vi /var/named/holly.zone
edit isi directory-nya (contoh)
; holly.net.
$ TTL 604800
@ IN SOA holly.net. root. localhost. (
1212334 ; serial
604800 ; refresh
1374712 ; expire
135358 ); negative cache TTL

IN NS 192.168.2.1
www IN A 192.168.2.1
ftp IN A 192.168.2.1
mail IN A 192.168.2.1

kemudian save tekan esc 2x :wq

terus edit juga isi directory localnya : vi /var/named/holly.local

; holly.net.
$ TTL 604800
@ IN SOA holly.net. root.holly.net. (
34 ; serial
6080 ; refresh
131; expire
13 ); negative cache TTL

IN NS holly.net.
www
IN PTR holly.net.
ftp IN PTR holly.net.
mail IN PTR holly.net.

kemudian save tekan esc 2x :wq

kemudian liat sysconfig : vi /etc/sysconfig/network

netwoking = yes
hostname = holly
gateway = 192.168.2.1

kemudian save tekan esc 2x :wq

untuk menjalankan DNS terlebih dahulu melakukan seperti di bawah ini :
/etc/init.d/named reload

/etc/init.d/named stop

/etc/init.d/named start

/etc/init.d/network restrart

/etc/init.d/network reload

/etc/init.d/network stop

/etc/init.d/network strart

untuk melihat apakah DNS server sudah berjalan dengan baik harus mengeceknya terlebih dahulu dengan menggunakan sintak :

nslookup 192.168.2.1
nslookup www.holly.net
nslookup ftp.holly.net
nslookup mail.holly.net

selsaiiiii.
met mencoba.
udah baca kirim komentar yahhhhh..















gOogLe TransLate.....

Pengikut