welcome

WELCOME TO MY BLOG :) IKA SEFIYANTI

Minggu, 07 Mei 2017

Redhat 9.0

A.  INSTALASI DNS Server pada Redhat 9.0
  1.  Instalasi DNS Server dengan terminal
–  Masukkan cd 1 dari installer Redhat 9.0

–   Kemudian Aktifkan cdrom dgn perintah :

[root@localhost /]# mount /dev/cdrom /mnt/cdrom


–   Buat folder rpm (untuk tempat menyimpan file instalasi DNS server (bind)
[root@localhost root]# cd /

[root@localhost root]# mkdir rpm

[root@localhost root]# ls
bin   dev  home    lib         misc  opt   root     tftpboot  usr boot  etc  initrd  lost+found  mnt   proc  rpm   sbin  tmp       var
–   Copy semua file bind ke folder rpm yang di buat tadi dgn perintah
[root@localhost root]# cp /mnt/cdrom/RedHat/RPMS/bind-*.rpm /rpm/
[root@localhost root]# cd /rpm
[root@localhost rpm]# ls
bind-9.2.1-16.i386.rpm  bind-utils-9.2.1-16.i386.rpm
Terlihat dua file bind yang telah tercopy ke folder rpm yaitu bind-9 dan bind-untils
–   nonaktifkan cdrom dgn perintah
[root@localhost /]# umount /dev/cdrom /mnt/cdrom
–   lalu keluarkan cd 1 kemudian masukkan disk 2 dari disk instalasi Linux Redhat 9
–   lakukan mounting untuk mengaktifkan cd instalasi
[root@localhost /]# mount /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@localhost /]#
–   lalu copy file bind-devel dan caching-namesserver ke folder rpm dgn perintah :
[root@localhost /]#  cp /mnt/cdrom/RedHat/RPMS/bind-devel-9.2.1-16.i386.rpm /rpm/

[root@localhost /]#  cp /mnt/cdrom/RedHat/RPMS/caching-nameserver-7.2-7.noarch.rpm
/rpm/
[root@localhost /]# cd /rpm
[root@localhost /]# ls
bind-9.2.1-16.i386.rpm              bind-utils-9.2.1-16.i386.rpm
bind-devel-9.2.1-16.i386.rpm  caching-nameserver-7.2-7.noarch.rpm
Dari tampilan diatas terlihat 4 file aplikasi telah di copy ke folder rpm
–    lakukan penginstallan semua aplikasi tersebut dgn perintah :
[root@localhost rpm]# rpm -ivh bind-*.rpm caching-nameserver-7.2-7.noarch.rpm
warning: bind-9.2.1-16.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing…                      ################################### [100%]
1:bind-utils                        ################################### [ 25%]
2:bind                                 ################################### [ 50%]
3:bind-devel                      ################################### [ 75%]
4:caching-nameserver   ################################### [100%]
[root@localhost /]#
–    Lakukan pengecekan hasil instalasi
[root@localhost /]# rpm -qa |grep bind
bind-utils-9.2.1-16
bind-devel-9.2.1-16
ypbind-1.11-4
bind-9.2.1-16
caching-nameserver
[root@localhost /]#
  2.  Instalasi DNS Server dgn GUI
–   Ikuti petunjuk Gambar

–   Pilih (System Settings – Add\Remove Applications) maka akan muncul

–   Tunggulah beberapa saat hingga muncul Add or Remove Packages
–   Lalu centeng pada Server Configuration Tools lalu Click Details

–   kemudian centeng lagi Redhat-Config Bind lalu click close

–  Kemudian centeng lagi DNS Name Server

–   Kemudian Click update untuk memilai penginstalan

– Pilih Continue

– Masukkan cd 1 sesuai perintah (cd installer Redhat 9)

-Tunggu beberapa saat

–  Masukkan cd 2 sesuai perintah (cd installer Redhat 9)

– Click Ok untuk mengakhiri proses instalasi Bind

–    Informasi Bahwa Instalasi telah berhasil dan Complete

–    Untuk memastikan kembali keberhasilan instalsi Bind server dgn perintah :
[root@localhost /]# rpm -qa |grep bind

bind-utils-9.2.1-16
bind-devel-9.2.1-16
ypbind-1.11-4
bind-9.2.1-16
[root@localhost /]#
Apabila hasil pengecekan sesuai dgn diatas maka instalasi telah berhasil.
B.   KONFIGURASI DNS Server
–    Pertama-tama lakukan konfigurasi file hosts
[root@localhost /]# vi /etc/hosts
Untuk memulai editing lakukan penekanan tombol keyboard INSERT Sisipkan tulisan yang berwarnah merah sebagai konfigurasi tambahan Simpan file dengan menekan tombol escape/Esc kemudian ketik :wq kemudian tekan enter
–   lalu lakukan editing pada file /etc/host.conf
[root@localhost /]# vi /etc/host.conf
isi file sesuai data di bawah ini :
order bind,hosts
[root@localhost /]# vi /etc/named.conf
–   lalu edit file utama konfigurasi DNS Server yaitu named.conf tepatnya di /etc/named.conf dgn menyisipkan tulisan yg berfont tebal dibawah ini.
[root@localhost /]# vi /etc/named.conf
// generated by named-bootconf.pl options {
directory “/var/named”;
/*
* 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 “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  “smkdmi.sch.id” {
type master;
file  “smkdmi.zone”;
};
zone  “1.168.192.in-addr.arpa” {
type master;
file  “smkdmi.ip”;
};
include “/etc/rndc.key”;
Untuk memulai editing lakukan penekanan tombol keyboard INSERT
Sisipkan tulisan yang berwarnah merah sebagai konfigurasi tambahan
Simpan file dengan menekan tombol escape/Esc kemudian ketik :wq kemudian tekan enter
–    Buat file smkdmi.zone
–    Lalu isi dng scripts dibawah ini :
$TTL   86400
@       IN      SOA     ns.smkdmi.sch.id. root.smkdmi.sch.id.  (
1997022700 ; Serial
28800              ; Refresh
14400               ; Retry
3600000        ; Expire
86400 )            ; Minimum
IN               NS      ns.smkdmi.sch.id.
IN               MX      0 ns.smkdmi.sch.id.
IN                A      192.168.1.10
ns               IN    A      192.168.1.10
mail          IN    A      192.168.1.10
www         IN    A      192.168.1.10
ftp              IN    A      192.168.1.10
–    Buat file smkdmi.arpa.zone
–    Lalu isi dng scripts dibawah ini :
$TTL   86400
@       IN      SOA     ns.smkdmi.sch.id. root.smkdmi.sch.id.  (
1997022700   ; Serial
28800                ; Refresh
14400                 ; Retry
3600000          ; Expire
86400 )              ; Minimum
IN            NS      ns.smkdmi.sch.id.
10            IN      PTR     ns.smkdmi.sch.id.
–    Lalu edit file resolv.conf di /etc/reslov.conf (edit dns linux)
[root@localhost /]# vi /etc/resolv.conf

–    Lalu isi dng scripts dibawah ini :
search smkdmi.sch.id
nameserver 192.168.1.10
–   Restart network
[root@localhost /]# service network restart
Shutting down interface eth0:                                         [  OK  ]
Shutting down loopback interface:                                 [  OK  ]
Setting network parameters:                                           [  OK  ]
Bringing up loopback interface:                                      [  OK  ]
Bringing up interface eth0:                                              [  OK  ]
[root@localhost /]#
–   Restart bind
[root@localhost /]# /etc/init.d/named restart
Stopping named: rndc: connect failed: connection refused      [FAILED]
[root@localhost /]#                                                  [  OK  ]
[root@localhost /]#
–   Aktifkan service named ketika pc on
[root@localhost /]# chkconfig named on
–   Setelah konfigurasi diatas lakukanlah restart pada Pc Linux
–   kemudian lakukan restart named
[root@ns /]#  /etc/init.d/named restart
–   jika anda ada melakukan perubahan konfigurasi file DNS Server pastikan juga anda melakukan perintah berikut :
[root@ns /]#  rndc reload
–   Terakhir lakukan pengecekan DNS Server
[root@ns /]# nslookup smkdmi.sch.id
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig’ or `host’ programs instead.  Run nslookup with
the `-sil[ent]’ option to prevent this message from appearing.
Server:         192.168.1.10
Address:        192.168.1.10#53
Name:   smkdmi.sch.id
Address: 192.168.1.10
[root@ns /]# ping 
PING (192.168.1.10) 56(84) bytes of data.
64 bytes from ns.smkdmi.sch.id (192.168.1.10): icmp_seq=1 ttl=64 time=0.084 ms
64 bytes from ns.smkdmi.sch.id (192.168.1.10): icmp_seq=2 ttl=64 time=0.117 ms
64 bytes from ns.smkdmi.sch.id (192.168.1.10): icmp_seq=3 ttl=64 time=0.186 ms
ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.084/0.129/0.186/0.042 ms
[root@ns /]# host
 
has address 192.168.1.10
root@localhost /]# host

 
has address 192.168.1.10
[root@localhost /]#
–    lakukan pengujian DNS Server dengan perintah
[root@ns /]# nslookup
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig’ or `host’ programs instead.  Run nslookup with
the `-sil[ent]’ option to prevent this message from appearing.
Server:         192.168.1.10
Address:        192.168.1.10#53
Name:  

Address: 192.168.1.10
[root@ns/]# nslookup ftp.smkdmi.sch.id
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig’ or `host’ programs instead.  Run nslookup with
the `-sil[ent]’ option to prevent this message from appearing.
Server:         192.168.1.10
Address:        192.168.1.10#53
Name:   ftp.smkdmi.sch.id
Address: 192.168.1.10
 [root@ns /]# nslookup ssh.smkdmi.sch.id
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig’ or `host’ programs instead.  Run nslookup with
the `-sil[ent]’ option to prevent this message from appearing.
Server:         192.168.1.10
Address:        192.168.1.10#53
Name:   ssh.smkdmi.sch.id
Address: 192.168.1.10
B.   Konfigurasi Client Windows
Agar Konfigurasi DNS server di kenali oleh Client Windows maka harus dilakukan beberapa konfigurasi. Jika tapi jika windows belum di konfigurasi maka akan tampil sebagai berikut :
–    jika dilakukan ping smkdmi.sch.id dari Command Prompt maka akan tampil sebagai berikut :

–    jika dilakukan perintah nslookup smkdmi.sch.id dari Command Prompt maka akan tampil sebagai berikut :

Agar DNS Server di kenali maka ada beberapa setting tambahan di Client Windows yaitu pada seting DNS dimasukkan IP Linux kita dalam konfigurasi ini yaitu 192.168.1.10 seperti tampilan berikut :

Jika setting DNS pada windows sudah di isi Ip Linux dalam konfigurasi modul ini yaitu 192.168.1.10 atau seperti gambar diatas, maka efek dari setting ini adalah :
–    jika dilakukan ping smkdmi.sch.id dari Command Prompt maka akan tampil sebagai berikut :

–    jika dilakukan perintah nslookup smkdmi.sch.id dari Command Prompt maka akan tampil sebagai berikut :




Tidak ada komentar:

Posting Komentar