Laporan Praktikum
Linux
Modul VI
Disusun oleh :
Amirul.Y
123080073
Plug 4
Assisten :
I Putu Jhista M
JURUSAN TEKNIK INFORMATIKA
FAKULTAS TEKNOLOGI INDUSTRI
UPN “VETERAN” YOGYAKARTA
2010
1. Installasi bind9
rulz@rulz-laptop:~$ sudo su
root@rulz-laptop:/home/rulz# apt-get install bind9
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
bind9utils
Suggested packages:
bind9-doc resolvconf
The following NEW packages will be installed:
bind9 bind9utils
0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
Need to get 371kB of archives.
After this operation, 1,139kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://id.archive.ubuntu.com karmic/main bind9utils 1:9.6.1.dfsg.P1-3 [97.1kB]
Get:2 http://id.archive.ubuntu.com karmic/main bind9 1:9.6.1.dfsg.P1-3 [274kB]
Fetched 371kB in 10s (34.6kB/s)
Preconfiguring packages …
Selecting previously deselected package bind9utils.
(Reading database … 151476 files and directories currently installed.)
Unpacking bind9utils (from …/bind9utils_1%3a9.6.1.dfsg.P1-3_i386.deb) …
Selecting previously deselected package bind9.
Unpacking bind9 (from …/bind9_1%3a9.6.1.dfsg.P1-3_i386.deb) …
Processing triggers for man-db …
Processing triggers for ufw …
Processing triggers for sreadahead …
sreadahead will be reprofiled on next reboot
Setting up bind9utils (1:9.6.1.dfsg.P1-3) …
Setting up bind9 (1:9.6.1.dfsg.P1-3) …
Adding group `bind’ (GID 124) …
Done.
Adding system user `bind’ (UID 115) …
Adding new user `bind’ (UID 115) with group `bind’ …
Not creating home directory `/var/cache/bind’.
wrote key file “/etc/bind/rndc.key”
#
* Starting domain name service… bind9 [ OK ]
2. Installasi dnsutils
root@rulz-laptop:/home/rulz# apt-get install dnsutils
Reading package lists… Done
Building dependency tree
Reading state information… Done
dnsutils is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
3. Pengecekan apakah bind9 dan dnsutils sudah terinstall atau belum
root@rulz-laptop:/home/rulz# dpkg -l|grep bind9
ii bind9 1:9.6.1.dfsg.P1-3 Internet Domain Name Server
ii bind9-host 1:9.6.1.dfsg.P1-3 Version of ‘host’ bundled with BIND 9.X
ii bind9utils 1:9.6.1.dfsg.P1-3 Utilities for BIND
ii libbind9-50 1:9.6.1.dfsg.P1-3 BIND9 Shared Library used by BIND
root@rulz-laptop:/home/rulz# dpkg -l|grep dnsutils
ii dnsutils 1:9.6.1.dfsg.P1-3 Clients provided with BIND
4. Backup file konfigurasi yang akan kita rubah
root@rulz-laptop:/home/rulz# cp /etc/bind/named.conf.local /etc/bind/named.conf.local.backup
5. Edit file /etc/bind/named.conf.local
root@rulz-laptop:/home/rulz# vim /etc/bind/named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include “/etc/bind/zones.rfc1918″;
zone “corpo.com” {
type master;
file “/etc/bind/db.corpo.com”;
};
6. Gunakan file isi /etc/bind/db.local untuk membuat file /etc/bind/db.corpo.com
root@rulz-laptop:/home/rulz# cp /etc/bind/db.local /etc/bind/db.corpo.com
7. Edit file /etc/bind/db.corpo.com
root@rulz-laptop:/home/rulz# vim /etc/bind/db.corpo.com
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA corpo.com. root.corpo.com. (
2009120100 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS corpo.com.
@ IN A 192.168.0.21
@ IN AAAA ::1
8. Edit /etc/bind/named.conf.local dan tambahkan dibawah ini :
root@rulz-laptop:/home/rulz# vim /etc/bind/named.conf.local
zone “0.168.192.in-addr.arpa” {
type master;
notify no
file “/etc/bind/db.192″;
};
9. Sekarang buat file /etc/bind/db.192 dengan menyalin isi dari file /etc/bind/db.127
root@hendy-laptop:/home/hendy# cp /etc/bind/db.127 /etc/bind/db.192
10. Edit file seperti /etc/bind/db.192 di bawah ini:
root@rulz-laptop:/home/rulz# vim /etc/bind/db.192
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA corpo.com. root.corpo.com. (
2009120100 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS corpo.com.
21 IN PTR www.corpo.com.
11. Restart bind9
root@rulz-laptop:/home/rulz# /etc/init.d/bind9 restart
* Stopping domain name service… bind9 [ OK ]
* Starting domain name service… bind9 [OK]
Tidak ada komentar:
Posting Komentar